Re: Part 2: php_functions.c:93: parse error

From: Date: Sat, 20 Jul 2002 04:17:33 +0000
Subject: Re: Part 2: php_functions.c:93: parse error
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-7839@lists.php.net to get a copy of this message
Leandro Asnaghi, Sorry if this is duplicated. Just to add some info to this issue, I now get the same error. I had previously been able to build php-4.2.1 successfully with the following setup: SuSE 7.3 w/ 2.4.16 kernel apache 2.0.36 autoconf 2.13 automake 1.4 gcc 2.95 To get around some problems I was having after upgrading to kdevelop 2.1.2, I updated to: autoconf 2.53 automake to 1.6.2 Then I attempted to build php-4.2.1 for apache 2.0.39 and get the same error, so I am pretty sure there is some incompatability with the development tools. I'm just not sure where precisely the problem is. The apache build still works with the updates. Line 93 of php_functions.c starts a compiler directive; 93: #if !MODULE_MAGIC_AT_LEAST(20020506,0) 94: ADD_STRING(boundary); 95: #endif This looks as though there are no syntax problems with the line. I tried: 1) removing the entire #if clause 2) removing the #if/#endif lines leaving the ADD_STRING in place, 3) removing the "!" from the #if line. None of these modifications resulted in a workable module. Someone who is more familiar with the php code could probably address this. Stuart Leandro Asnaghi-Nicastro wrote: > Howdy. > > Reading on the list the many problems that people seem to have, I > tried thinkering with the options some more. I added the following to > my configure: > > ./configure --without-mysql --with-apxs2=/home/httpd/bin/apxs > > The: > > --without-mysql > > Is the addition. I wanted to see if that made a difference. > > Unfortunately, it doesn't. I still run into the same problem: > > /bin/sh /root/php-4.2.1/libtool --silent --mode=compile gcc -I. - > I/root/php-4.2.1/sapi/apache2filter -I/root/php-4.2.1/main -I/root/php- > 4.2.1 -I/home/httpd/include -I/root/php-4.2.1/Zend -I/root/php- > 4.2.1/ext/xml/expat -D_REENTRANT -I/root/php-4.2.1/TSRM -g -O2 - > pthread -DZTS -prefer-pic -c php_functions.c > php_functions.c:93: parse error > make[3]: *** [php_functions.lo] Error 1 > make[3]: Leaving directory `/root/php-4.2.1/sapi/apache2filter' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/root/php-4.2.1/sapi/apache2filter' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/php-4.2.1/sapi' > make: *** [all-recursive] Error 1 > > Any suggestions? I'm running the latest Apache2 and the latest PHP4 > on Slackware 2.2.16. > > So far, sadly, I've seen more problems posted on the list than > answers, so I hope--in a way--that this is just a problem with this > current release of PHP. > > Thanks. > > leandro > ___ > leandro asnaghi-nicastro - editor in chief > capital of nasty - http://con.ca/ > leandro@con.ca - icq uin: 889318 > > "Oooooh. One of those 'I'd rather trim my pubic hairs with a chainsaw' > sorta days. -Ange

« previous php.install (#7839) next »