php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35603 undefined reference to `xmlParserInputBufferCreateFilenameDefault' durink link
Submitted: 2005-12-08 17:56 UTC Modified: 2005-12-08 21:54 UTC
From: mana at cyor dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.1 OS: Suse 9.1
Private report: No CVE-ID: None
 [2005-12-08 17:56 UTC] mana at cyor dot de
Description:
------------
During linking for sapi/cli/php there is an error thrown by ld in ext/libxml/libxml.c (see below)

I tryed ldconfig and several different versions of libxml >= 2.6.11. My Suse update servers do not provide me with a recent enough version so i used the standard prefix /usr/local configured php --with-libxml-dir=/usr/local

Reproduce code:
---------------
./configure --with-config-file-path=/etc --with-apxs2=/usr/local/apache22/bin/apxs --enable-mbstring --with-openssl --with-kerberos --with-zlib --with-bzip2 --enable-calendar --with-curl --with-curlwrappers --with-inifile --enable-exif --enable-ftp --with-gd --with-ttf --with-ldap --with-mbstring --with-mcrypt --with-mhash --with-imap-ssl--with-mysql --with-mysqli=/usr/local/bin/mysql_config --with-ncurses --enable-pcntl --with-pdo-mysql --with-readline --with-shmop --with-snmp --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-wddx --with-xsl --with-xmlreader --with-pear=/usr/local/pear --with-xmlrpc --with-libxml-dir=/usr/local

Actual result:
--------------
[...]  -o sapi/cli/php
ext/libxml/.libs/libxml.o(.text+0xa42): In function `zm_deactivate_libxml':
/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:644: undefined reference to `xmlParserInputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o(.text+0xa4e):/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:645: undefined reference to `xmlOutputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o(.text+0xafa): In function `zm_activate_libxml':
/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:624: undefined reference to `xmlParserInputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o(.text+0xb06):/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:625: undefined reference to `xmlOutputBufferCreateFilenameDefault'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-08 17:59 UTC] tony2001@php.net
What libxml2 version are you using?
 [2005-12-08 18:07 UTC] mana at cyor dot de
i tried 2.6.22, 2.6.21, 2.6.11 and at last 2.6.22 again.

The version provided via yast is 2.6.7, but i dont want php to use that. the configure script warned my anyway so i had to compile using the /usr/local prefix.

thanks for that quick reply :))
 [2005-12-08 18:11 UTC] tony2001@php.net
So you have several versions of libxml2 installed in your system, right?
The one that comes with th distro and the one that you've built yourself?
 [2005-12-08 18:13 UTC] mana at cyor dot de
right.
 [2005-12-08 18:36 UTC] rrichards@php.net
I see you are building with xsl. I bet you didnt make a new build of that linking against the new libxml2 library and its pulling in the old libxml2 config from libxslt. You will then also need to direct xsl ext to use the new libxslt.
 [2005-12-08 18:59 UTC] mana at cyor dot de
Well i should have thought about that myself.
I compiled the latest version of libxslt, linked it against the libxml 2.6.22 and added --with-xsl=/usr/local

Sorry for bothering you with probably bogus stuff -.. should i better post this in a soppurt mailing list? thanks

but still i get this:

ext/libxml/.libs/libxml.o(.text+0xa42): In function `zm_deactivate_libxml':
/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:644: undefined reference to `xmlParserInputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o(.text+0xa4e):/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:645: undefined reference to `xmlOutputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o(.text+0xafa): In function `zm_activate_libxml':
/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:624: undefined reference to `xmlParserInputBufferCreateFilenameDefault'
ext/libxml/.libs/libxml.o(.text+0xb06):/root/source_downloads/php-5.1.1/ext/libxml/libxml.c:625: undefined reference to `xmlOutputBufferCreateFilenameDefault'
/usr/local/lib/libxslt.so: undefined reference to `xmlNewDocPI'
/usr/local/lib/libxslt.so: undefined reference to `xmlModuleClose'
/usr/local/lib/libxslt.so: undefined reference to `xmlModuleOpen'
/usr/local/lib/libxslt.so: undefined reference to `xmlModuleSymbol'
 [2005-12-08 20:09 UTC] mana at cyor dot de
I now ran "xml2Conf.sh" and "xsltConf.sh" in my /usr/local/lib, recompiled and dobblechecked the configure for xslt, still the same error .. i put the Makefile on a temporary server if it is of any interest ... i dont see the issue :-/

http://mana.homelinux.org/Makefile
 [2005-12-08 21:54 UTC] rrichards@php.net
its a configuration issue on your system. makefile looks ok.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 03:01:29 2024 UTC