[xml] libxml compilation



I tried to compile libxml on a PC running GNU/Linux RH 5.2,
using the usual ./configure, make, make install,
but I got the errors posted below.

I thought this could be related with zlib,
which I installed some time ago, so I tried
1) using the --with-zlib option to indicate the zlib path
2) comment the zlib path on /etc/ld.so.conf and run /sbin/ldconfig
so xml would not find it.

However, no sucess so far... What am I doing wrong?

Carlos

-------------
with libxml2-2.4.3:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include    -I/include  -g -O2 -Wall -c xmllint.c
/bin/sh ./libtool --mode=link gcc  -g -O2 -Wall  -o xmllint  xmllint.o ./libxml2.la  -L/lib -lm 
gcc -g -O2 -Wall -o .libs/xmllint xmllint.o  ./.libs/libxml2.so -L/lib -lm -Wl,--rpath -Wl,/usr/local/lib
./.libs/libxml2.so: undefined reference to `deflate'
./.libs/libxml2.so: undefined reference to `gzopen'
./.libs/libxml2.so: undefined reference to `crc32'
./.libs/libxml2.so: undefined reference to `gzread'
./.libs/libxml2.so: undefined reference to `deflateInit2_'
./.libs/libxml2.so: undefined reference to `gzdopen'
./.libs/libxml2.so: undefined reference to `gzclose'
./.libs/libxml2.so: undefined reference to `gzwrite'
./.libs/libxml2.so: undefined reference to `deflateEnd'
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/tmp/libxml2-2.4.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/libxml2-2.4.3'
make: *** [all-recursive-am] Error 2

--------------------
with libxml2-2.4.0:

/bin/sh ./libtool --mode=link gcc  -g -O2 -Wall  -o xmllint  xmllint.o -lreadline -lhistory -lncurses 
./libxml2.la  -L/lib -lm 
gcc -g -O2 -Wall -o .libs/xmllint xmllint.o -lreadline -lhistory -lncurses ./.libs/libxml2.so -lm -L/lib -lm 
-Wl,--rpath -Wl,/usr/local/lib
./.libs/libxml2.so: undefined reference to `gzopen'
./.libs/libxml2.so: undefined reference to `gzread'
./.libs/libxml2.so: undefined reference to `gzdopen'
./.libs/libxml2.so: undefined reference to `gzclose'
./.libs/libxml2.so: undefined reference to `gzwrite'
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/tmp/libxml2-2.4.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/libxml2-2.4.0'
make: *** [all-recursive-am] Error 2




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