php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6307 Load PHP as DSO failed
Submitted: 2000-08-23 03:56 UTC Modified: 2001-04-27 20:50 UTC
From: yale_yu at yahoo dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.1pl2 OS: Solaris 7
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: yale_yu at yahoo dot com
New email:
PHP Version: OS:

 

 [2000-08-23 03:56 UTC] yale_yu at yahoo dot com
My configure line is as simple as:

./configure --with-apxs=/usr/local/apache/bin/apxs --without-mysql

configure, make, make install are all successful, but apachectl start returned (line 207 is 'LoadModule php4_module libexec/libphp4.so'):

Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced symbol not found
/usr/local/apache/bin/apachectl start: httpd could not be started

It seems php building referenced some apache function, but didn't know how to find it. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-23 09:12 UTC] kalowsky@php.net
this sounds vaguely familiar to the bug #4615, although not revolving around the Solid libraries in this case.  if theres a solution to this, it might take out two bugs quickly...
 [2000-08-26 09:35 UTC] sniper@php.net
What is the version of Apache ? And configure line for it?
And check also which libs are linked with libphp4.so:

# ldd libphp4.so

--Jani
 [2000-08-27 21:27 UTC] yale_yu at yahoo dot com
Apache is 1.3.12, you mean apache configure line? It's:

./configure --enable-module=so

# ldd libphp4.so
        libpam.so.1 =>   /usr/lib/libpam.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libm.so.1 =>     /usr/lib/libm.so.1
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2

 [2000-08-29 03:26 UTC] yale_yu at yahoo dot com
Hi Jani,

I just try to configure apache as

./configure --enable-shared=max

this time even apache does not work, almost the same error, just 'ap_block_alarms' is replaced with 'ap_palloc'. I believe it's not php problem, it's apache problem!

Carefully read apache INSTALL file, I use

./configure --enable-shared=max --enable-rule=SHARED_CORE

to configure apache, it works, then I recompile php, it works too! Great!

Thanks for your patient help.

Yale Yu

 [2000-08-29 06:54 UTC] sniper@php.net
Problem solved.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC