Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94282 - php-5.0.3 (Zend) can't be compiled by gcc4
Summary: php-5.0.3 (Zend) can't be compiled by gcc4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-28 06:48 UTC by Chen Xiangyang
Modified: 2005-06-03 19:49 UTC (History)
1 user (show)

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


Attachments
include zend_compile.h in zend_module.h solves the problem (php-5.0.3-gcc4.patch,451 bytes, patch)
2005-05-28 06:49 UTC, Chen Xiangyang
Details | Diff
GCC4 compile fix (php-5.0.3-gcc4.patch,432 bytes, patch)
2005-05-28 14:10 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Xiangyang 2005-05-28 06:48:09 UTC
Zend/zend_module.h uses 'struct _zend_arg_info', but does not include definition
of it (in Zend/zend_compile.h)


Reproducible: Always
Steps to Reproduce:
1. unpack php-5.0.3.tar.bz2
2. configure
3. make

Actual Results:  
gcc  -Iext/libxml/ -I/home/chenxy/tmp/php-5.0.3/ext/libxml/ -DPHP_ATOM_INC
-I/home/chenxy/tmp/php-5.0.3/include -I/home/chenxy/tmp/php-5.0.3/main
-I/home/chenxy/tmp/php-5.0.3 -I/home/chenxy/tmp/php-5.0.3/Zend
-I/usr/include/libxml2  -I/home/chenxy/tmp/php-5.0.3/TSRM  -g -O2  -c
/home/chenxy/tmp/php-5.0.3/ext/libxml/libxml.c -o ext/libxml/libxml.o  && echo >
ext/libxml/libxml.lo
In file included from /home/chenxy/tmp/php-5.0.3/Zend/zend_API.h:26,
                 from /home/chenxy/tmp/php-5.0.3/main/php.h:38,
                 from /home/chenxy/tmp/php-5.0.3/ext/libxml/libxml.c:28:
/home/chenxy/tmp/php-5.0.3/Zend/zend_modules.h:34: error: array type has
incomplete element type
/home/chenxy/tmp/php-5.0.3/Zend/zend_modules.h:35: error: array type has
incomplete element type
/home/chenxy/tmp/php-5.0.3/Zend/zend_modules.h:36: error: array type has
incomplete element type
/home/chenxy/tmp/php-5.0.3/Zend/zend_modules.h:37: error: array type has
incomplete element type
/home/chenxy/tmp/php-5.0.3/Zend/zend_modules.h:38: error: array type has
incomplete element type
make: *** [ext/libxml/libxml.lo] Error 1


Expected Results:  
Compiled successfully.
Comment 1 Chen Xiangyang 2005-05-28 06:49:00 UTC
Created attachment 60012 [details, diff]
include zend_compile.h in zend_module.h solves the problem
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-05-28 14:10:45 UTC
Created attachment 60034 [details, diff]
GCC4 compile fix

I'm not sure why you removed the other include.  This is exactly how upstream
fixed it in CVS.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-05-28 14:11:20 UTC
This isn't a blocker since GCC4 isn't even supported yet.
Comment 4 Chen Xiangyang 2005-05-29 07:59:39 UTC
> I'm not sure why you removed the other include.  This is exactly how upstream
fixed it in CVS.

Oh, because zend_compile.h already includes zend.h. :-)
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-05-29 14:19:16 UTC
Well, if no one from the PHP team has a problem, I'll commit this patch later today.
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2005-06-03 19:49:55 UTC
Patch is in the tree.