php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17211 zend.h and php.h call unix.h
Submitted: 2002-05-14 11:17 UTC Modified: 2002-06-18 20:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: japs at adm dot ku dot dk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Linux 8.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: japs at adm dot ku dot dk
New email:
PHP Version: OS:

 

 [2002-05-14 11:17 UTC] japs at adm dot ku dot dk
zend.h and php.h call /usr/local/include/unix.h
and give a compilation failure in PHP 4.2.1:

In file included from zend.h:55,
  from zend_compile.h:24,
  from zend_language_parser.c:147:
  /usr/local/include/unix.h:182: parse error before `MAILSTREAM'
  /usr/local/include/unix.h:182: warning: no semicolon at end of struct or union

In file included from php.h:71,
  from main.c:26:
  /usr/local/include/unix.h:182: parse error before `MAILSTREAM'
  /usr/local/include/unix.h:182: warning: no semicolon at end of struct or union

The problem can be circumvented by simple removal of "include unix.h" in zend.h and php.h

Jan P. Sorensen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-14 15:44 UTC] jbardin at hsc dot usf dot edu
For some reason php 4.2.1 detected unix.h on my system (SunOS hsceducate 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-2)

this is the compile error i get

jbardin on hsceducate:~/php-4.2.1 >make
Making all in Zend
make[1]: Entering directory `/opt1/ocmedat/home/php-4.2.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -D_POSIX_PTHREAD_SEMANTICS -I../TSRM  -g -O2 -prefer-non-pic -static -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c
In file included from zend_compile.h:24,
                 from zend_language_parser.c:147:
zend.h:55: unix.h: No such file or directory
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/opt1/ocmedat/home/php-4.2.1/Zend'
make: *** [all-recursive] Error 1


4.2.0 compiles fine

this might be related to the bug... and or could be a bug in itself
 [2002-05-14 18:06 UTC] adrieder at sbox dot tugraz dot at
I have the same problems as jbardin@hsc.usf.edu reported on Sparc/Solaris 8
 [2002-05-14 18:14 UTC] edink@php.net
Marking this as duplicate of #17218. Could you please try what is suggested there?
 [2002-06-18 20:00 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 18:01:34 2024 UTC