[xml/sgml-pkgs] Bug#396416: Bug#396416: Causes php configure to fail
Mike Hommey
mh at glandium.org
Sat Sep 12 16:32:51 UTC 2009
On Sat, Sep 12, 2009 at 05:56:15PM +0200, Alexander Prinsier wrote:
> I tried compiling php 5.2.10 myself on lenny.
>
> $ ./configure --with-mysql --with-apxs=/path/to/apxs
> [snip]
> checking whether to enable LIBXML support... yes
> checking libxml2 install dir... no
> checking for xml2-config path... /usr/bin/xml2-config
> checking whether libxml build works... no
> configure: error: build test failed. Please check the config.log
> for details.
>
> From config.log:
>
> configure:20827: checking whether libxml build works
> configure:20854: gcc -o conftest -g -O2 conftest.c
>
> -lresolv -lm -ldl -lnsl -lxml2 1>&5
> /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libxml2.so:
> undefined reference to `gzopen64'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 20843 "configure"
> #include "confdefs.h"
>
>
> char xmlInitParser();
> int main() {
> xmlInitParser();
> return 0;
> }
>
> If you remove the dependency from the .la you probably have to list
> it using xml2-config, no?
No, because linking against libxml2 doesn't require to link against
libz. At all.
My guess, though, is that you have a libz that is *not* the debian one
somewhere on your system, and libxml2 is loaded with it, while it
doesn't contain the gzopen64 symbol libxml2 requires. Try looking in
/usr/local/lib.
Or just try ldd /usr/lib/libxml2.so, it will tell you where it takes
libz from.
Mike
More information about the debian-xml-sgml-pkgs
mailing list