ID: 14503
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Failure
Operating System: FreeBSD-4.4-RELEASE
PHP Version: 4.1.0
New Comment:

This is not PHP bug. Your system seems to have bogus unix.h 
in place where it shouldn't be. (this unix.h is from the imap stuff)

Try convince the c-client author Mark Crispin to rename those 
header files so that this kind of conflicts can be avoided..good luck.. :)

--Jani


Previous Comments:
------------------------------------------------------------------------

[2001-12-13 22:30:02] [EMAIL PROTECTED]

Downloaded php-4.1.0 and attempted to compile it on FreeBSD-4.4-RELEASE with a large 
configure line with many modules...it configured, but make immediately failed with 
parse errors in unix.h

thinking it was a module error, i attempted to compile after simply:

# ./configure

same errors:

-------------------------------------------------------
Making all in Zend
make[1]: Entering directory `/usr/local/install/php-4.1.0/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
-I../TSRM  -g -O2 -prefer-non-pic -static -c zend_language_parser.c
In file included from zend.h:54,
                 from zend_compile.h:24,
                 from zend_language_parser.c:148:
/usr/include/unix.h:182: parse error before "MAILSTREAM"
/usr/include/unix.h:189: parse error before '}' token
/usr/include/unix.h:193: parse error before '*' token
/usr/include/unix.h:196: parse error before '*' token
/usr/include/unix.h:197: parse error before '*' token
/usr/include/unix.h:198: parse error before '*' token
/usr/include/unix.h:199: parse error before '*' token
/usr/include/unix.h:200: parse error before '*' token
/usr/include/unix.h:201: parse error before '*' token
/usr/include/unix.h:202: parse error before '*' token
/usr/include/unix.h:202: parse error before '*' token
/usr/include/unix.h:203: parse error before '*' token
/usr/include/unix.h:204: parse error before '*' token
/usr/include/unix.h:206: parse error before '*' token
/usr/include/unix.h:207: parse error before '*' token
/usr/include/unix.h:209: parse error before '*' token
/usr/include/unix.h:210: parse error before '*' token
/usr/include/unix.h:211: parse error before '*' token
/usr/include/unix.h:212: parse error before '*' token
/usr/include/unix.h:213: parse error before '*' token
/usr/include/unix.h:214: parse error before '*' token
/usr/include/unix.h:215: parse error before '*' token
/usr/include/unix.h:216: parse error before '*' token
/usr/include/unix.h:219: parse error before '*' token
/usr/include/unix.h:221: parse error before "DOTLOCK"
/usr/include/unix.h:222: parse error before "MAILSTREAM"
/usr/include/unix.h:223: parse error before '*' token
/usr/include/unix.h:224: parse error before '*' token
/usr/include/unix.h:225: parse error before '*' token
/usr/include/unix.h:226: parse error before '*' token
/usr/include/unix.h:228: parse error before '*' token
/usr/include/unix.h:229: parse error before '*' token
/usr/include/unix.h:230: parse error before '*' token
/usr/include/unix.h:231: parse error before '*' token
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/usr/local/install/php-4.1.0/Zend'
make: *** [all-recursive] Error 1
-------------------------------------------------------

This was all on a modified FreeBSD system. I then installed a stock version of FreeBSD 
on another computer, downloaded again, and attempted the compile. Same problem, 
unchanged.

I then removed the include line for unix.h in both Zend.h and php.h, which enabled the 
compilation. 

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14503&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to