ID: 17211
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating System: Linux 8.2
PHP Version: 4.2.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-05-14 11:17:38] [EMAIL PROTECTED]
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17211&edit=1