PHP 4.0 Bug #3972: Referenced symbol not found
| From: | jesusmc at scripps dot edu | Date: | Thu, 30 Mar 2000 01:08:37 +0000 |
| Subject: | PHP 4.0 Bug #3972: Referenced symbol not found | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17371@lists.php.net to get a copy of this message | ||
From: jesusmc@scripps.edu
Operating system: Solaris 2.6
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Dynamic loading related
Bug description: Referenced symbol not found
I used the following to configure PHP 4RC1:
./configure --prefix=/asd/dredox3/development/php4 \
--with-config-file-path=/asd/dredox3/development/php4 \
--enable-track-vars --enable-magic-quotes \
--enable-xml --enable-wddx --disable-debug\
--with-servlet=/asd/metallo1/server/jserv/JSDK2.0\
--enable-bcmath --enable-trans-id\
--with-java=/asd/prog/opt/jdk1.2 \
--with-gd=/asd/metallo1/server/libs/gd \
--with-mysql\
--with-apxs=/asd/dredox3/development/apache/sbin/apxs
And Apache 1.3.12 was configured using:
./configure --prefix="/asd/dredox3/development/apache/" \
--enable-module="rewrite" --enable-module="info" \
--enable-module="status" --enable-module="mime_magic" \
--with-layout=GNU --disable-module="userdir" \
--enable-module="speling" --sysconfdir="/asd/dredox3/development/apache/conf/"
\
--enable-module="so"\
--activate-module=src/modules/jserv/libjserv.a \
--verbose
Apache runs OK when not loading the PHP4 module, and the servlet server (JServ) work w/o problems.
But when I add the following lines to the httpd.conf:
LoadModule php4_module /asd/dredox3/development/php4/lib/libphp4.so
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
php_admin_flag display_errors on
php_admin_value error_prepend_string "[Error during execution of script] "
php_admin_flag engine on
php_admin_value error_reporting 7
php_admin_flag log_errors on
php_admin_flag magic_quotes_gpc on
php_admin_flag ignore_user_abort off
php_admin_value max_execution_time 180
php_admin_flag track_vars on
php_admin_flag short_open_tag on
php_admin_flag track_errors on
And try to start Apache, the error I observe is:
% ./sbin/apachectl start
Syntax error on line 31 of /asd/dredox3/development/apache/conf/httpd.conf:
Cannot load /asd/dredox3/development/php4/lib/libphp4.so into server: ld.so.1:
/home/jesusmc/devel/apache/sbin/httpd: fatal: relocation error: file
/asd/dredox3/development/php4/lib/libphp4.so: symbol terminate__Fv: referenced symbol not found
./sbin/apachectl start: httpd could not be started
This error is still showing, even when adding the line:
AddModule mod_php4.c
right after the "LoadModule ..." line
If I compile PHP as an internal module w/o Java support, and comment out the "LoadModule
..." and "AddModule ..." lines, then it works OK (JServ still works OK too). I had
not tried compiling it as a loadable module w/o Java support.
I am not using a php.ini, so all the other values are default.