FW: Problem: Undefined symbols

From: Date: Thu, 18 Jan 2001 10:17:56 +0000
Subject: FW: Problem: Undefined symbols
Groups: php.install 
Request: Send a blank email to php-install+get-1679@lists.php.net to get a copy of this message
Mr. Noelle, I understand your discussion of your problem below. I executed ldd -r {path}/libphp4.so and found that I too enjoy quite a number of undefined symbols. In my case, the first offender is the undefined symbol uncompress. What steps did you take to overcome the problem? Thanks for any help, Jud > From: David Andrew Michael Noelle <dave@straylight.org> > Date: Fri, 1 Dec 2000 12:06:42 -0500 (EST) > [...] > > Compilation still completes with no errors, but as soon as I make > install, apachectl configtest fails with: > Syntax error on line 238 of /var/lib/apache/conf/httpd.conf: > Cannot load /var/lib/apache/libexec/libphp4.so into server: shared object not open > > Line 238 is the first one make install added: > LoadModule php4_module libexec/libphp4.so > [...] Thanks to some suggestions from Patrick Lanphier <planphier@artemisgroup.com>, this problem has been solved. I just thought I'd post the solution in case anyone else runs into it. ldd -r {path}/libphp4.so libdl.so.2 => //lib/libdl.so.2 (0x40147000) libpq.so.2.1 => not found libmysqlclient.so.10 => not found libresolv.so.2 => //lib/libresolv.so.2 (0x4017f000) libm.so.6 => //lib/libm.so.6 (0x40190000) [... libcrypt, libnsl, libc, libz, lib/ld-linux ...] undefined symbol: ... (/var/lib/apache/libexec/libphp4.so) [... MANY undefined symbols ...] Note the second and third libraries, marked "not found". It turned out that two of the shared libraries I was trying to link against, MySQL's libmysqlclient and PostgreSQL's libpq, weren't being found by ld.so. What threw me off was the way Apache named libphp4.so with its "shared object not open" error, when the shared objects it couldn't open were two _other_ libraries linked from libphp4.so. I'm no autoconf expert, and I don't know if there's a reliably portable way to do this, but it would be nice if configure could make sure the shared libraries being linked against could actually be found. The misleading "libphp4.so ... shared object not open" and that particularly helpful "syntax error" are, of course, an Apache problem. -- -Dave Noelle, dave@Straylight.org -the Villa Straylight, http://www.straylight.org Coalition Against Unsolicited Commercial Email == http://www.cauce.com Disclaimer: Any similarities to the opinions of any real or hypothetical entities, living, dead, or otherwise, are clearly the reader's own delusion. Quote of the Day: Sign on bank: We can loan you enough money to get you completely out of debt. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net [prev in list] [next in list] [prev in thread] [next in thread] Log in / Log out About MARC We're Hiring! Want to add a list? Tell us about it. The AIMS Group

« previous php.install (#1679) next »