[torqueusers] xpbs build on x86_64

Bryan Stillwell bryans at aspsys.com
Thu Mar 24 09:30:47 MST 2005


On Thu, Mar 24, 2005 at 02:09:13PM +1100, Chris Samuel wrote:
>On Tue, 22 Mar 2005 11:46 am, Martin Siegert wrote:
>
>> The attached spec file will build a 64-bit version of tclx on SLES9
>
>Thanks for that, although we don't use xpbsmon here, I was just trying to 
>build it on a less common architecture to see what would happen in case it 
>helped Bryan. :-)

Thanks Chris/Martin!  I ended up using the attached patch to configure
and configure.in to get it working.  Actually, I've only verified that
it builds with the patch, I haven't tested to see if xpbs works yet.

Bryan

-- 
Aspen Systems, Inc.    | http://www.aspsys.com/
Production Engineer    | Phone: (303)431-4606
bryans at aspsys.com      | Fax:   (303)431-7196
-------------- next part --------------
diff -ruN torque-1.2.0p2.orig/configure torque-1.2.0p2/configure
--- torque-1.2.0p2.orig/configure	2005-02-22 13:59:13.000000000 -0700
+++ torque-1.2.0p2/configure	2005-03-22 18:12:18.508035160 -0700
@@ -928,7 +928,7 @@
 ac_LL_PATH=`echo "$PATH" | sed -e 's/:/ /g'`
 for ac_libpath in $ac_LL_PATH /__XqqFrobozz ; do
     ac_libpath=`echo $ac_libpath | sed -e 's;/bin$;;'`
-    if test `/bin/ls ${ac_libpath}/lib/libtclx*.* 2> /dev/null | wc -l` -gt 0; then
+    if test `/bin/ls ${ac_libpath}/lib64/libtclx*.* 2> /dev/null | wc -l` -gt 0; then
         tclx_dir="$ac_libpath"
 	break;
     fi
@@ -963,7 +963,7 @@
 ac_LL_PATH=`echo "$PATH" | sed -e 's/:/ /g'`
 for ac_libpath in $ac_LL_PATH /__XqqFrobozz ; do
     ac_libpath=`echo $ac_libpath | sed -e 's;/bin$;;'`
-    if test `/bin/ls ${ac_libpath}/lib/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
+    if test `/bin/ls ${ac_libpath}/lib64/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
         tcl_dir="$ac_libpath"
 	break;
     fi
@@ -980,7 +980,7 @@
 ac_LL_PATH=`echo "$PATH" | sed -e 's/:/ /g'`
 for ac_libpath in $ac_LL_PATH /__XqqFrobozz ; do
     ac_libpath=`echo $ac_libpath | sed -e 's;/bin$;;'`
-    if test `/bin/ls ${ac_libpath}/lib/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
+    if test `/bin/ls ${ac_libpath}/lib64/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
         tcl_dir="$ac_libpath"
 	break;
     fi
@@ -992,7 +992,7 @@
     TCL=1
     TCL_DIR="$tcl_dir"
 
-                    count=`/bin/ls ${tcl_dir}/lib/libtk* 2> /dev/null | wc -l`
+                    count=`/bin/ls ${tcl_dir}/lib64/libtk* 2> /dev/null | wc -l`
     if test "$count" -gt 0 -a -n "$GUI"; then
 	TK=1
     fi
@@ -1039,10 +1039,10 @@
 	{ echo "configure: error: cannot find Tcl version in $tcl_h" 1>&2; exit 1; };
 
                         TCL_LIB_VER="$TCL_VER"
-    count=`/bin/ls -d $TCL_DIR/lib/libtcl${TCL_LIB_VER}.* 2> /dev/null | wc -l`
+    count=`/bin/ls -d $TCL_DIR/lib64/libtcl${TCL_LIB_VER}.* 2> /dev/null | wc -l`
     if test "$count" -lt 1; then
         TCL_LIB_VER=`echo $TCL_LIB_VER | sed -e 's/\.//'`
-        count=`/bin/ls $TCL_DIR/lib/libtcl${TCL_LIB_VER}.* | wc -l`
+        count=`/bin/ls $TCL_DIR/lib64/libtcl${TCL_LIB_VER}.* | wc -l`
         if test "$count" -lt 1; then
             { echo "configure: error: cannot find a Tcl library for version $TCL_VER" 1>&2; exit 1; }
         fi
@@ -1080,10 +1080,10 @@
 	{ echo "configure: error: cannot find Tk version in $tk_h" 1>&2; exit 1; };
 
                         TK_LIB_VER="$TK_VER"
-    count=`/bin/ls $TCL_DIR/lib/libtk${TK_LIB_VER}.* 2> /dev/null | wc -l`
+    count=`/bin/ls $TCL_DIR/lib64/libtk${TK_LIB_VER}.* 2> /dev/null | wc -l`
     if test "$count" -lt 1; then
         TK_LIB_VER=`echo $TK_LIB_VER | sed -e 's/\.//'`
-        count=`/bin/ls $TCL_DIR/lib/libtk${TK_LIB_VER}.* | wc -l`
+        count=`/bin/ls $TCL_DIR/lib64/libtk${TK_LIB_VER}.* | wc -l`
         if test "$count" -lt 1; then
             { echo "configure: error: cannot find a Tk library for version $TK_VER" 1>&2; exit 1; }
         fi
diff -ruN torque-1.2.0p2.orig/configure.in torque-1.2.0p2/configure.in
--- torque-1.2.0p2.orig/configure.in	2005-02-22 13:59:13.000000000 -0700
+++ torque-1.2.0p2/configure.in	2005-03-22 18:12:36.595285480 -0700
@@ -327,7 +327,7 @@
     dnl  check for the presence of Tk where one might find Tcl.
     dnl  This is all for use with the src/tools stuff.
     dnl
-    count=`/bin/ls ${tcl_dir}/lib/libtk* 2> /dev/null | wc -l`
+    count=`/bin/ls ${tcl_dir}/lib64/libtk* 2> /dev/null | wc -l`
     if test "$count" -gt 0 -a -n "$GUI"; then
 	TK=1
     fi
@@ -383,10 +383,10 @@
     dnl  dotted and dotless and get the one that works.
     dnl
     TCL_LIB_VER="$TCL_VER"
-    count=`/bin/ls -d $TCL_DIR/lib/libtcl${TCL_LIB_VER}.* 2> /dev/null | wc -l`
+    count=`/bin/ls -d $TCL_DIR/lib64/libtcl${TCL_LIB_VER}.* 2> /dev/null | wc -l`
     if test "$count" -lt 1; then
         TCL_LIB_VER=`echo $TCL_LIB_VER | sed -e 's/\.//'`
-        count=`/bin/ls $TCL_DIR/lib/libtcl${TCL_LIB_VER}.* | wc -l`
+        count=`/bin/ls $TCL_DIR/lib64/libtcl${TCL_LIB_VER}.* | wc -l`
         if test "$count" -lt 1; then
             AC_MSG_ERROR(cannot find a Tcl library for version $TCL_VER)
         fi
@@ -431,10 +431,10 @@
     dnl  dotted and dotless and get the one that works.
     dnl
     TK_LIB_VER="$TK_VER"
-    count=`/bin/ls $TCL_DIR/lib/libtk${TK_LIB_VER}.* 2> /dev/null | wc -l`
+    count=`/bin/ls $TCL_DIR/lib64/libtk${TK_LIB_VER}.* 2> /dev/null | wc -l`
     if test "$count" -lt 1; then
         TK_LIB_VER=`echo $TK_LIB_VER | sed -e 's/\.//'`
-        count=`/bin/ls $TCL_DIR/lib/libtk${TK_LIB_VER}.* | wc -l`
+        count=`/bin/ls $TCL_DIR/lib64/libtk${TK_LIB_VER}.* | wc -l`
         if test "$count" -lt 1; then
             AC_MSG_ERROR(cannot find a Tk library for version $TK_VER)
         fi


More information about the torqueusers mailing list