Re: dl() problem
| From: | Andrey Zmievski | Date: | Fri, 11 Jun 1999 22:53:53 +0000 |
| Subject: | Re: dl() problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6836@lists.php.net to get a copy of this message | ||
Andrey Zmievski wrote:
> I'm having a problem with .so files being loaded by dl(). I used to have
> 3.0.7 compiled as Apache module and everything worked fine, but I've
upgraded
> the server to 3.0.9 and recompiled and .so files, and now when I try to
load
> them I get:
>
> Fatal error: Unable to load dynamic library
> '/export/httpd/php/lib/ispi/calendar.so' - ld.so.1:
> /usr/local/etc/apache/bin/httpd: fatal: relocation error: file
> /export/httpd/php/lib/ispi/calendar.so: symbol main:
> referenced symbol not found
>
> Any idea why that might be happening?
A few more things. This does not happen on Solaris 2.6, I only tried it with
2.7.
Also, if I compile PHP with -fPIC in CFLAGS and then modify functions/dl.c to
have dlopen(RTLD_LAZY|RTLD_GLOBAL) instead of dlopen(RTLD_LAZY), it works
fine.
-Andrey
* I wish life had an UNDO function. *