Re: [xml] Error building libxml2
- From: Anne Ramey <anner blast com>
- To: xml gnome org
- Subject: Re: [xml] Error building libxml2
- Date: Tue, 3 Feb 2004 13:14:36 -0500
I installed a new copy of zlib, just to be sure. It configures, made,
tested and installed fine. It installed into
/data/local/include so I did:
./configure --with-zlib=/data/local/include --enable-ipv6=no
and got the same thing:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT
-g -O2 -Wall -c `test -f 'xmllint.c' || echo './'`xmllint.c
/bin/sh ./libtool --mode=link gcc -g -O2 -Wall -o xmllint xmllint.o
./libxml2.la -lpthread -lm
gcc -g -O2 -Wall -o .libs/xmllint xmllint.o ./.libs/libxml2.so
-lpthread -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 `atexit'
./.libs/libxml2.so: undefined reference to `gzwrite'
./.libs/libxml2.so: undefined reference to `gzrewind'
./.libs/libxml2.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/data/test/XML/libxml2-2.6.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/test/XML/libxml2-2.6.4'
make: *** [all] Error 2
help? (I tried ./configure --with-zlib=/data/local/include/zlib.h
--enable-ipv6=no too with same result)
Anne
On Feb 3, 2004, at 12:12 PM, Adam Maccabee Trachtenberg wrote:
On Tue, 3 Feb 2004, Anne Ramey wrote:
I run into this error when trying to do the make after ./configure
--with-zlib=/data/src/apache_src/php-4.1.2/ext/zlib --enable-ipv6=no
The PHP zlib extension is not the zlib library. It's a part of PHP
that, like libxml2, uses the zlib library.
The zlib files are usually in /usr/include/zlib/ or just
/usr/include/zlib.h. I would think that libxml2 should be able to
autodetect them on your system assuming they're installed in a
standard location and you can just do --with-zlib.
-adam
--
adam trachtenberg com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]