LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Nicolas Niclausse (Nicolas.Niclausse_at_[hidden])
Date: 2005-03-04 07:21:09


Hello,

I tried to compile the last beta release of lam with tm support, but it fails:

i use ./configure --with-boot-tm=/opt/torque, on a Rocks 3.3.0/x86_64
distribution (dual Opteron).

even if configure detects the torque include and libs files (in
share/ssi/boot/tm), the generated makefiles are wrong: -lpbs is
missing

checking tm.h usability... yes
checking tm.h presence... yes
checking for tm.h... yes
checking for main in -lsocket... no
checking for main in -lnsl... yes
checking for tm_init in -lpbs... yes

but in share/ssi/boot/tm/Makefile :

LIBS = -lnsl

I think that the problem comes from:

AC_CHECK_LIB(pbs, tm_init, HAPPY=1, HAPPY=0)

the third argument override the default action of AC_CHECK_LIB (append
-lpbs to LIBS)

I applied to following patch, and the configure generated by autoconf
is now setting LIBS correctly:

--- share/ssi/boot/tm/configure.stub.orig 2005-03-04 10:31:06.054291812 +0100
+++ share/ssi/boot/tm/configure.stub 2005-03-04 10:29:27.388431758 +0100
@@ -67,6 +67,8 @@

 if test "$HAPPY" = "0"; then
     AC_MSG_ERROR([*** Cannot find working libpbs.])
+else
+ LIBS="-lpbs $LIBS"
 fi

 #

-- 
Nicolas NICLAUSSE                          Service DREAM
INRIA Sophia Antipolis                     http://www-sop.inria.fr/