PHP 4.0 Bug #2222: compiler options wrong for HP ANSI C

From: Date: Thu, 02 Sep 1999 18:02:30 +0000
Subject: PHP 4.0 Bug #2222: compiler options wrong for HP ANSI C
Groups: php.dev 
Request: Send a blank email to php-dev+get-10460@lists.php.net to get a copy of this message
From: tm@blom.co.id Operating system: HPUX 10.20 PHP version: 4.0 Beta 2 PHP Bug Type: Compile Failure Bug description: compiler options wrong for HP ANSI C Making all in libzend cc -DHAVE_CONFIG_H -I. -I/store/store/bise04/php/src-4.0b2-hp700ux10/./libzend -I. -g -g -c zend-parser.c cc: "zend_alloc.h", line 57: warning 5: "const" will become a keyword. cc: "zend_alloc.h", line 57: error 1000: Unexpected symbol: "char". cc: error 2017: Cannot recover from earlier errors, terminating. *** Error exit code 1 Stop. Making all in ext Making all in apache cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I/store/store/bise04/apache/src-1.3.9-hp700ux10//src/include -I/store/store/bise04/apache/src-1.3.9-hp700ux10//src/os/unix -I../.. -I../../libzend -Ae -Ae -D_HPUX_SOURCE -g -c apache.c ------------------------------------- In libzend the '-Ae' option is missing, thus no Ansi support and the compilation fails. Also, while it doesn't really cause any problems, for the rest of the compilation, -Ae is given twice to cc. -D_HPUX_SOURCE is also defined automatically when you use -Ae, so it can be removed as well as long as -Ae is used. Terje Marthinussen tm@blom.co.id

« previous php.dev (#10460) next »