Bug #17401 Updated: Fails to compile Zend , cannot find unix.h

From: Date: Wed, 05 Jun 2002 18:20:41 +0000
Subject: Bug #17401 Updated: Fails to compile Zend , cannot find unix.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9564@lists.php.net to get a copy of this message
 ID:               17401
 Updated by:       smckenzie@psu.edu
 Reported By:      trza@start.com.au
 Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: Solaris 8
 PHP Version:      4.2.1
 New Comment:

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.


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

[2002-05-28 07:12:08] mfischer@php.net

"yourshell$ CC=gcc ./configure --your-parameters ..."

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

[2002-05-28 07:07:45] p.kassies@tpgpost.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-24 00:38:26] mfischer@php.net

Try CC=gcc ./configure and see if it works ...

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

[2002-05-23 23:58:02] trza@start.com.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.

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


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



Thread (12 messages)

« previous php.bugs (#9564) next »