[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Error building libxml2
- From: "William M. Brack" <wbrack mmm com hk>
- To: "Anne Ramey" <anner blast com>
- Cc: xml gnome org
- Subject: Re: [xml] Error building libxml2
- Date: Wed, 4 Feb 2004 03:34:21 +0800 (HKT)
There is some confusion here. The config param "--with-zlib=DIR"
means that *both* the include files *and* the library files are
located in DIR. Normally zlib should be included in the "standard"
system libraries, and this parameter should not be used (--with-zlib
should be the default configuration). So, try
./configure --enable-ipv6=no
and see if it works ok.
Bill
Anne Ramey said:
> 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]