Hi again

I am helping a friend get his web server going. He has RedHat 6.0, Apache 1.3.9, PHP 3.0.11, MySQL 3.22.27 and mhash 0.5.2. mhash and PHP compile fine, then compiling apache goes wrong. I am following the exact instructions from the PHP site. This is the bottom of what make says:

gcc -c -I../../os/unix -I../../include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT
-I../../lib/expat-lite `../../apaci` mod_php3.c
cp libmodphp3.a libphp3.a
ar r libphp3.a mod_php3.o
ranlib libphp3.a
<=== src/modules/php3
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
`./apaci` modules.c
gcc -c -I./os/unix -I./include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
`./apaci` buildmark.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci`
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php3/libphp3.a
main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a
-Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib/mysql -Wl,-rpath,/usr/local/lib -Lmodules/php3
-L../modules/php3 -L../../modules/php3 -lmodphp3 -lpcre -lpam -lm -ldl
-lcrypt -lnsl -lresolv -lm -lcrypt -lgdbm -lgd -L/usr/lib -lttf -L/usr/lib/mysql -lmysqlclient
-L/usr/local/lib -lmhash
modules/php3/libphp3.a(internal_functions.o): In function `getParametersArray':
/usr/local/src/php-3.0.11/internal_functions.c:224: undefined reference to `mhash_module_entry'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.9/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.9'
make: *** [build] Error 2

Any ideas?