ID:               39940
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lendy dot chen at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         XML related
 Operating System: Linux AS4.0U2
 PHP Version:      5.2.0
 New Comment:

The code in XmlReader uses #ifdef LIBXML_SCHEMAS_ENABLED, which is
defined in "xmlversion.h" (a part of libxml2 distro). If the header
defines this constant and the library does not provide
xmlTextReaderSchemaValidate() function, then most likely you have wrong
headers or wrong library. 
In either case this is not PHP problem.


Previous Comments:
------------------------------------------------------------------------

[2006-12-24 07:13:49] lendy dot chen at gmail dot com

Description:
------------
same in php5.1.6 is ok,
but error with php5.2.0


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 


make 

ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function
`zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined
reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status


Reproduce code:
---------------
same in php5.1.6 is ok,
but error with php5.2.0


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 


make 

ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function
`zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined
reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status


Expected result:
----------------
same in php5.1.6 is ok,
but error with php5.2.0


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 


make 

ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function
`zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined
reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status


Actual result:
--------------
same in php5.1.6 is ok,
but error with php5.2.0


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 


make 

ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function
`zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined
reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39940&edit=1

Reply via email to