i have been trying to install PHP4.04pl1 for the last couple of days without any success. I have had no problems with previous versiions of PHP.
I even tried getting the latest build, but it didn't work out.
My System
RedHat 6.1
these are the options that i am using with php4-200104192245
./configure
--with-mysql=/usr/local
--with-apxs=/www/bin/apxs
--with-xml
--enable-dbase
--with-gd=/home/Bishnu/gd-1.8.4
--with-jpeg-dir=/home/Bishnu/jpeg-6b
--with-png-dir=/home/Bishnu/libpng-1.0.10
--enable-freetype-4bit-antialias-hack
--enable-trans-sid
--with-curl=/usr/local/curl
--enable-ftp
--enable-sockets
--with-sablot=/home/Bishnu/Sablot-0.52
--with-gdbm=/home/Bishnu/gdbm-1.8.0
--with-java=/usr/java/jdk1.3.0_02
--with-servlet=/usr/local/jsdk
--with-openssl=/usr/local
it configures without any errors but while compiling it exits with errors
Making all in xmlparse
make[4]: Entering directory /home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse'
make[5]: Entering directory/home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse'
/bin/sh /home/Bishnu/php4-200104192245/libtool --silent --mode=compile gcc -I. -I/home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse -I/home/Bishnu/php4-200104192245/main -I/home/Bishnu/php4-200104192245 -I/www/include -I/home/Bishnu/php4-200104192245/Zend -I/usr/local/include -I/usr/local/curl/include -I/home/Bishnu/gd-1.8.4 -I/usr/local/include/mysql -I/home/Bishnu/php4-200104192245/ext/xml/expat/xmltok -I/home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse -I/home/Bishnu/php4-200104192245/TSRM -I/home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse/../xmltok -DLINUX=2 -DMOD_SSL=203105 -DUSE_HSREGEX -DEAPI -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -g -O2 -pthread -c xmlparse.c
In file included from xmlparse.c:76:
/home/Bishnu/php4-200104192245/ext/xml/expat/xmltok/xmlrole.h:102: parse error before XmlPrologStateInit'
/home/Bishnu/php4-200104192245/ext/xml/expat/xmltok/xmlrole.h:102: warning: data definition has no type or storage class
xmlparse.c: In functionprocessXmlDecl':
xmlparse.c:1886: warning: passing arg 8 from incompatible pointer type
xmlparse.c:1886: warning: passing arg 9 from incompatible pointer type
xmlparse.c:1886: too few arguments to function
make[5]: [xmlparse.lo] Error 1
make[5]: Leaving directory /home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory/home/Bishnu/php4-200104192245/ext/xml/expat/xmlparse'
make[3]: [all-recursive] Error 1
make[3]: Leaving directory /home/Bishnu/php4-200104192245/ext/xml/expat'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory/home/Bishnu/php4-200104192245/ext/xml'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/home/Bishnu/php4-200104192245/ext'
make: [all-recursive] Error 1