Re: LoadModule is a syntax error???
| From: | David Andrew Michael Noelle | Date: | Fri, 01 Dec 2000 19:15:58 +0000 |
| Subject: | Re: LoadModule is a syntax error??? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-1030@lists.php.net to get a copy of this message | ||
> 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.