php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18040 unix.h, sys/sysexits.h and parse error
Submitted: 2002-06-28 04:37 UTC Modified: 2002-06-28 04:42 UTC
From: yamasaki at aero dot kyushu-u dot ac dot jp Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Solaris 8 (Intel)
Private report: No CVE-ID: None
 [2002-06-28 04:37 UTC] yamasaki at aero dot kyushu-u dot ac dot jp
On Solaris 8 (Intel) and gcc 2.95.2, After

./configure --with-pgsql --with apxs2=/usr/local/apache2/bin/apxs \
--enable-trans-sid --enable-mbstring --enable-mbstr-enc-trans \
--enable-track-vars --without-mysql

'make' gives the following 4 errors

1 No <unix.h> defined in Zend/zend.h

2 No <unix.h> defined in main/php.h

3 No <sys/sysexits.h> defined in ext/standard/mail.c

4 In sapi/apache2filter/php_functions.c, the following part (line 93) is unparsable,

#if !MODULE_MAGIC_AT_LEAST(20020506,0)
                ADD_STRING(boundary);
#endif

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 04:42 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.
 [2002-07-01 06:06 UTC] tamone at eig dot unige dot ch
NOT SOLVED !

compiling on solaris 8 with gcc 2.95.3
keeps giving the error on unix.h
sys/sysexits.h has disappeared, but a new mach-o/dyld.h
problem has appeared:

configure:

./configure --with-apxs2=/space/www/bin/apxs --prefix=/space/www


make:

error on the very first compiled file ctype.c:

1.  not found unix.h, called by Zend.h, called by php.h
2.  not found mach-o/dyld.h, called by php.h


/bin/sh libtool --silent --mode=compile gcc  -Iext/ctype/ -I/space/src/php4/php4-200207010000/ext/ctype/ -DPHP_ATOM_INC -I/space/src/php4/php4-200207010000/include -I/space/src/php4/php4-200207010000/main -I/space/src/php4/php4-200207010000 -I/space/www/include -I/space/src/php4/php4-200207010000/Zend -I/space/src/php4/php4-200207010000/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/space/src/php4/php4-200207010000/TSRM -g -O2  -prefer-pic -c /space/src/php4/php4-200207010000/ext/ctype/ctype.c -o ext/ctype/ctype.lo 
In file included from /space/src/php4/php4-200207010000/main/php.h:34,
                 from /space/src/php4/php4-200207010000/ext/ctype/ctype.c:23:
/space/src/php4/php4-200207010000/Zend/zend.h:59: unix.h: No such file or directory
In file included from /space/src/php4/php4-200207010000/main/php.h:34,
                 from /space/src/php4/php4-200207010000/ext/ctype/ctype.c:23:
/space/src/php4/php4-200207010000/Zend/zend.h:71: mach-o/dyld.h: No such file or directory
In file included from /space/src/php4/php4-200207010000/ext/ctype/ctype.c:23:
/space/src/php4/php4-200207010000/main/php.h:88: unix.h: No such file or directory
make: *** [ext/ctype/ctype.lo] Error 1
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 05:03:34 2022 UTC