Now the build sequence looks like:
#!/usr/local/bin/bash
phpdir="/home/yar/php-4.0.4pl1"
apachedir="/home/yar/apache_1.3.14rusPL30.0"
uwimapdir="/home/yar/imap-2000.RELEASE-CANDIDATE.7"
cd $apachedir
make clean
./configure || exit
cd $phpdir
make clean
make distclean
rm config.cache
./buildconf
./configure --with-apxs=/home/httpd/bin/apxs --enable-track-vars --with-mod-charset --with-imap=$uwimapdir --with-gettext --enable-force-cgi-redirect --with-gd=/usr/local --with-xml --enable-trans-sid --enable-dbg=shared || exit
(make && make install) || exit
cd $apachedir
./configure --enable-module=so --prefix=/home/httpd || exit
make || exit
You see, I moved to the DSO model like you.
Also I noticed that the Makefile of your dbg.tar.gz contains specific absolute paths:
File: Makefile Col 0 465 bytes 100%
top_srcdir = /usr/local/src/php4-200012130245
top_builddir = /usr/local/src/php4-200012130245
srcdir = /usr/local/src/php4-200012130245/ext/dbg
builddir = /usr/local/src/php4-200012130245/ext/dbg
VPATH = /usr/local/src/php4-200012130245/ext/dbg
$Id$
LTLIBRARY_NAME = libdbg.la
LTLIBRARY_SOURCES = dbg.c dbg_core.c
LTLIBRARY_SHARED_NAME = dbg.la
LTLIBRARY_SHARED_LIBADD = $(DBG_SHARED_LIBADD)
include $(top_srcdir)/build/dynlib.mk
I edited it to:
topdir = /home/yar/php-4.0.4pl1
top_srcdir = $(topdir)
top_builddir = $(topdir)
srcdir = $(topdir)/ext/dbg
builddir = $(topdir)/ext/dbg
VPATH = $(topdir)/ext/dbg
$Id$
LTLIBRARY_NAME = libdbg.la
LTLIBRARY_SOURCES = dbg.c dbg_core.c
LTLIBRARY_SHARED_NAME = dbg.la
LTLIBRARY_SHARED_LIBADD = $(DBG_SHARED_LIBADD)
include $(top_srcdir)/build/dynlib.mk
The apache compiles and works, but the debugging features are still disabled.
Where should that dbg.so be created and do I control this step. No errors are reported, but "find / -name dbg.so" gives nothing.