I have "make" and "make install" PHP 4.1.2
afterward, I faced the problem when configuring apache (1.3.23)
Here's the process:
./configure --activate-module=src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.23
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for FreeBSD 4.4 platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
A test compilation with your Makefile configuration
failed. The below error output from the compilation
test will give you an idea what is failing. Note that
Apache requires an ANSI C Compiler, such as gcc.
cd ..; gcc -funsigned-char -I/usr/local/src/server/php-4.1.2 -I/usr/local/src/server/php-4.1.2/main -I/usr/local/src/server/php-4.1.2/main -I/usr/local/src/server/php-4.1.2/Zend -I/usr/local/src/server/php-4.1.2/Zend -I/usr/local/src/server/php-4.1.2/TSRM -I/usr/local/src/server/php-4.1.2/TSRM -I/usr/local/src/server/php-4.1.2 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci -o helpers/dummy helpers/dummy.c -R/usr/local/lib -R/usr/local/mysql/lib/mysql -rdynamic -L/usr/local/lib -L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lc-client4 -lmysqlclient -lz -lming -lldap -llber -lcrypt -lpam -lgd -lt1 -lfreetype -lpng -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lm -lcrypt -lcrypt
/usr/local/lib/libc-client4.so: undefined reference to mm_expunged'
/usr/local/lib/libc-client4.so: undefined reference tomm_diskerror'
/usr/local/lib/libc-client4.so: undefined reference to mm_lsub'
/usr/local/lib/libc-client4.so: undefined reference tomm_flags'
/usr/local/lib/libc-client4.so: undefined reference to mm_fatal'
/usr/local/lib/libc-client4.so: undefined reference tomm_nocritical'
/usr/local/lib/libc-client4.so: undefined reference to mm_notify'
/usr/local/lib/libc-client4.so: undefined reference tomm_searched'
/usr/local/lib/libc-client4.so: undefined reference to mm_status'
/usr/local/lib/libc-client4.so: undefined reference tomm_login'
/usr/local/lib/libc-client4.so: undefined reference to mm_list'
/usr/local/lib/libc-client4.so: undefined reference tomm_critical'
/usr/local/lib/libc-client4.so: undefined reference to mm_exists'
/usr/local/lib/libc-client4.so: undefined reference tomm_log'
/usr/local/lib/libc-client4.so: undefined reference to `mm_dlog'
*** Error code 1
Stop in /usr/local/src/server/apache_1.3.23/src/helpers.
======== Error Output for sanity check ========
============= End of Error Report =============
Aborting!