bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

completely static build test failure


From: Ralf Wildenhues
Subject: completely static build test failure
Date: Thu, 23 Sep 2004 21:10:55 +0200

Don't know if this is supposed to be supported.
Using CVS HEAD Libtool, building it with $ ../libtool/configure --disable-shared && make on linux-gnu/x86/gcc, makes this fail:
$ make check VERBOSE=x TESTS='mdemo-static.test mdemo-make.test'
[...]
/bin/sh ./libtool --mode=link --tag=CC gcc -g -O2 -o libmlib.la -rpath /tmp/build-static/tests/_inst/lib -no-undefined mlib.lo ./../../libltdl/libltdlc.la "-dlopen" foo1.la "-dlopen" libfoo2.la
rm -f .libs/libmlib.nm .libs/libmlib.nmS .libs/libmlib.nmT
libtool: link: creating .libs/libmlibS.c
(cd .libs && gcc -g -O2 -c -fno-builtin -fno-rtti -fno-exceptions -fPIC -DPIC "libmlibS.c")
rm -f .libs/libmlibS.c .libs/libmlib.nm .libs/libmlib.nmS .libs/libmlib.nmT
(cd .libs/libmlib.lax/libltdlc.a && ar x /tmp/build-static/tests/mdemo/./../../libltdl/.libs/libltdlc.a) ar cru .libs/libmlib.a mlib.o .libs/libmlib.lax/libltdlc.a/libltdlc_la-ltdl.o .libs/libmlib.lax/libltdlc.a/libltdlc_la-lt_dlloader.o .libs/libmlib.lax/libltdlc.a/libltdlc_la-preopen.o .libs/libmlib.lax/libltdlc.a/lt_error.o .libs/libmlib.lax/libltdlc.a/lt__alloc.o .libs/libmlib.lax/libltdlc.a/slist.o .libs/libmlib.lax/libltdlc.a/dlopen.o
ranlib .libs/libmlib.a
rm -fr .libs/libmlib.lax
libtool: link: creating libmlib.la
(cd .libs && rm -f libmlib.la && ln -s ../libmlib.la libmlib.la)
gcc -DPACKAGE_NAME=\"mdemo\" -DPACKAGE_TARNAME=\"mdemo\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"mdemo\ 1.0\" -DPACKAGE_BUGREPORT=\"address@hidden" -DPACKAGE=\"mdemo\" -DVERSION=\"1.0\" -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 -DLT_OBJDIR=\".libs/\" -DHAVE_MATH_H=1 -I. -I/tmp/libtool/tests/mdemo -I/tmp/libtool/tests/mdemo/../.. -I/tmp/libtool/tests/mdemo/../../libltdl -g -O2 -c /tmp/libtool/tests/mdemo/main.c /bin/sh ./libtool --mode=link --tag=CC gcc -g -O2 -o mdemo -export-dynamic main.o ./../../libltdl/libltdlc.la libsub.la "-dlopen" self "-dlopen" foo1.la "-dlopen" libfoo2.la
rm -f .libs/mdemo.nm .libs/mdemo.nmS .libs/mdemo.nmT
libtool: link: creating .libs/mdemoS.c
libtool: link: generating symbol list for `mdemo'
libtool: link: extracting global C symbols from `main.o'
libtool: link: extracting global C symbols from `./.libs/foo1.a'
libtool: link: extracting global C symbols from `/tmp/build-static/tests/mdemo/.libs/libsub.a'
libtool: link: extracting global C symbols from `./.libs/libfoo2.a'
libtool: link: extracting global C symbols from `/tmp/build-static/tests/mdemo/.libs/libsub.a' (cd .libs && gcc -g -O2 -c -fno-builtin -fno-rtti -fno-exceptions "mdemoS.c")
rm -f .libs/mdemoS.c .libs/mdemo.nm .libs/mdemo.nmS .libs/mdemo.nmT
gcc -g -O2 -o mdemo main.o .libs/mdemoS.o -Wl,--export-dynamic /tmp/build-static/libltdl/loaders/.libs/dlopen.a ./.libs/foo1.a ./.libs/libfoo2.a -lm /tmp/build-static/tests/mdemo/.libs/libsub.a ./../../libltdl/.libs/libltdlc.a -ldl ./.libs/libsub.a ./../../libltdl/.libs/libltdlc.a(libltdlc_la-ltdl.o)(.text+0x10a): In function `lt_dlinit': ../../libltdl/ltdl.c:216: undefined reference to `lt_libltdlc_LTX_preloaded_symbols'
collect2: ld returned 1 exit status
rm -f .libs/mdemoS.o
make[4]: *** [mdemo] Error 1
make[4]: Leaving directory `/tmp/build-static/tests/mdemo'
FAIL: mdemo-make.test Is this supposed to work?
Regards,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]