Bug #76886 [NEW]: Can't build xmlrpc with expat

From: Date: Sat, 15 Sep 2018 11:05:22 +0000
Subject: Bug #76886 [NEW]: Can't build xmlrpc with expat
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217065@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: master-Git-2018-09-15 (Git) Package: Compile Failure Bug Type: Bug Bug description:Can't build xmlrpc with expat Description: ------------ Originally reported by Thomas Petazzoni via <https://github.com/php/php-src/pull/3212>: When expat support is disabled and libxml support is enabled, the following part of the code in expat_compat.h gets used: and therefore "php".h" is included. However, when libexpat support is enabled, HAVE_LIBEXPAT is defined, and therefore the following part of the code is used: In this case, "php.h" is not included. Due to this, zend_alloc.h is never included when building the ext/xmlrpc/libxmlrpc/xml_element.c file, and therefore the estrdup -> _estrdup macros are never defined, causing the following link time failure: ext/xmlrpc/libxmlrpc/xml_element.o: In function xml_element_serialize': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:462: undefined reference toefree' ext/xmlrpc/libxmlrpc/xml_element.o: In function xml_elem_entity_escape': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:347: undefined reference toemalloc' ext/xmlrpc/libxmlrpc/xml_element.o: In function _xmlrpc_charHandler': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:646: undefined reference toefree' ext/xmlrpc/libxmlrpc/xml_element.o: In function xml_elem_free_non_recurse': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:198: undefined reference toefree' /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:199: undefined reference to efree' /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:200: undefined reference toefree' /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:207: undefined reference to efree' ext/xmlrpc/libxmlrpc/xml_element.o: In functionxml_elem_new': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:263: undefined reference to ecalloc' ext/xmlrpc/libxmlrpc/xml_element.o: In function_xmlrpc_startElement': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:602: undefined reference to estrdup' /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:607: undefined reference toemalloc' /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:609: undefined reference to estrdup' /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:610: undefined reference toestrdup' ext/xmlrpc/libxmlrpc/xml_element.o: In function xml_elem_free_non_recurse': /home/thomas/projets/php/ext/xmlrpc/libxmlrpc/xml_element.c:211: undefined reference toefree' collect2: error: ld returned 1 exit status make: *** [Makefile:248: sapi/cgi/php-cgi] Error 1 This link time failure can be produced with: ./configure --prefix=/usr --with-libdir=/usr/lib64 --disable-all --without-pear --with-config-file-path=/etc --disable-phpdbg --disable-cli --enable-cgi --disable-fpm --enable-xmlreader --enable-xmlwriter --enable-libxml --enable-wddx --with-xmlrpc --with-libexpat-dir=/ -- Edit bug report at https://bugs.php.net/bug.php?id=76886&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76886&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76886&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76886&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76886&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76886&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76886&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76886&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76886&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76886&r=support Expected behavior: https://bugs.php.net/fix.php?id=76886&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76886&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76886&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76886&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76886&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76886&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76886&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76886&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76886&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76886&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76886&r=mysqlcfg

« previous php.bugs (#217065) next »