If you have the USE flag xmlrpc enabled PHP-5.0.4-r1 will fail to build. Reproducible: Always Steps to Reproduce: 1. emerge php with USE flag xmlrpc Actual Results: gcc -I/var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc -DVERSION=0. 50 -Iext/xmlrpc/ -I/var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/ - DPHP_ATOM_INC -I/var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/include -I/var/tmp/ portage/php-5.0.4-r1/work/php-5.0.4/main -I/var/tmp/portage/php-5.0.4-r1/work/php-5.0. 4 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/ php-5.0.4-r1/work/php-5.0.4/ext/mbstring/oniguruma -I/var/tmp/portage/php-5.0.4-r1/ work/php-5.0.4/ext/mbstring/libmbfl -I/var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/ mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/php-5. 0.4-r1/work/php-5.0.4/TSRM -I/var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/Zend -O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx -c /var/tmp/portage/php- 5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc/xml_to_soap.c -o ext/xmlrpc/libxmlrpc/ xml_to_soap.o && echo > ext/xmlrpc/libxmlrpc/xml_to_soap.lo /var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc/xml_element.c: In function ‘xml_elem_free_non_recurse’: /var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc/xml_element.c:192: error: invalid lvalue in assignment /var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc/xml_element.c: In function ‘xml_elem_entity_escape’: /var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc/xml_element.c:317: warning: pointer targets in assignment differ in signedness /var/tmp/portage/php-5.0.4-r1/work/php-5.0.4/ext/xmlrpc/libxmlrpc/xml_element.c:332: warning: pointer targets in assignment differ in signedness make: *** [ext/xmlrpc/libxmlrpc/xml_element.lo] Error 1 make: *** Waiting for unfinished jobs.... Expected Results: Clean installation. Remove USE flag xmlrpc and it work fine.
I'm not able to replicate this. What do you have for your CFLAGS?
(In reply to comment #1) > I'm not able to replicate this. What do you have for your CFLAGS? Nothing fancy. Just: CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
(In reply to comment #2) > (In reply to comment #1) > > I'm not able to replicate this. What do you have for your CFLAGS? > > Nothing fancy. Just: > CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" > I have now tested with only CFLAGS="-O2" and the error is exactly the same. The error "xml_element.c:192: error: invalid lvalue in assignment" doesn't seem like a compile CFLAG flag error either.
It seem to have been my GCC installation that was somehow causing this problem. Sorry about that. PHP installed ok now.
There is a proposed fix to the problem. =) It seem to be regarding GCC 4 though. There is a patch there. http://bugs.php.net/bug.php?id=32150