From: [EMAIL PROTECTED] Operating system: FreeBSD 4.7 PHP version: 4.3.0 PHP Bug Type: Compile Failure Bug description: gmake: *** [ext/ctype/ctype.lo] Error 1
When I run this configure command (and any other options with apxs): ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-mysql \ --enable-track-vars \ --with-openssl=/usr \ --enable-force-cgi-redirect \ --enable-sockets \ --with-gettext \ --with-mm Followed with the command: gmake I get the following error message: Server# gmake /bin/sh libtool --silent --mode=compile gcc -Iext/ctype/ -I/usr/local/src/php-4.3.0/ext/ctype/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.0/include -I/usr/local/src/php-4.3.0/main -I/usr/local/src/php-4.3.0 -I/usr/local/src/php-4.3.0/Zend -I/usr/local/include -I/usr/local/src/php-4.3.0/ext/xml/expat -DMOD_SSL=208112 -DMOD_PERL -DUSE_PERL_SSI -DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -DEAPI -DAPPLLIB_EXP=/usr/local/lib/perl5/5.6.1/BSDPAN -I/usr/local/src/php-4.3.0/TSRM -g -O2 -prefer-pic -c /usr/local/src/php-4.3.0/ext/ctype/ctype.c -o ext/ctype/ctype.lo In file included from /usr/include/sys/param.h:104, from /usr/local/src/php-4.3.0/TSRM/tsrm_config_common.h:14, from /usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:26, from /usr/local/src/php-4.3.0/main/php.h:360, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/include/machine/limits.h:81: warning: `LONG_MAX' redefined /usr/local/src/php-4.3.0/Zend/zend.h:189: warning: this is the location of the previous definition /usr/include/machine/limits.h:82: warning: `LONG_MIN' redefined /usr/local/src/php-4.3.0/Zend/zend.h:193: warning: this is the location of the previous definition In file included from /usr/local/src/php-4.3.0/TSRM/tsrm_config_common.h:14, from /usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:26, from /usr/local/src/php-4.3.0/main/php.h:360, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/include/sys/param.h:193: warning: `MAXPATHLEN' redefined /usr/local/src/php-4.3.0/main/php.h:237: warning: this is the location of the previous definition In file included from /usr/local/src/php-4.3.0/Zend/zend.h:202, from /usr/local/src/php-4.3.0/main/php.h:34, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.0/Zend/zend_hash.h:119: syntax error before `va_list' In file included from /usr/local/src/php-4.3.0/Zend/zend.h:203, from /usr/local/src/php-4.3.0/main/php.h:34, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.0/Zend/zend_llist.h:34: syntax error before `va_list' In file included from /usr/local/src/php-4.3.0/main/php.h:34, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.0/Zend/zend.h:285: syntax error before `va_list' /usr/local/src/php-4.3.0/Zend/zend.h:423: syntax error before `va_list' In file included from /usr/local/src/php-4.3.0/main/php.h:224, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.0/main/spprintf.h:40: syntax error before `va_list' In file included from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.0/main/php.h:277: syntax error before `va_list' In file included from /usr/local/src/php-4.3.0/main/php.h:360, from /usr/local/src/php-4.3.0/ext/ctype/ctype.c:23: /usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:159: warning: `struct utimbuf' declared inside parameter list /usr/local/src/php-4.3.0/TSRM/tsrm_virtual_cwd.h:159: warning: its scope is only this definition or declaration, which is probably not what you want. gmake: *** [ext/ctype/ctype.lo] Error 1 -I have this problem sinds version 4.2.1. -Compilation worked when I replace the "--with-apxs=/usr/local/apache/bin/apxs" param with "--with-apache=../apache-1.3.27", but I don't want a static php installation. -When I disable ctype in configure (--disable-ctype) it hangs at gettext. (Also with the error: In file included from /usr/include/sys/param.h:104, from /usr/local/src/php-4.3.0/TSRM/tsrm_config_common.h:14, ... ) -- Edit bug report at http://bugs.php.net/?id=21746&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21746&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21746&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21746&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21746&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21746&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21746&r=support Expected behavior: http://bugs.php.net/fix.php?id=21746&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21746&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21746&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21746&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21746&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21746&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21746&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21746&r=gnused