get error while compiling apache with php module

hi, i'm compiling apache with php module after i finish compile mysql-4.0.0-alpha.
i do it as the follow steps after untar'ed them in the same directory,
1) cd apache_1.3.22
./configure

2) cd php-4.0.6
./configure --with-mysql=/usr/local/mysql \
--with-apache=../apache_1.3.22 \
--enable-track-vars
make
make install

3) cd apache_1.3.22
./configure --prefix=/usr/local/apache \
--activate-module=src/modules/php4/libphp4.a
make

but i get the following error messages:

modules/php4/libphp4.a(internal_functions.o): In function `php_startup_internal_extensions':
/home/pub/php-4.0.6/main/internal_functions.c:56: undefined reference to `mysql_module_entry'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/pub/apache_1.3.22/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/pup/apache_1.3.22'
make: *** [build] Error 2

i compile them on debian linux and sunos5.7, but always get the same error messages ;(
could somebody help me? please

You might check to see if the library files exist.... for example did you build libphp4.a or check to see if it exists?

Hi, finally i've compiled them successfully!
the reason is the "mysql-4.0.0-alpha", maybe it's the php's fault, who knows ;), whish the next version of php can support that.
i just recompile mysql 3.23 instead of mysql 4.00-alpha, so the php module can load the mysql funciton correctly, also apache can be made correctly.:wink:

thank you Neo!