[Monetdb-developers] libxml linking error during compilation, Mar2011 (Mac 10.6.6)

Babis Nikolaou charnik at di.uoa.gr
Fri Feb 11 22:54:27 CET 2011


Hi,

do you have any idea about the following error:

*** Warning: Linking the shared library lib_batxml.la against the
loadable module
*** lib_xml.so is not portable!
*** Warning: lib lib_xml.so is a module, not a shared library

*** And there doesn't seem to be a static archive available
*** The link will probably fail, sorry

Attached are the libtool's actions concerning the previous error.

Furthermore, if it is relevant to my question, i provide the following
information:

MonetDB_Mar2011$ find . -name 'lib_xml*'
./monetdb5/extras/xml/.libs/lib_xml.la
./monetdb5/extras/xml/.libs/lib_xml.lai
./monetdb5/extras/xml/.libs/lib_xml.so
./monetdb5/extras/xml/.libs/lib_xml.so.dSYM
./monetdb5/extras/xml/.libs/lib_xml.so.dSYM/Contents/Resources/DWARF/lib_xml.so
./monetdb5/extras/xml/.libs/lib_xml_la-xml.o
./monetdb5/extras/xml/lib_xml.la
./monetdb5/extras/xml/lib_xml_la-xml.lo

And last, i can assure you that there is a static library in my system
for libxml (/usr/local/Cellar/libxml2/2.7.7/lib/libxml2.a) and the
directory containing it has been included in the PKG_CONFIG_PATH
explicitly (you can check this by inspecting the attached file).

Thanks,
Babis
-------------- next part --------------
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I. -I../../mal -I./../../mal -I../../../common/options -I./../../../common/options -I../../../gdk -I./../../../gdk -I../../../common/stream -I./../../../common/stream -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -DLIBBATXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -c batxml.c  -fno-common -DPIC -o .libs/lib_batxml_la-batxml.o
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I. -I../../mal -I./../../mal -I../../../common/options -I./../../../common/options -I../../../gdk -I./../../../gdk -I../../../common/stream -I./../../../common/stream -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2     -DLIBXML  -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement  -D_REENTRANT  -c -o lib_xml_la-xml.lo `test -f 'xml.c' || echo './'`xml.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I. -I../../mal -I./../../mal -I../../../common/options -I./../../../common/options -I../../../gdk -I./../../../gdk -I../../../common/stream -I./../../../common/stream -I/usr/local/Cellar/libxml2/2.7.7/include/libxml2 -DLIBXML -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement -D_REENTRANT -c xml.c  -fno-common -DPIC -o .libs/lib_xml_la-xml.o
/bin/sh ../../../libtool --tag=CC   --mode=link gcc -std=gnu99 -DLIBXML  -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement  -D_REENTRANT -module -avoid-version  -o lib_xml.la -rpath /Users/user/apps/MonetDB/lib/monetdb5/lib  lib_xml_la-xml.lo ../../tools/libmonetdb5.la ../../../gdk/libbat.la  -L/usr/local/Cellar/libxml2/2.7.7/lib -lxml2   -pthread
libtool: link: gcc -std=gnu99 -Wl,-undefined -Wl,dynamic_lookup -o .libs/lib_xml.so -bundle  .libs/lib_xml_la-xml.o   ../../tools/.libs/libmonetdb5.6.0.0.dylib -L/usr/local/Cellar/pcre/8.10/lib /Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -lm -lpcre ../../../gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -lssl -lcrypto -lz -lcurl -lbz2 -ldl -L/usr/local/Cellar/libxml2/2.7.7/lib -lxml2  -pthread -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib   -pthread
libtool: link: dsymutil .libs/lib_xml.so || :
libtool: link: ( cd ".libs" && rm -f "lib_xml.la" && ln -s "../lib_xml.la" "lib_xml.la" )
/bin/sh ../../../libtool --tag=CC   --mode=link gcc -std=gnu99 -DLIBBATXML  -Wall -Wextra -g -Werror-implicit-function-declaration -Werror -Wpointer-arith -Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -Wno-declaration-after-statement  -D_REENTRANT -module -avoid-version  -o lib_batxml.la -rpath /Users/user/apps/MonetDB/lib/monetdb5/lib  lib_batxml_la-batxml.lo lib_xml.la ../../tools/libmonetdb5.la ../../../gdk/libbat.la -lm  -L/usr/local/Cellar/libxml2/2.7.7/lib -lxml2   -pthread

*** Warning: Linking the shared library lib_batxml.la against the loadable module
*** lib_xml.so is not portable!
*** Warning: lib lib_xml.so is a module, not a shared library

*** And there doesn't seem to be a static archive available
*** The link will probably fail, sorry
libtool: link: gcc -std=gnu99 -Wl,-undefined -Wl,dynamic_lookup -o .libs/lib_batxml.so -bundle  .libs/lib_batxml_la-batxml.o   ./.libs/lib_xml.so -L/usr/local/Cellar/pcre/8.10/lib -L/usr/local/Cellar/libxml2/2.7.7/lib /Users/user/Documents/dev/MonetDB_Mar2011/monetdb5/tools/.libs/libmonetdb5.6.0.0.dylib ../../tools/.libs/libmonetdb5.6.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -lpcre ../../../gdk/.libs/libbat.2.0.0.dylib /Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -lssl -lcrypto -lz -lcurl -lbz2 -ldl -lm -lxml2  -pthread -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmonetdb5.6.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/monetdb5/tools/.libs/libmonetdb5.6.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libbat.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/gdk/.libs/libbat.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libmapi.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/clients/mapilib/.libs/libmapi.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib -Wl,-dylib_file -Wl,/Users/user/apps/MonetDB/lib/libstream.2.dylib:/Users/user/Documents/dev/MonetDB_Mar2011/common/stream/.libs/libstream.2.0.0.dylib   -pthread
ld: in ./.libs/lib_xml.so, can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB)
collect2: ld returned 1 exit status
make[7]: *** [lib_batxml.la] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


More information about the developers-list mailing list