Hello folks,

I've built php many times in the past, but never had the problem I'm
currently experiencing. I'm attempting a simple build of Apache/PHP.

Info:
Redhat Linux 7.0
Apache 1.3.27
PHP 4.3.0 (also tried 4.2.3)

My steps (I've also tried variations using apxs for DSO):

cd apache_1.3.27
./configure --prefix=/usr/local/apache
cd ../php-4.3.0
./configure --with-apache=../apache_1.3.27

The configure script finishes with no extra error messages.

The problem seems to be that both internal_functions.c and
internal_functions_cli.c end up with the following content:
"Configuration File (null) not found, aborting
Run 'make menuconfig' for creating a configuration or create the file
manually."

So, of course, when a "make" is attempted, it fails like this:

<snip>
/bin/sh libtool --silent --mode=compile gcc  -Imain/
-I/usr/local/src/apache/php-4.3.0/main/ -DPHP_ATOM_INC -I/usr/local
/src/apache/php-4.3.0/include -I/usr/local/src/apache/php-4.3.0/main
-I/usr/local/src/apache/php-4.3.0 -I/usr/local/src/
apache/php-4.3.0/Zend -I/usr/local/src/apache/php-4.3.0/ext/xml/expat
-DLINUX=22 -DMOD_SSL=208110 -DMOD_PERL -DUSE_PERL_SSI -DUSE_HSREGEX
-DEAPI -DUSE_EXPAT -I/usr/local/src/apache/php-4.3.0/TSRM  -g -O2
-prefer-pic -c main/internal_functions.c -o main/internal_functions.lo
main/internal_functions.c:1: parse error before `File'
main/internal_functions.c:1: parse error before `not'
main/internal_functions.c:2: parse error before `Run'
main/internal_functions.c:2: character constant too long
make: *** [main/internal_functions.lo] Error 1

Since I've only seen "make menuconfig" used for kernel builds, I
recompiled the kernel, thinking perhaps PHP want's some missing header
files. However, I still get the same result. I've searched and searched
archives, but to no avail.

Here is the relevent section of the config.status file:

  echo "creating main/internal_functions.c"
  extensions=" ctype mysql overload pcre posix session standard
tokenizer xml"
  sh ./build/genif.sh ./main/internal_functions.c.in . "" gawk
$extensions > main/internal_functions.c

  echo "creating main/internal_functions_cli.c"
  cli_extensions=" ctype mysql overload pcre posix session standard
tokenizer xml"
  sh ./build/genif.sh ./main/internal_functions.c.in . "" gawk
$cli_extensions > main/internal_functions_cli.c

And sure enough, if I attempt manually:

sh ./build/genif.sh ./main/internal_functions.c.in . gawk 'ctype mysql
pcre posix session standard xml'

I get this:

"Configuration File (null) not found, aborting
Run 'make menuconfig' for creating a configuration or create the file
manually."

Does anyone happen to know what configuration file is being looked for,
or able to point me in the right direction?

Any suggestions are welcome and thanks in advance.

-Joel


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to