php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14503 once again, fails to compile unix.h
Submitted: 2001-12-13 22:30 UTC Modified: 2001-12-13 23:49 UTC
From: jordanm at uts dot cc dot utexas dot edu Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.0 OS: FreeBSD-4.4-RELEASE
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: jordanm at uts dot cc dot utexas dot edu
New email:
PHP Version: OS:

 

 [2001-12-13 22:30 UTC] jordanm at uts dot cc dot utexas dot edu
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. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 23:49 UTC] sniper@php.net
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

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