php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3972 Referenced symbol not found
Submitted: 2000-03-29 20:08 UTC Modified: 2000-07-24 17:24 UTC
From: jesusmc at scripps dot edu Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0 Release Candidate 1 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jesusmc at scripps dot edu
New email:
PHP Version: OS:

 

 [2000-03-29 20:08 UTC] jesusmc at scripps dot edu
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.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-29 22:40 UTC] rubys at cvs dot php dot net
Don't specify both --with-servlet and --with-apxs.

If you intend to run PHP inside of a servlet engine, that is all that PHP needs to know - where that servlet engine may be hosted is irrelevant.
 [2000-03-29 23:46 UTC] jesusmc at scripps dot edu
Aha! that may be the problem. I did not understand that 
the apxs and the servlet were mutually exclusive.
I managed to compile all OK when I excluded the java support,
and it loaded just fine.
I will try again tomorrow.
 [2000-07-24 17:24 UTC] david@php.net
No further feedback, assuming this is fixed.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC