I've configured the 1.8.2rc3 tarball with "--enable-static
--disable-shared" on a fairly standard Linux/x86-64 platform.  While there
are no problems on the same platform w/o these configure flags, with them I
cannot link any application codes.

$ mpicc -g    hello_c.c   -o hello_c
/global/homes/h/hargrove/GSCRATCH/OMPI/openmpi-1.8.2rc3-linux-x86_64-static/INST/lib/libopen-pal.a(opal_pty.o):
In function `opal_openpty':
opal_pty.c:(.text+0x1): undefined reference to `openpty'

I checked "make openpty" and the manpage says to link with '-lutil'.
The '-showme' does not show libutil:

$ mpicc -showme hello_c.c
gcc hello_c.c
-I/global/homes/h/hargrove/GSCRATCH/OMPI/openmpi-1.8.2rc3-linux-x86_64-static/INST/include
-pthread -L/usr/syscom/opt/torque/4.1.4/lib -Wl,-rpath
-Wl,/usr/syscom/opt/torque/4.1.4/lib -Wl,-rpath
-Wl,/usr/syscom/opt/torque/4.1.4/lib -Wl,-rpath
-Wl,/usr/syscom/opt/torque/4.1.4/lib -Wl,-rpath
-Wl,/usr/syscom/opt/torque/4.1.4/lib -Wl,-rpath
-Wl,/global/homes/h/hargrove/GSCRATCH/OMPI/openmpi-1.8.2rc3-linux-x86_64-static/INST/lib
-Wl,--enable-new-dtags
-L/global/homes/h/hargrove/GSCRATCH/OMPI/openmpi-1.8.2rc3-linux-x86_64-static/INST/lib
-lmpi -lopen-rte -lopen-pal -lm -ldl -ltorque -libverbs -lrdmacm


It looks like configure is doing the right thing on some level, but failing
to add '-lutil' to the appropriate list of libs (OPAL_WRAPPER_EXTRA_LIBS?):

============================================================================
== Library and Function tests
============================================================================
checking if we need -lutil for openpty... yes
checking for openpty... yes


-Paul

-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
Computer and Data Sciences Department     Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to