php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57916 Undefined symbol: MagickGetQuantumDepth
Submitted: 2007-11-18 23:27 UTC Modified: 2007-11-19 01:40 UTC
From: adam at adamenglander dot com Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.1.6 OS: CentOS 4.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adam at adamenglander dot com
New email:
PHP Version: OS:

 

 [2007-11-18 23:27 UTC] adam at adamenglander dot com
Description:
------------
Imagick module would not load with the following error:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - /usr/lib/php/modules/imagick.so: undefined symbol: MagickGetQuantumDepth in Unknown on line 0


Reproduce code:
---------------
After a successfull installation of ImageMagick 6.3.7, I performed a PECL installtion of Imagick 2.0.1.  I restarted my apache 2.0 server and received a runtime error for no Imagick module.  My server error log had the following:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - /usr/lib/php/modules/imagick.so: undefined symbol: MagickGetQuantumDepth in Unknown on line 0
I tried all available versions of ImageMagick as well as all 2.0.x releases of Imagick in all combinations to no avail.
I was able to resolve the issue on my server by modifying the PHP_METHOD(imagick, getquantumdepth) function on line 12517 of imagick.c to the following:
quantumDepth = (char *)MagickGetMAGICKCORE_QUANTUM_DEPTH( &depth );
This was per the ImageMagick C++ API.  After making the change and performing a phpize install of the Imagic extension, the module loaded and performed as expected.

Expected result:
----------------
I expected the Imagick extension to load without error

Actual result:
--------------
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - /usr/lib/php/modules/imagick.so: undefined symbol: MagickGetQuantumDepth in Unknown on line 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-19 01:40 UTC] mkoppanen@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC