LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Dennis van Dok (dennisvd_at_[hidden])
Date: 2006-07-06 06:17:42


Hi,

When I tried to use Rmpi_0.5-2 with lam 7.1.2 it complained it could not
load liblam.so because of an undefined symbol: openpty. I know there has
been particular attention to the case, given this excerpt from configure.in:

"""
#
# Do we have openpty()?
# In Linux, openpty is in -lutil -- it is VERY IMPORTANT TO ADD -lutil
# TO LIBS SO THAT LAM_CHECK_FUNC WORKS PROPERLY!
#

AC_CHECK_LIB(util, login, WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS
-lutil" LIBLAM_EXTRA_LIBS="$LIBLAMEXTRALIBS -lutil" LIBS="$LIBS -lutil")
# config/lam_check_func.m4
LAM_CHECK_FUNC(openpty, LAM_HAVE_OPENPTY)

LIBS="$libs_SAVE"
"""

After that, the -lutil shows up in various places, but it doesn't end up
in the libraries that liblam.so itself links to. I think that this could
easily be remedied; currently I'm using the following patch.

------------------------------------------------------------------------------------
diff -Nru lam-7.1.2/share/liblam/Makefile.in
lam-7.1.2-3vle/share/liblam/Makefile.in
--- lam-7.1.2/share/liblam/Makefile.in 2006-03-10 22:31:47.000000000
+0100
+++ lam-7.1.2-3vle/share/liblam/Makefile.in 2006-06-30
16:00:45.000000000 +0200
@@ -273,7 +273,7 @@
 LIBMPI_EXTRA_LDFLAGS = @LIBMPI_EXTRA_LDFLAGS@
 LIBMPI_EXTRA_LIBS = @LIBMPI_EXTRA_LIBS@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ @LIBLAM_EXTRA_LIBS@
 LIBTOOL = @LIBTOOL@
 LN_S = @LN_S@
 LTDLINCL = @LTDLINCL@
------------------------------------------------------------------------------------

Regards,

Dennis van Dok

-- 
D.H. van Dok :: Software Engineer :: www.nikhef.nl :: www.vl-e.nl