Scenario:
Red Hat Linux 7.3 minimal install (no X, no daemons except the bare
essentials)
Apache 1.3.24 source
PHP 4.2.1 source
mod_perl 1.26 source

Steps taken:

1. /opt/src/apache_1.3.24/configure --with-layout=RedHat
2. /opt/src/mod_perl-1.26/perl Makefile.PL EVERYTHING=1 USE_APACI=1
3. /opt/src/mod_perl-1.26/make
4. /opt/src/mod_perl-1.26/make install
5.
/opt/src/php-4.2.1/configure --with-apache=../apache_1.3.24 --with-mysql=/us
r --enable-track-vars --enable-versioning --enable-bcmath --with-gd=/usr/loc
al/gd-1.8.4 --enable-ftp
6. /opt/src/php-4.2.1/make
7. /opt/src/php-4.2.1/make install
8.
/opt/src/apache_1.3.24/configure --with-layout=RedHat --enable-module=rewrit
e --enable-module=info --enable-module=expires --enable-module=unique_id --e
nable-suexec --suexec-caller=www --suexec-docroot=/www --activate-module=src
/modules/perl/libperl.a --enable-module=include --activate-module=src/module
s/php4/libphp.a

** 9 ** This is where I try to make apache, at this point, it builds for a
while and returns this error:

-----
a - Table.o
: libperl.a
<=== src/modules/perl
===> src/modules/php4
gcc -c -I../.. -I/usr/lib/perl5/5.6.1/i386-linux/CORE -I../../os/unix -I../.
./include   -DLINUX=22 -I/usr/include/db1 -DMOD_PERL -DUSE_PERL_SSI -fno-str
ict-aliasing -I/usr/local/include -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci`
mod_php4.c
mod_php4.c:28:18: zend.h: No such file or directory
mod_php4.c:29:17: php.h: No such file or directory
mod_php4.c:30:27: php_variables.h: No such file or directory
mod_php4.c:47:21: php_ini.h: No such file or directory
mod_php4.c:48:25: php_globals.h: No such file or directory
mod_php4.c:49:18: SAPI.h: No such file or directory
mod_php4.c:50:22: php_main.h: No such file or directory
mod_php4.c:52:26: zend_compile.h: No such file or directory
mod_php4.c:53:26: zend_execute.h: No such file or directory
mod_php4.c:54:28: zend_highlight.h: No such file or directory
mod_php4.c:55:25: zend_indent.h: No such file or directory
mod_php4.c:57:39: ext/standard/php_standard.h: No such file or directory
make[4]: *** [mod_php4.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/opt/src/apache_1.3.24/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/opt/src/apache_1.3.24'
make: *** [build] Error 2
-----

NOTE: In the above examples, I was in the actual directories, I've just
included the directory paths for illustrative purposes only.

I have tried removing most of the configuration options from each configure
call.  I have removed the source directories multiple times and tried again
from scratch.  I've tried googling for answers but it seems to me many
people run into this issue, but no answers are to be found.  (just do a
search for 'mod_php4.c:50:22: php_main.h: No such file or directory
') I haven't bothered copying the missing files over because most people
have had problems later.

Where can I begin looking for answers, what modifications must I make?

Thank you,

Dan


Reply via email to