Bug 113610

Summary: www/apache13 cannot LoadModule php5_module
Product: Ports & Packages Reporter: marquis
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description marquis 2007-06-12 04:40:08 UTC
'apachectl configtest' reports:

 Cannot load /usr/local/apache_jsp/bin/libphp5.so into server:   
 /usr/local/apache_jsp/bin/libphp5.so: Undefined symbol "__res_ninit"

httpd is compiled with mod_so (per `httpd -l`).

How-To-Repeat: cd /usr/ports/lang/php5 && \
make install clean && \
apachectl configtest
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-06-12 08:55:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ache

Over to maintainer
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2007-06-12 09:43:44 UTC
State Changed
From-To: open->feedback

I can't reproduce that on my machine. 
It is suspicious that you have 
/usr/local/apache_jsp/bin/libphp5.so 
instead of standard 
/usr/local/libexec/apache/libphp5.so 
__res_ninit should be in libc: 
nm /usr/lib/libc.a | grep ninit 
Is other modules loaded normally? 
Do you try to rebuild apache?
Comment 3 marquis 2007-06-12 15:23:53 UTC
> It is suspicious that you have
> /usr/local/apache_jsp/bin/libphp5.so
> instead of standard
> /usr/local/libexec/apache/libphp5.so

The httpd in question is compiled from source, as opposed to from
ports. It shouldn't matter though, as all a dynamically loadable
module should require is mod_so.

> __res_ninit should be in libc:
> nm /usr/lib/libc.a | grep ninit
> Is other modules loaded normally?
> Do you try to rebuild apache?

Other modules (mod_jk) load without errors.  I will try recompiling
the httpd.

Roger
Comment 4 Andrey A. Chernov freebsd_committer freebsd_triage 2007-06-12 15:36:45 UTC
State Changed
From-To: feedback->closed

As PR originator says, he don't use apache13 port, but self-compile it, 
so this PR is not related to the apache13 port and closed.
Comment 5 marquis 2007-06-12 17:15:46 UTC
> As PR originator says, he don't use apache13 port, but self-compile it,
> so this PR is not related to the apache13 port and closed.

No, it is not related to the apache13 port.  The description does not
implicate the apache13 port.  It's clearly the php5 port that is in
question.  Ticket should not be closed but assigned to the correct
port maintainer.
Comment 6 Andrey A. Chernov freebsd_committer freebsd_triage 2007-06-12 17:22:50 UTC
State Changed
From-To: closed->open

Reassign to php5 maintainer per originator request 


Comment 7 Andrey A. Chernov freebsd_committer freebsd_triage 2007-06-12 17:22:50 UTC
Responsible Changed
From-To: ache->ale

Reassign to php5 maintainer per originator request
Comment 8 Alex Dupre freebsd_committer freebsd_triage 2007-06-12 19:10:33 UTC
State Changed
From-To: open->closed

Sorry, but it's not a port problem, since you compiled apache from sources.