graphics/pecl-imagick - "Cannot load specified object"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

graphics/pecl-imagick - "Cannot load specified object"

fuzzyping
I've installed graphics/pecl-imagick for one of our developers on
OpenBSD 4.8. For some reason this php extension refuses to load. I also
built a new package from ports to see if there was a problem with the
bulk build, same issue. Any ideas?

$ php -m 2>&1 | grep imagick
PHP Warning:  PHP Startup: Unable to load dynamic library
'/var/www/lib/php/modules/imagick.so' - Cannot load specified object in
Unknown on line 0

$ ldd /var/www/lib/php/modules/imagick.so
/var/www/lib/php/modules/imagick.so:
Cannot load specified object

$ file /var/www/lib/php/modules/*
/var/www/lib/php/modules/curl.so:        ELF 64-bit LSB shared object,
x86-64, version 1, for OpenBSD, dynamically linked, not stripped
/var/www/lib/php/modules/gd.so:          ELF 64-bit LSB shared object,
x86-64, version 1, for OpenBSD, dynamically linked, not stripped
/var/www/lib/php/modules/imagick.so:     ELF 64-bit LSB shared object,
x86-64, version 1, for OpenBSD, dynamically linked, not stripped
/var/www/lib/php/modules/mbstring.so:    ELF 64-bit LSB shared object,
x86-64, version 1, for OpenBSD, dynamically linked, not stripped
/var/www/lib/php/modules/mcrypt.so:      ELF 64-bit LSB shared object,
x86-64, version 1, for OpenBSD, dynamically linked, not stripped
/var/www/lib/php/modules/mysql.so:       ELF 64-bit LSB shared object,
x86-64, version 1, for OpenBSD, dynamically linked, not stripped

$ ls -l /var/www/lib/php/modules/                                                                                  
total 7336
-r--r--r--  1 root  bin       70586 Aug 10  2010 curl.so
-r--r--r--  1 root  bin      395883 Aug 10  2010 gd.so
-rwxr-xr-x  1 root  bin      489386 Aug 10  2010 imagick.so
-r--r--r--  1 root  bin     2105515 Aug 10  2010 mbstring.so
-r--r--r--  1 root  bin       45476 Aug 10  2010 mcrypt.so
-r--r--r--  1 root  bin       63643 Aug 10  2010 mysql.so

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/

Reply | Threaded
Open this post in threaded view
|

Re: graphics/pecl-imagick - "Cannot load specified object"

fuzzyping
Thanks to sthen who suggested the use of `LD_DEBUG=1 php -m`. This made
it obvious that /usr/X11R6/lib hadn't been loaded into shlib. I had
forgotten about this after installing the package, and haven't rebooted
since then either.

Jason

On Mon, Feb 28, 2011 at 08:28:17AM -0500, Jason Dixon wrote:

> I've installed graphics/pecl-imagick for one of our developers on
> OpenBSD 4.8. For some reason this php extension refuses to load. I also
> built a new package from ports to see if there was a problem with the
> bulk build, same issue. Any ideas?
>
> $ php -m 2>&1 | grep imagick
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/var/www/lib/php/modules/imagick.so' - Cannot load specified object in
> Unknown on line 0
>
> $ ldd /var/www/lib/php/modules/imagick.so
> /var/www/lib/php/modules/imagick.so:
> Cannot load specified object
>
> $ file /var/www/lib/php/modules/*
> /var/www/lib/php/modules/curl.so:        ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/gd.so:          ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/imagick.so:     ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/mbstring.so:    ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/mcrypt.so:      ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/mysql.so:       ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
>
> $ ls -l /var/www/lib/php/modules/                                                                                  
> total 7336
> -r--r--r--  1 root  bin       70586 Aug 10  2010 curl.so
> -r--r--r--  1 root  bin      395883 Aug 10  2010 gd.so
> -rwxr-xr-x  1 root  bin      489386 Aug 10  2010 imagick.so
> -r--r--r--  1 root  bin     2105515 Aug 10  2010 mbstring.so
> -r--r--r--  1 root  bin       45476 Aug 10  2010 mcrypt.so
> -r--r--r--  1 root  bin       63643 Aug 10  2010 mysql.so
>
> --
> Jason Dixon
> DixonGroup Consulting
> http://www.dixongroup.net/

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/

Reply | Threaded
Open this post in threaded view
|

Re: graphics/pecl-imagick - "Cannot load specified object"

patrick keshishian
In reply to this post by fuzzyping
On Mon, Feb 28, 2011 at 5:28 AM, Jason Dixon <[hidden email]> wrote:

> I've installed graphics/pecl-imagick for one of our developers on
> OpenBSD 4.8. For some reason this php extension refuses to load. I also
> built a new package from ports to see if there was a problem with the
> bulk build, same issue. Any ideas?
>
> $ php -m 2>&1 | grep imagick
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/var/www/lib/php/modules/imagick.so' - Cannot load specified object in
> Unknown on line 0
>
> $ ldd /var/www/lib/php/modules/imagick.so
> /var/www/lib/php/modules/imagick.so:
> Cannot load specified object

try:
$ env LD_DEBUG=1 ldd /var/www/lib/php/modules/imagick.so



>
> $ file /var/www/lib/php/modules/*
> /var/www/lib/php/modules/curl.so:        ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/gd.so:          ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/imagick.so:     ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/mbstring.so:    ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/mcrypt.so:      ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
> /var/www/lib/php/modules/mysql.so:       ELF 64-bit LSB shared object,
> x86-64, version 1, for OpenBSD, dynamically linked, not stripped
>
> $ ls -l /var/www/lib/php/modules/
> total 7336
> -r--r--r--  1 root  bin       70586 Aug 10  2010 curl.so
> -r--r--r--  1 root  bin      395883 Aug 10  2010 gd.so
> -rwxr-xr-x  1 root  bin      489386 Aug 10  2010 imagick.so
> -r--r--r--  1 root  bin     2105515 Aug 10  2010 mbstring.so
> -r--r--r--  1 root  bin       45476 Aug 10  2010 mcrypt.so
> -r--r--r--  1 root  bin       63643 Aug 10  2010 mysql.so
>
> --
> Jason Dixon
> DixonGroup Consulting
> http://www.dixongroup.net/