[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LT 1.5 / portland compilers / shared libraries
From: |
Jeff Squyres |
Subject: |
LT 1.5 / portland compilers / shared libraries |
Date: |
Wed, 21 May 2003 13:46:17 -0400 (EDT) |
Libtool 1.5 doesn't seem to pass the Right flags to the Portland compiler
to make shared libraries (RedHat 7.2 system). Libtool 1.4.3 seems to work
fine with the Portland compilers.
>From the output of an automake-ized package with --disable-static
--enable-shared:
-----
[snipped]
/bin/sh ../libtool --mode=compile pgcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DLAM_WANT_DEBUG=1 -DLAM_CC=\"pgcc\"
-Dlam_sizeof_void_p=4 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -I. -I. -I../../../share/include
-I../../../share/ssi/include -I../../../share/include -DLAM_BUILDING=1
-DLAM_BUILDING=1 -g -c -o dll_lam.lo `test -f 'dll_lam.c' || echo
'./'`dll_lam.c
mkdir .libs
pgcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLAM_WANT_DEBUG=1
-DLAM_CC=\"pgcc\" -Dlam_sizeof_void_p=4 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I.
-I../../../share/include -I../../../share/ssi/include
-I../../../share/include -DLAM_BUILDING=1 -DLAM_BUILDING=1 -g -c dll_lam.c
-DPIC -o .libs/dll_lam.o
/bin/sh ../libtool --mode=link pgcc -g -o liblam_totalview.la -rpath
/home/jsquyres/local/lib/lam dll_lam.lo
pgcc -shared .libs/dll_lam.o -lc -soname liblam_totalview.so.0 -o
.libs/liblam_totalview.so.0.0.0
pgcc-Warning-Unknown switch: -soname
File with unknown suffix passed to linker: liblam_totalview.so.0
/usr/bin/ld: cannot open liblam_totalview.so.0: No such file or directory
-----
Here's a snipit from the output of configure (from AM_PROG_LIBTOOL):
-----
[snipped]
checking if pgcc static flag works... yes
checking for pgcc option to produce PIC...
checking if pgcc supports -c -o file.o... yes
checking whether the pgcc linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
[snipped]
-----
So libtool *thinks* it can make shared libraries with pgcc during
configure, but fails during the execution due to -soname.
Any suggestions?
--
{+} Jeff Squyres
{+} address@hidden
{+} http://www.lam-mpi.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- LT 1.5 / portland compilers / shared libraries,
Jeff Squyres <=