Bug #76886 [Opn->Ver]: Can't build xmlrpc with expat

From: Date: Sat, 15 Sep 2018 11:05:46 +0000
Subject: Bug #76886 [Opn->Ver]: Can't build xmlrpc with expat
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217066@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76886&edit=1 ID: 76886 Updated by: cmb@php.net Reported by: cmb@php.net Summary: Can't build xmlrpc with expat -Status: Open +Status: Verified Type: Bug Package: Compile Failure Operating System: * PHP Version: master-Git-2018-09-15 (Git) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Indeed, PHP-7.2+ appears to affected. Previous Comments: ------------------------------------------------------------------------ [2018-09-15 11:05:22] cmb@php.net 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 this bug report at https://bugs.php.net/bug.php?id=76886&edit=1

« previous php.bugs (#217066) next »