Solaris 2.6 sparc (gcc 2.95.2)
I tried to compile Apache 1.3.17 with PHP 4.0.4pl1 statically
but it failed with a lot of undefined symbols. config'd apache 1st, then config'd php using:
./configure --with-mysql --with-apache=../apache_1.3.17 --enable-track-vars
did a make and make install and all worked. Then configured apache with:
./configure --prefix=/opt/apache --activate-module=src/modules/php4/libphp4.a
Got errors like (list shorted):
Undefined first referenced
symbol in file
php_register_variable modules/php4/libphp4.a(mod_php4.o)
core_globals modules/php4/libphp4.a(mod_php4.o)
sapi_startup modules/php4/libphp4.a(mod_php4.o)
I then tried to re-compile both like the following (apache):
./configure --prefix=/opt/apache --enable-module=so
then PHP using:
./configure --with-mysql --with-apxs=/opt/apache/bin/apxs --enable-track-vars
Now get error when running apache:
Cannot load libexec/libphp4.so into server:ld.so.1: /opt/apache/bin/httpd: fatal: relocation error: file /opt/apache/libexec/libphp4.so: symbol pcre_free: referenced symbol not found
Tried compiling PHP with --enable-libgcc per some other
posts, but that didn't help
Suggestions? Using the exact same src works fine on an
OpenBSD box.
Thanks