[xml] compile-time error libxml2-2.7.8



Hi all!

 

I’m building libxml2-2.7.8 on several different (redhat-based) platforms (using a long list of --with-xxx=no options,… see below for the options).

 

The first one I tried was an up to date Centos 5.6 which went without a hitch.

 

The second one is an older Centos 4.8, and with the same list of configure options I get this output:

 

libtool: link: ar cru .libs/testdso.a  testdso.o

libtool: link: ranlib .libs/testdso.a

libtool: link: ( cd ".libs" && rm -f "testdso.la" && ln -s "../testdso.la" "testdso.la" )

gcc -DHAVE_CONFIG_H -I. -I./include -I./include  -D_REENTRANT      -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 mv -f .deps/xmllint.Tpo .deps/xmllint.Po

/bin/sh ./libtool --tag=CC   --mode=link 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  -lz  -lm

libtool: link: 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 -lz -lm -Wl,-rpath -Wl,/usr/local/lib

./.libs/libxml2.so: undefined reference to `xmlSAX2EndElement'

./.libs/libxml2.so: undefined reference to `xmlSAX2StartElement'

collect2: ld returned 1 exit status

make[2]: *** [xmllint] Error 1

make[2]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8'

make: *** [all] Error 2

 

 

cat /etc/redhat-release

CentOS release 4.8 (Final)

 

 

Note the undefined references to xmlSAX2EndElement and xmlSAX2StartElement in libxml2.so.

 

Here is the list of configure options I used:

 

./configure --with-reader --enable-ipv6=no --with-catalog=no --with-debug=no --with-docbook=no --with-ftp=no --with-html=no --with-pattern=no --with-push=no --with-regexps=no --with-sax1=no --with-schemas=no --with-schematron=no --with-valid=no --with-writer=no --with-xinclude=no --with-xpath=no --with-xptr=no

 

 

Gcc version:

$ gcc -v

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux

Thread model: posix

gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)

 

 

it appears to create the static library (which is my ultimate goal) so I may be OK as-is, but it makes me wonder. Suggestions welcome.

 

Fred

 

 

Fred Smith

Senior Applications Programmer/Analyst

Computrition, Inc.

175 Middlesex Turnpike

Bedford, MA 01730

ph: 781-275-4488 x148

fax: 781-687-8884

 



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