php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64551 Unable to load dynamic library 'event.so'
Submitted: 2013-03-30 08:37 UTC Modified: 2013-04-02 10:32 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: lycboy at gmail dot com Assigned: osmanov (profile)
Status: No Feedback Package: event (PECL)
PHP Version: 5.4.13 OS: MacOSX 10.8.3
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: lycboy at gmail dot com
New email:
PHP Version: OS:

 

 [2013-03-30 08:37 UTC] lycboy at gmail dot com
Description:
------------
libevent 2.0.21-stable

When running PHP, shows: 
Warning: PHP Startup: Unable to load dynamic library 
'/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so' - 
dlopen(/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so, 9): 
initializer function 0x106b86a80 not in mapped image for 
/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so

The path to event.so is correct, and libevent lib path is in DYLD_LIBRARY_PATH.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-30 10:46 UTC] krakjoe@php.net
-Assigned To: +Assigned To: osmanov
 [2013-03-30 13:56 UTC] osmanov@php.net
I see, you tried to install event(PHP?) with a non-standard prefix, probably because the normal installation prefix on Mac OS(/opt/local) was not encountered in my config.m4. Fixed it in Git. Please try to clone and re-install it with a standard prefix, e.g.:

mkdir -p /opt/src/pecl/event
cd /opt/src/pecl/event
git clone git@bitbucket.org:osmanov/pecl-event.git .
phpize
./configure --with-event-extra --enable-event-debug
make
make test
sudo make install

Then make sure you have the following line in /etc/php.ini:
extension=event.so

Note, you have to install libevent first:
sudo port install libevent

Note also, event is not tested under Mac OS :-/
However, it installed and passed the tests successfully for me on 10.8.2.

Thanks for testing event. Good luck.
 [2013-03-31 05:09 UTC] lycboy at gmail dot com
Thanks, Osmanov.
I've followed by your steps, but it still report the same warning message...

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so' - 
dlopen(/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so, 9): 
initializer function 0x10513ea80 not in mapped image for 
/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so

I configured event as:
./configure --with-php-config=$HOME/local/bin/php-config --with-event-core --with-
event-pthreads --with-event-extra --with-event-openssl --with-openssl-
dir=$HOME/local --with-event-libevent-dir=$HOME/local --enable-event-debug

I compiled and installed libevent to /Users/ME/local/(not the normal path by Mac 
ports).
 [2013-03-31 20:39 UTC] osmanov@php.net
Oh, these non-standard prefixes...

I can't reproduce it. Probably, you have a conflict with another "version" of the library. Just for test, try to put /Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525 in front of DYLD_LIBRARY_PATH:

export DYLD_LIBRARY_PATH=/Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525:$DYLD_LIBRARY_PATH

Also, please attach some info about your setup, e.g.:

php -i > phpinfo
nm -D /Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so > nmeventinfo
ldd -v /Users/ME/local/lib/php/extensions/no-debug-non-zts-20100525/event.so > lddeventinfo
env > envinfo
tar cf info phpinfo nmeventinfo lddeventinfo envinfo
 [2013-04-02 10:32 UTC] osmanov@php.net
-Status: Assigned +Status: No Feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC