php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17922 Zend fails with "unix.h not found"
Submitted: 2002-06-22 09:36 UTC Modified: 2002-06-25 06:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: php at richardarmstrong dot co dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Solaris 2.6
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: php at richardarmstrong dot co dot uk
New email:
PHP Version: OS:

 

 [2002-06-22 09:36 UTC] php at richardarmstrong dot co dot uk
having installed the latest versions of flex and bison, the make fails with error messages about unix.h (despite the fact that the configure appears to find unix.h

ORACLE_HOME=/disk0/app/oracle/product/8.0.5 ./configure --with-oci8 --with-apache=/disk1/from.usr.local.install/apache_1.3.26 --without-mysql

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-22 09:39 UTC] php at richardarmstrong dot co dot uk
the bug may be fixed in "CVS", but where exactly ?
which files need amending ?
 [2002-06-22 10:02 UTC] sander@php.net
This should be fixed in CVS, try a snapshot from http://snaps.php.net
Alternatively, try this:
CC=gcc ./configure <normal configure options go here>
 [2002-06-25 05:09 UTC] kaneb035 at ms55 dot hinet dot net
I have downloaded the newest one(php4-latest.tar.gz)
from cvs, but the bug still exits.
the following is the error message from make:

/bin/sh libtool --silent --mode=compile gcc  -Iext/ctype/ -I/tmp/php/ext/ctype/
In file included from /tmp/php/main/php.h:34,
                 from /tmp/php/ext/ctype/ctype.c:23:
/tmp/php/Zend/zend.h:59:19: unix.h: No such file or directory
/tmp/php/Zend/zend.h:71:25: mach-o/dyld.h: No such file or directory
In file included from /tmp/php/ext/ctype/ctype.c:23:
/tmp/php/main/php.h:88:18: unix.h: No such file or directory
make: *** [ext/ctype/ctype.lo] Error 1

the command before make is:
./configure --with-apxs=/usr/local/apache/bin/apxs \
            --with-mysql=/usr/local/mysql \
            CC=gcc
 [2002-06-25 06:42 UTC] php at richardarmstrong dot co dot uk
The confiog.cache file retains the incorrect information, 
so :- 
rm config.cache
CC=gcc ./configure <options>
make etc

On Solaris, I have also added 
export LD_RUN_PATH=/usr/lib:/usr/local/lib
This appears to work ... hope it helps
 [2002-06-25 11:34 UTC] bilo at poach dot ath dot cx
I believe that the source of this problem, at least on the solaris platform, is having /usr/ucb/cc in one's path before or instead of a real functioning cc. CC=gcc does the trick, or ln -s /usr/local/bin/gcc /usr/local/bin/cc would work too, as long as /usr/ucb/cc doesn't come first. The cc command is used to test for the presence of the files, hence this problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 19:01:34 2024 UTC