php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17862 make fails because unix.h was not found
Submitted: 2002-06-20 00:55 UTC Modified: 2002-06-20 01:48 UTC
From: unger at soziologie dot uni-halle dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: unger at soziologie dot uni-halle dot de
New email:
PHP Version: OS:

 

 [2002-06-20 00:55 UTC] unger at soziologie dot uni-halle dot de
Used software: autoconf-2.53, automake-1.6, flex-2.5.4a,gcc-2.95.3, make-3.79.1.

make fails with the following error message:

# make
Making all in Zend
make[1]: Entering directory `/disk/progs/apache.src/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 `/disk/progs/apache.src/php-4.2.1/Zend'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-20 01:01 UTC] unger at soziologie dot uni-halle dot de
It seems to be a duplicate of at least Bug #17532
 [2002-06-20 01:20 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-06-20 01:48 UTC] unger at soziologie dot uni-halle dot de
Setting CC=gcc does not help, the failure occurs furthermore. There is only a warning while configuring:

checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries.  However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** `gcc --print-libgcc-file-name` to the link command.  We urge you to
*** upgrade to a newer version of GCC.  Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.

I used gcc 2.9.1 and binutils-2.11.2 packages
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 04:00:01 2026 UTC