Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Debian 6 x64. I'm having the same problem as this guy:

I tried magickwand for php in 1.0.8 and 1.0.9 version with every version available of imagemagick in the mirrors. I followed the normal compilation process (the rebuild of the php source) in this case, php-5.4.0 (I also tried php-5.3.8).

With magickwand 1.0.9 and imagemagick 6.7.4-2 I have this error on the make process:

ext/magickwand/.libs/magickwand.o: In function `zif_magickgetimageendian':    
/home/source/php-5.4.0/ext/magickwand/magickwand.c:5764: undefined reference to     `MagickGetImageEndian'
ext/magickwand/.libs/magickwand.o:( undefined reference to     `    zif_magicksetimageendian'

I have 3 servers with almost the same configuration, it works without a problem on one of them but for the other two the compilation fails. I compared the configuration files and make files of php and imagemagick and all is equal with one exception. In the two that fail, they are grabbing the xml2-config from another path. I also tried to compile with the same makefiles as the server that worked and the two that failed.

Why might my make commands be failing?

share|improve this question
You can compare the installed packages at both servers. On the server that works # dpkg -la > /tmp/works. On the server that does not work: #dpkg -la > /tmp/doesnotwork. Then copy both files to same dir and: # diff doesnotwork works. Then install missing packages on the server that is not working. – Peter Senna Mar 11 '12 at 13:02

Support for php > 5.3 was added recently to Magickwand for php; Changelog excerpt follows:

2011-11-13 1.0.9-0 Herve Seignole

- PHP > 5.3.0 does not define safe mode or php_checkuid (see
- Use zend_function_entry rather than function_entry. 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.