Hi guys,
I'm programming on some automake/autoconf/libtool based projects on
Linux and BeOS. A while back we upgraded from libtool 1.2f to libtool
1.3.4 and libtool stopped producing shared libraries. We upgraded
automake to 1.4a and autoconf to 1.14.1 at the same time - whether this
is related to the problem, I don't know.
Anyways, libtool doesn't create shared libraries, only static ones,
even though configure reports like this:
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
The final linking produces this weird warning that might have something
to do with the problem:
/bin/sh ../libtool --mode=link gcc -g -O2 -o libsimage.la -rpath
/boot/users/larsa/lib -version-info 0:0:0 -release 0.9 simage.lo simage_png.lo
simage_tga.lo simage_rgb.lo simage_pic.lo -lpng -lz
libtool: link: warning: undefined symbols not allowed in i586-pc-beos shared libraries
mkdir .libs
(cd . && ln -s simage.lo simage.o)
(cd . && ln -s simage_png.lo simage_png.o)
(cd . && ln -s simage_tga.lo simage_tga.o)
(cd . && ln -s simage_rgb.lo simage_rgb.o)
(cd . && ln -s simage_pic.lo simage_pic.o)
ar cru .libs/libsimage.a simage.o simage_png.o simage_tga.o simage_rgb.o simage_pic.o
ranlib .libs/libsimage.a
creating libsimage.la
(cd .libs && rm -f libsimage.la && ln -s ../libsimage.la libsimage.la)
Creating the shared library manually isn't any problem, though:
[667] simage > cd src/
[668] src > ld -shared *.o -o libsimage.so
[669] src > file libsimage.so
libsimage.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped
[670] src > ls -l libsimage.so
-rwxr-xr-x 1 larsa SIM 64755 Feb 15 16:29 libsimage.so*
[671] src >
If anyone wants to look at the gory details, they will find the following
files at <URL:http://www.sim.no/~larsa/libtool-beos/>
configure.in.txt configure.in from the simage library project
aclocal.m4.txt aclocal.m4 from simage/
src-Makefile.am.txt Makefile.am from simage/src/
config.log.txt config.log in $top_builddir
configure-log.txt output of configure run
make-log.txt output of make run
Any help is appreciated...
Lars J