php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27988 Linkage Error
Submitted: 2004-04-14 05:38 UTC Modified: 2004-04-14 20:46 UTC
From: djpenton at cs dot mu dot oz dot au Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.0.0RC1 OS: Solaris 2.9
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: djpenton at cs dot mu dot oz dot au
New email:
PHP Version: OS:

 

 [2004-04-14 05:38 UTC] djpenton at cs dot mu dot oz dot au
Description:
------------
Php runs fine at the command line. 

But when I try and load the http daemon I get the following error:

Cannot load /home/projects/lt/projects/acla-db/server/httpd/modules/libphp5.so into server: ld.so.1: /home//projects/lt/projects/acla-db/server/httpd/bin/httpd: fatal: relocation error: file /home/projects/lt/projects/acla-db/server/httpd/modules/libphp5.so: symbol xmlNewValidCtxt: referenced symbol not found

I don't get the problem with php 4.3.4. I have a standard httpd.conf file. The two php versions are in separate locations. The locations are correctly specified.

I had to install libxml2-2.6.8 from source. It passed all make tests and neither it nor php nor apache had any compilation/make/make install errors.

Not sure what to do next. Tried new separate installation of apache/php. Might try older version of libxml.

Hope you can help,

Cheers,
Dave.

Reproduce code:
---------------
non-code

Expected result:
----------------
non-code

Actual result:
--------------
non-code

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-14 05:42 UTC] djpenton at cs dot mu dot oz dot au
Forgot the configure lines:
(php)
./configure --with-apxs2=/home/projects/lt/projects/acla-db/server/httpd/bin/apxs --with-mysql --prefix=/home/projects/lt/projects/acla-db/server/php --with-zlib --with-config-file-path=/home/projects/lt/projects/acla-db/server/httpd/lib

(apache)
./configure --without-innodb --prefix=/home//projects/lt/projects/acla-db/server/httpd --enable-so --enable-rewrite

(libxml2)
./configure --prefix=/home/projects/lt/projects/acla-db/server/libxml2-2.6.8
 [2004-04-14 10:13 UTC] sniper@php.net
The path to the xml lib is missing from your LD_LIBRARY_PATH or you have old libxml headers/libs somewhere in it.

You can also try using this:

--with-libxml-dir=/home/projects/lt/projects/acla-db/server/libxml2-2.6.8

 [2004-04-14 20:32 UTC] djpenton at cs dot mu dot oz dot au
Thanks heaps for that. It had me stumped.

It was the LD_LIB_FLAGS getting in the way at runtime for the http daemon.

I actually installed with: --with-libxml-dir=/home/projects/lt/projects/acla-db/server/libxml2-2.6.
8 (Sorry that fell off when I did the copy paste)
(hence no compile error)
 [2004-04-14 20:46 UTC] djpenton at cs dot mu dot oz dot au
Thanks for that. Sorry for wasting your time.

It was the LD_LIBRARY_PATH overriding the --with-lib-xml...(which I used but failed to copy over correctly)

Thanks again.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC