From: dverspui at hotpop dot com Operating system: Fedora Core 2 PHP version: 5.1.0RC1 PHP Bug Type: Compile Failure Bug description: Compiling fails because of undefined references to XML stuff
Description: ------------ I succesfully compiled and installed PHP up till and including PHP version 5.0.4. I did not update or change any of the required rpm's I have installed on my system, however with none of the PHP 5.1.0 versions compilation succeeds. I have all XML related *-devel packages installed, however the final linking stage of make fails with undefined references to XML related stuff. Am I missing something? My configure command line: ./configure \ --prefix=/opt/php5 \ --host=i686-pc-linux-gnu \ --with-apxs2=/usr/sbin/apxs \ --enable-inline-optimization \ --disable-debug \ --with-layout=GNU \ --enable-pic \ --with-pear \ --enable-safe-mode \ --enable-magic-quotes \ --enable-memory-limit \ --enable-discard-path \ --enable-force-cgi-redirect \ --disable-rpath \ --enable-bcmath \ --enable-calendar \ --enable-exif \ --enable-ftp \ --enable-shmop \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-ucd-snmp-hack \ --enable-wddx \ --with-regex=system \ --with-pcre-regex=/usr \ --with-exec-dir=/usr/bin \ --with-bz2 \ --with-curl \ --with-db4=/usr \ --with-gd \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib-dir=/usr \ --with-freetype-dir=/usr \ --with-ttf=/usr \ --enable-gd-native-ttf \ --without-gdbm \ --with-gettext \ --with-gmp \ --with-iconv \ --with-imap=shared \ --with-kerberos \ --with-imap-ssl \ --with-ldap=shared \ --enable-mbstring=shared \ --enable-mbregex \ --with-mysql=shared,/usr \ --with-mysqli=/usr/bin/mysql_config \ --with-ncurses \ --with-openssl \ --with-pgsql=shared \ --with-pspell \ --with-unixODBC=shared,/usr \ --with-zlib \ --enable-dom \ --enable-simplexml \ --enable-libxml \ --enable-xml \ --with-xmlrpc=shared \ --with-expat-dir=/usr \ --with-xsl \ --enable-mbstring=shared \ --enable-pdo \ --with-pdo-mysql=/usr \ --with-pdo-pgsql=/usr \ --with-xmlreader Relevant configure output: ... [Configuring extensions] 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... yes ... checking whether to enable SimpleXML support... yes ... checking whether to enable XML support... yes checking libexpat install dir... no checking for XMLReader support... yes checking for XMLRPC-EPI support... yes, shared checking libexpat dir for XMLRPC-EPI... /usr checking iconv dir for XMLRPC-EPI... no checking for xmlparse.h... no checking for xmltok.h... no ... Make fails at the point where everything is linked together, starting with sapi/cli/php: ext/wddx/.libs/wddx.o(.text+0x3775): In function `php_wddx_deserialize_ex': /spuymore/php-5.1.0RC1/ext/wddx/wddx.c:1134: undefined reference to `XML_ParserCreate' ext/wddx/.libs/wddx.o(.text+0x3780):/spuymore/php-5.1.0RC1/ext/wddx/wddx.c:1136: undefined reference to `XML_SetUserData' ext/wddx/.libs/wddx.o(.text+0x3793):/spuymore/php-5.1.0RC1/ext/wddx/wddx.c:1137: undefined reference to `XML_SetElementHandler' ext/wddx/.libs/wddx.o(.text+0x37a0):/spuymore/php-5.1.0RC1/ext/wddx/wddx.c:1138: undefined reference to `XML_SetCharacterDataHandler' ext/wddx/.libs/wddx.o(.text+0x37ae):/spuymore/php-5.1.0RC1/ext/wddx/wddx.c:1140: undefined reference to `XML_Parse' ext/wddx/.libs/wddx.o(.text+0x37b7):/spuymore/php-5.1.0RC1/ext/wddx/wddx.c:1142: undefined reference to `XML_ParserFree' ext/xml/.libs/xml.o(.text+0x2d6): In function `zm_info_xml': /spuymore/php-5.1.0RC1/ext/xml/xml.c:271: undefined reference to `XML_ExpatVersion' ext/xml/.libs/xml.o(.text+0x5bc): In function `xml_parser_dtor': /spuymore/php-5.1.0RC1/ext/xml/xml.c:329: undefined reference to `XML_ParserFree' ext/xml/.libs/xml.o(.text+0x188e): In function `php_xml_parser_create_impl': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1085: undefined reference to `XML_ParserCreate_MM' ext/xml/.libs/xml.o(.text+0x18b5):/spuymore/php-5.1.0RC1/ext/xml/xml.c:1093: undefined reference to `XML_SetUserData' ext/xml/.libs/xml.o(.text+0x1b24): In function `zif_xml_set_element_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1174: undefined reference to `XML_SetElementHandler' ext/xml/.libs/xml.o(.text+0x1bbd): In function `zif_xml_set_character_data_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1193: undefined reference to `XML_SetCharacterDataHandler' ext/xml/.libs/xml.o(.text+0x1c51): In function `zif_xml_set_processing_instruction_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1212: undefined reference to `XML_SetProcessingInstructionHandler' ext/xml/.libs/xml.o(.text+0x1ce5): In function `zif_xml_set_default_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1230: undefined reference to `XML_SetDefaultHandler' ext/xml/.libs/xml.o(.text+0x1d79): In function `zif_xml_set_unparsed_entity_decl_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1249: undefined reference to `XML_SetUnparsedEntityDeclHandler' ext/xml/.libs/xml.o(.text+0x1e0d): In function `zif_xml_set_notation_decl_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1267: undefined reference to `XML_SetNotationDeclHandler' ext/xml/.libs/xml.o(.text+0x1ea1): In function `zif_xml_set_external_entity_ref_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1285: undefined reference to `XML_SetExternalEntityRefHandler' ext/xml/.libs/xml.o(.text+0x1f35): In function `zif_xml_set_start_namespace_decl_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1304: undefined reference to `XML_SetStartNamespaceDeclHandler' ext/xml/.libs/xml.o(.text+0x1fc9): In function `zif_xml_set_end_namespace_decl_handler': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1323: undefined reference to `XML_SetEndNamespaceDeclHandler' ext/xml/.libs/xml.o(.text+0x2098): In function `zif_xml_parse': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1352: undefined reference to `XML_Parse' ext/xml/.libs/xml.o(.text+0x22bc): In function `zif_xml_parse_into_struct': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1388: undefined reference to `XML_SetDefaultHandler' ext/xml/.libs/xml.o(.text+0x22d1):/spuymore/php-5.1.0RC1/ext/xml/xml.c:1389: undefined reference to `XML_SetElementHandler' ext/xml/.libs/xml.o(.text+0x22e0):/spuymore/php-5.1.0RC1/ext/xml/xml.c:1390: undefined reference to `XML_SetCharacterDataHandler' ext/xml/.libs/xml.o(.text+0x2300):/spuymore/php-5.1.0RC1/ext/xml/xml.c:1393: undefined reference to `XML_Parse' ext/xml/.libs/xml.o(.text+0x2436): In function `zif_xml_get_error_code': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1412: undefined reference to `XML_GetErrorCode' ext/xml/.libs/xml.o(.text+0x24b1): In function `zif_xml_error_string': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1427: undefined reference to `XML_ErrorString' ext/xml/.libs/xml.o(.text+0x25a2): In function `zif_xml_get_current_line_number': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1446: undefined reference to `XML_GetCurrentLineNumber' ext/xml/.libs/xml.o(.text+0x2612): In function `zif_xml_get_current_column_number': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1462: undefined reference to `XML_GetCurrentColumnNumber' ext/xml/.libs/xml.o(.text+0x2682): In function `zif_xml_get_current_byte_index': /spuymore/php-5.1.0RC1/ext/xml/xml.c:1478: undefined reference to `XML_GetCurrentByteIndex' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 -- Edit bug report at http://bugs.php.net/?id=34221&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34221&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34221&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34221&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34221&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34221&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34221&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34221&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34221&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34221&r=support Expected behavior: http://bugs.php.net/fix.php?id=34221&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34221&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34221&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34221&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34221&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34221&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34221&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34221&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34221&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34221&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34221&r=mysqlcfg