PHP4 Bug #1778 Updated: Compile errors in zend_alloc.h during "make" step when installing PHP 4.0 Beta.
| From: | Bug Database | Date: | Thu, 22 Jul 1999 21:06:49 +0000 |
| Subject: | PHP4 Bug #1778 Updated: Compile errors in zend_alloc.h during "make" step when installing PHP 4.0 Beta. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9004@lists.php.net to get a copy of this message | ||
ID: 1778
User Update by: jeff.wiseman@alliedsignal.com
Status: Closed
Bug Type: Compile Failure
Description: Compile errors in zend_alloc.h during "make" step when installing PHP 4.0
Beta.
The suggested fix, using CFLAGS=-Dconst, failed to resolve the
problem. However, the comment about requiring an ANSI compilation
flag led me to try CFLAGS=-Aa. This also failed, but man described
an "extended" option, -Ae, described in the cc man pages as follows:
e Extended ANSI mode. Same as -Aa -D_HPUX_SOURCE
+e. This would define the names (macros and
typedefs) provided by the HPUX Operating System
and, in addition, allow the following
extensions: $ characters in identifier names,
sized enums, sized bit-fields, and 64-bit
integral type long long. Additional extensions
may be added to this option in the future.
This option resulted in a successful compile of all of the linzend
objects, but resulted in the following failure during the apache make:
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I/opt/apache/src/include
-I/opt/apache/src/os/uni
x -I/usr/local/include -I/cmsrep/d1/ora8/HP804/rdbms/demo -I/cmsrep/d1/ora8/HP804/network/public
-I/cmsrep/d1/ora8/HP80
4/plsql/public -I../.. -I../../libzend -Ae -g -c apache.c
cpp: "php_config.h", line 173: warning 2001: Redefinition of macro BROKEN_SPRINTF.
cc: "/usr/include/sys/unistd.h", line 219: error 1711: Inconsistent parameter list
declaration for "getopt".
cc: "/usr/include/sys/unistd.h", line 235: error 1711: Inconsistent parameter list
declaration for "getpass".
cc: "/usr/include/sys/unistd.h", line 238: error 1711: Inconsistent parameter list
declaration for "rename".
*** Error exit code 1
Stop.
*** Error exit code 1
I will open a separate bug report for this one.
Thanks,
Jeff
Full Bug description available at: http://bugs.php.net/version4/?id=1778