PHP5 RC2 and GCC 3.4.0 are both released, but I can’t get either of them to compile cleanly on my Sparc20. PHP5 RC1 built cleanly. Also have GCC 3.3.3 running (which I’m using to build GCC 3.4)
Maybe I just need to replace the Sparc20.
Problems with PHP5 RC2 start with
/bin/sh /export/home/eugenem/Temporary/apache/php-5.0.0RC2/libtool –silent –preserve-dup-deps –mode=compile gcc -Iext/standard/ -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/ext/standard/ -DPHP_ATOM_INC -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/include -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/main -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2 -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/export/home/eugenem/Apps/mysql4/include/mysql -D_POSIX_PTHREAD_SEMANTICS -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/TSRM -g -O2 -prefer-pic -c /export/home/eugenem/Temporary/apache/php-5.0.0RC2/ext/standard/filters.c -o ext/standard/filters.lo
/bin/sh /export/home/eugenem/Temporary/apache/php-5.0.0RC2/libtool –silent –preserve-dup-deps –mode=compile gcc -Iext/standard/ -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/ext/standard/ -DPHP_ATOM_INC -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/include -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/main -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2 -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/export/home/eugenem/Apps/mysql4/include/mysql -D_POSIX_PTHREAD_SEMANTICS -I/export/home/eugenem/Temporary/apache/php-5.0.0RC2/TSRM -g -O2 -prefer-pic -c /export/home/eugenem/Temporary/apache/php-5.0.0RC2/ext/standard/proc_open.c -o ext/standard/proc_open.lo
In file included from /export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend/zend.h:244,
from /export/home/eugenem/Temporary/apache/php-5.0.0RC2/main/php.h:34,
from /export/home/eugenem/Temporary/apache/php-5.0.0RC2/ext/standard/proc_open.c:23:
/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend/zend_hash.h:39: error: parse error before ‘*’ token
/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend/zend_hash.h:39: error: parse error before “uint”
/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend/zend_hash.h:39: error: `ulong’ declared as function returning a function
/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend/zend_hash.h:49: error: field `h’ declared as a function
/export/home/eugenem/Temporary/apache/php-5.0.0RC2/Zend/zend_hash.h:50: error: parse error before “uint”
and just go downhill from there. First I figured it was a messed up download, but redownloading didn’t help much. Now I’ll have to dig into the files and explore.
Discover more from Imablog
Subscribe to get the latest posts sent to your email.
Congradulations on being the only Google hit for “zend_hash.h:39: parse error before ‘*’ token”
Stuff I’ve tried to make it compile
– install bison
– CC=gcc
– make sure /usr/xpg4/bin isn’t before /usr/ccs/bin and /usr/local/bin in your PATH
None of which worked. Back to RC1 for me.
The problem I was having is fixed in the CVS version of PHP so give that a whirl ifyou’re daring. I imagine a new RC3 should be released soon.