php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1778 Compile errors in zend_alloc.h during "make" step when installing PHP 4.0 Beta.
Submitted: 1999-07-20 23:58 UTC Modified: 1999-07-22 17:06 UTC
From: jeff dot wiseman at alliedsignal dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Beta 1 OS: HP-UX 10.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeff dot wiseman at alliedsignal dot com
New email:
PHP Version: OS:

 

 [1999-07-20 23:58 UTC] jeff dot wiseman at alliedsignal dot com
Trying to install Zend 4.0 beta on HP-UX 10.20, configure step completes successfully, but get following when running make:

Making all in libzend
        cc -DHAVE_CONFIG_H -I. -I/opt/php-4.0b1/./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/opt/apache/src/include -I/opt/apache/src/os/unix  -I/u
sr/local/include   -I/cmsrep/d1/ora8/HP804/rdbms/demo -I/cmsrep/d1/ora8/HP804/network/public -I/cmsrep/d1/ora8/HP804/plsql/public
 -I../.. -I../../libzend    -g -g -c apache.c
cpp: "php_config.h", line 173: warning 2001: Redefinition of macro BROKEN_SPRINTF.
cc: "../../libzend/zend_alloc.h", line 57: warning 5: "const" will become a keyword.
cc: "../../libzend/zend_alloc.h", line 57: error 1000: Unexpected symbol: "char".
cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1        

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-21 04:42 UTC] sas at cvs dot php dot net
Looks like we have to turn on some ANSI compilation flags on HPUX.

In the meantime, configure with

CFLAGS=-Dconst ./configure ...
 [1999-07-22 14:59 UTC] jeff dot wiseman at alliedsignal dot com
Changed bug type from "Installation Problem" to "Compile Failure".
 [1999-07-22 17:06 UTC] jeff dot wiseman at alliedsignal dot com
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
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC