php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17401 Fails to compile Zend , cannot find unix.h
Submitted: 2002-05-23 23:58 UTC Modified: 2002-07-01 08:23 UTC
Votes:32
Avg. Score:4.5 ± 0.7
Reproduced:30 of 30 (100.0%)
Same Version:15 (50.0%)
Same OS:14 (46.7%)
From: trza at start dot com dot au Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Solaris 8
Private report: No CVE-ID: None
 [2002-05-23 23:58 UTC] trza at start dot com dot au
Compiling 4.2.1 on Solaris 8, configure scripts says yes for unix.h when it does not exist so when doing the make leads to a failure, reporting that it cant find unix.h in zend.h. Php 4.1.2 compiles fine.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-24 00:38 UTC] mfischer@php.net
Try CC=gcc ./configure and see if it works ...
 [2002-05-28 07:07 UTC] p dot kassies at tpgpost dot nl
Try CC=gcc ./configure and see if it works ...???

I don't understand.
Where should I tell the compilation that CC=gcc
 [2002-05-28 07:12 UTC] mfischer@php.net
"yourshell$ CC=gcc ./configure --your-parameters ..."
 [2002-06-05 14:20 UTC] smckenzie at psu dot edu
My system:
Solaris 7
GCC 2.95.2 (build from www.sunfreeware.com)
Environment vars:
EDITOR=vi
HOME=/
HZ=100
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/openwin/lib
PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/ucb:/usr/ccs/bin:/usr/local/SUNWspro/bin
SHELL=/sbin/sh
TERM=dtterm

Configuration params:
./configure --prefix=/opt/php421 --with-apxs=/opt/apache/bin/apxs
I used a minimal configure setup to illustrate the problem. Configure completes without errors.

Make output:
# make
Making all in Zend
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main    -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DUSE_EXPAT -DSHARED_CORE -I../TSRM  -g -O2 -prefer-pic -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
*** Error code 1
make: Fatal error: Command failed for target `zend_language_parser.lo'
Current working directory /space/src/php-4.2.1/Zend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

PHP 4.1.2 compiles perfectly on this system, same setup.
 [2002-06-05 16:22 UTC] hahn_thorsten at gmx dot de
Compiling 4.2.1 on Solaris 9, gcc-3.1 from sunfreeware, same error:

zend.h:55:19: unix.h: No such file or directory
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/export/home/hthor/tmp/php-4.2.1/Zend'
make: *** [all-recursive] Error 1

Tried configure mentioned in Bug #16833, tried CC=gcc ./configure --with-mysql --with-apxs=/usr/apache/bin/apxs,

always the same.
 [2002-06-10 06:16 UTC] jmora at symlabs dot com
I've the same problem.  After a succesfully ./configure, the make fails with this output error report.  I tried to find unix.h in the whole system without results.

My OS: Solaris 8
PHP: 4.2.1

Output report
Making all in Zend
make[1]: Entering directory `/var/tmp/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  -O2 -I/usr/local/ssl/include -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 `/var/tmp/php-4.2.1/Zend'
make: *** [all-recursive] Error 1


How can I skip Zend??

regards
jorge moratilla
 [2002-06-10 06:19 UTC] mfischer@php.net
Better not skip Zend.h, it's a core component . . .

Did you test CC=gcc ./configure ... ?
 [2002-06-10 06:35 UTC] sniper@php.net
..and remember to delete config.cache before a new configure!!

 [2002-06-11 12:39 UTC] csvieira at epm dot net dot co
I had the same problem and tried CC=gcc ./configure .... as said here and it worked fine.
 [2002-07-01 08:23 UTC] sniper@php.net
Reported fixed in CVS (has configure generated with autoconf 2.53)

 [2002-07-18 08:53 UTC] deutscje at clarkson dot edu
I had the same problem compiling on Solaris 8.  Using CC=gcc ./configure yadayadayada it worked fine.  Thanks for the help!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 14:00:02 2025 UTC