[PHP-DEV] Error while trying to compile latest CVS From: Mario de Mello Bittencourt Neto (mneto <email protected>)
Date: 05/29/98

Hi, I have updated my php3 and tried to recompile it.

I have a linux RH 4.2 (+patches) and my setup generated :

./configure --with-apache=/usr/src/redhat/BUILD/apache_1.2.6
--with-mysql=/usr/local/mysql
--with-dbase=yes --with-config-file-path=/usr/local/etc
--with-system-regex=yes
--with-exec-dir=/home/httpd/cgi-bin --enable-track-vars=yes

A make stopped with the error :
 gcc -O2 -I/usr/local/mysql/include -I. -I.
-I/usr/src/redhat/BUILD/apache_1.2.6/src -I/usr/local/mysql/include
-I/usr/local -g -Wall -I/usr/local/mysql/include -c constants.c -o
constants.o
constants.c: In function `php3_startup_constants':
constants.c:100: `PHP_OS' undeclared (first use this function)
constants.c:100: (Each undeclared identifier is reported only once
constants.c:100: for each function it appears in.)
constants.c:83: warning: `php3_os' might be used uninitialized in this
function
make: *** [constants.o] Error 1

One strange thing is that I had to edit my Makefile since the one
generated by the configure stops with message like this :
gcc -O2  <email protected>@ -I/usr/local/mysql/include/mysql -I. -I.
-I/usr/src/redhat/BUILD/apache_1.2.6/src  <email protected>@
-I/usr/local/mysql/include/mysql  <email protected>@  <email protected>@ -g
-Wall -I/usr/local/mysql/include/mysql -c language-parser.tab.c -o
language-parser.tab.o
gcc:  <email protected>@: No such file or directory
gcc:  <email protected>@: No such file or directory
gcc:  <email protected>@: No such file or directory
gcc:  <email protected>@: No such file or directory
make: *** [language-parser.tab.o] Error 1

Any ideias ?

- Thanks,
        Mario