Hey all
I'm desperate after 8 hours of trying to install PHP4 with Apache1.3.24 on Redhat7.2.
I have tried dynamic linking with PHP4.2.2 --with-apx...
I have tried PHP4.0.6 to prevent library incompatibilities...
I have tried static linking....
Nothing works
My last try was static linking as follows:
PHP:
./configure --with-mysql --with-apache=../apache_1.3.24
make
make install
The PHP part seems to work fine.
Apache:
./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=proxy --activate-module=src/modules/python/libpython.a --activate-module=src/modules/php4/libphp4.a --enable-module=php4
No problem. But when I do a 'make', it seems to do stuff successfully for python and PHP up to 1 point, where it just keeps screaming:
modules/php4/libphp4.a(mod_php4.o): In function sapi_apache_ub_write':
mod_php4.o(.text+0x3b): undefined reference tosapi_globals'
mod_php4.o(.text+0x47): undefined reference to sapi_globals'
mod_php4.o(.text+0x67): undefined reference tophp_handle_aborted_connection'
modules/php4/libphp4.a(mod_php4.o): In function sapi_apache_read_post':
mod_php4.o(.text+0x9e): undefined reference tosapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function sapi_apache_read_cookies':
mod_php4.o(.text+0x143): undefined reference tosapi_globals'
modules/php4/libphp4.a(mod_php4.o): In function sapi_apache_header_handler':
mod_php4.o(.text+0x163): undefined reference tosapi_globals'
mod_php4.o(.text+0x251): undefined reference to `_efree'
Plus dozens of other undefined references.
I've read forums and troubleshootings and added '-shared' and '-DEAPI' to gcc, but to no avail.
I haven't tried rpms yet, but I doubt that would work and I would rather use the source distribution.
Any help is appreciated...