php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39940 make error
Submitted: 2006-12-24 07:13 UTC Modified: 2006-12-25 10:04 UTC
From: lendy dot chen at gmail dot com Assigned:
Status: Not a bug Package: XML related
PHP Version: 5.2.0 OS: Linux AS4.0U2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lendy dot chen at gmail dot com
New email:
PHP Version: OS:

 

 [2006-12-24 07:13 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-25 10:04 UTC] tony2001@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 03:01:29 2024 UTC