NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Can't load the extension


Joined: 07 Aug 2003
Posts: 2
Reply with quote
Hello!

I've successfully compiled and installed DBG on Mac OS X 10.2 with PHP 4.3.0
I've used the linux instructions and everything worked quite well so far (i only had to ln from glibtoolize to libtoolize).

But when I restart the apache, I get the following error message in errors_log:
Code:
PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/dbg.so' - (null) in Unknown on line 0


dbg.so is in /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ and extension_dir in php.ini is set to that path too.

Is there anything I forgot?

php.ini only consists of lines for the debugger (extension_dir, extension and the debugger section)
enable_dl is on, safe_mode is off.
View user's profileFind all posts by archangel77Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
first, make sure that dbg.so is loaded using extension=dbg.so line :!:without:!: any path.

second, make sure that you have compiled dbg.so using the same php version as used for compiling apache module.

third, you'd make sure that dbg.so is a valid shared object.
Run
Code:
ldd /path/to/dbg.so
and
Code:
nm /path/to/dbg.so

and post me the results.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 Aug 2003
Posts: 2
Reply with quote
Okay, checked the first two -ok.
The ldd command doesn't exist, only ld. It outputs nothing.
The nm command outputs a large list of hex numbers and files/variable names.

I think I found the problem: It's a bug in PHP, documented in the comments for the dl command: http://www.php.net/dl

Maybe someone can file a bug report for that (I don't know how to file a bug report that gets taken seriously because I know nothing about the inner workings of PHP).
View user's profileFind all posts by archangel77Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
I don't think there is a bug in dl() that concerns us. Also ldd program should exist. Try /usr/sbin/ldd
What OS do you run ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Can't load the extension
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic