[xml] Error compiling libxml2 on Solaris 2.10



Hi there,

I've been struggling with getting libxml2 to compile on solaris 10.

I get this:
***************************************

creating testdso.la
(cd .libs && rm -f testdso.la && ln -s ../testdso.la testdso.la)
if /export/admin/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include
-D_REENTRANT -I/export/admin/include   -I/export/admin/include  -g -O2
-pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment
-Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses
-Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline
-Wredundant-decls -MT xmllint.o -MD -MP -MF ".deps/xmllint.Tpo" -c -o
xmllint.o xmllint.c; \
then mv -f ".deps/xmllint.Tpo" ".deps/xmllint.Po"; else rm -f
".deps/xmllint.Tpo"; exit 1; fi
/bin/bash ./libtool --mode=link --tag=CC /export/admin/bin/gcc  -g -O2
-pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment
-Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses
-Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline
-Wredundant-decls   -o xmllint  xmllint.o ./libxml2.la -lpthread
-L/export/admin/lib -R/export/admin/lib -lz -L/export/admin/lib -liconv -lm
-lsocket -lnsl 
/export/admin/bin/gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit
-Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts
-Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align
-Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Winline -Wredundant-decls -o .libs/xmllint xmllint.o
./.libs/libxml2.so -ldl -L/export/admin/lib -lpthread -lz
/export/admin/lib/libiconv.so -lm -lsocket -lnsl -Wl,--rpath
-Wl,/export/admin/lib
./.libs/libxml2.so: undefined reference to `dlopen SUNW_0 7'
./.libs/libxml2.so: undefined reference to `dlclose SUNW_0 7'
./.libs/libxml2.so: undefined reference to `pthread_key_create SUNW_0 9'
./.libs/libxml2.so: undefined reference to `write SUNW_0 9'
./.libs/libxml2.so: undefined reference to `pthread_setspecific SUNW_0 9'
./.libs/libxml2.so: undefined reference to `fcntl SUNW_0 9'
./.libs/libxml2.so: undefined reference to `dlsym SUNW_0 7'
./.libs/libxml2.so: undefined reference to `select SUNW_1 2'
./.libs/libxml2.so: undefined reference to `dlerror SUNW_0 7'
./.libs/libxml2.so: undefined reference to `pthread_equal SUNW_0 9'
./.libs/libxml2.so: undefined reference to `close SUNW_0 9'
./.libs/libxml2.so: undefined reference to `read SUNW_0 9'
./.libs/libxml2.so: undefined reference to `pthread_getspecific SUNW_0 9'
./.libs/libxml2.so: undefined reference to `pthread_self SUNW_0 9'
./.libs/libxml2.so: undefined reference to `pthread_once SUNW_0 9'
collect2: ld returned 1 exit status
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/export/admin/src/libxml/libxml2-2.6.17'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/admin/src/libxml/libxml2-2.6.17'
make: *** [all] Error 2
*****************************************

I used the following ./configure:
./configure --prefix=/export/admin --with-gnu-ld
--with-ld=/export/admin/bin/ld \
--with-gnu-as --with-as=/export/admin/bin/as --with-iconv=/export/admin \
--with-zlib=/export/admin --disable-static

I've tried compiling without iconv, zlib, static libraries etc. to no avail.

I have compiled everything else needed for the GD library with no problems.

I am using gcc 3.4.3
GNU ld 2.14

and everything else is the latest and greatest.

I have set the LD_LIBRARY_PATH and crle (ld.config) to point to library
directories.

I ldd'ed libxml2 from /.libs/ and the dependencies are ok. It does NOT list
libdl or libpthread.

And now I am oblivious as to why things thing won't compile.

Any ideas, anybody?


Thanks

Peter Normann

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22-02-2005
 




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