Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97365 - php-5.0.4-r1 fail to build with USE="xmlrpc"
Summary: php-5.0.4-r1 fail to build with USE="xmlrpc"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 20:26 UTC by Forza
Modified: 2005-07-01 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forza 2005-06-28 20:26:41 UTC
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.
Comment 1 Paul Laughlin 2005-07-01 08:18:48 UTC
I'm not able to replicate this.  What do you have for your CFLAGS?
Comment 2 Forza 2005-07-01 08:31:24 UTC
(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"
Comment 3 Forza 2005-07-01 09:26:00 UTC
(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.
Comment 4 Forza 2005-07-01 11:04:50 UTC
It seem to have been my GCC installation that was somehow causing this problem. 
Sorry about that. PHP installed ok now.
Comment 5 Forza 2005-07-01 11:47:50 UTC
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