#35603 [Opn->Fbk]: undefined reference to `xmlParserInputBufferCreateFilenameDefault' durink link
| From: | rrichards@php.net | Date: | Thu, 08 Dec 2005 17:36:12 +0000 |
| Subject: | #35603 [Opn->Fbk]: undefined reference to `xmlParserInputBufferCreateFilenameDefault' durink link | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89970@lists.php.net to get a copy of this message | ||
ID: 35603
Updated by: rrichards@php.net
Reported By: mana at cyor dot de
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Suse 9.1
PHP Version: 5.1.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-12-08 18:13:09] mana at cyor dot de
right.
------------------------------------------------------------------------
[2005-12-08 18:11:40] 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:07:18] 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 17:59:48] tony2001@php.net
What libxml2 version are you using?
------------------------------------------------------------------------
[2005-12-08 17:56:46] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35603&edit=1