php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61501 Won't Compile
Submitted: 2012-03-24 19:22 UTC Modified: 2015-01-05 02:46 UTC
Votes:25
Avg. Score:4.2 ± 0.9
Reproduced:24 of 24 (100.0%)
Same Version:12 (50.0%)
Same OS:3 (12.5%)
From: it dot registrations at symphony-group dot co dot uk Assigned: mkoppanen (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 5.4.0 OS: Fedora 15
Private report: No CVE-ID: None
 [2012-03-24 19:22 UTC] it dot registrations at symphony-group dot co dot uk
Description:
------------
Compile fails with PHP 5.4.0 with either version 3.0.1 or 3.1.0RC1

/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_setimageprogressmonitor’:
/usr/local/src/imagick-3.0.1/imagick_class.c:9534:2: error: ‘struct 
_php_core_globals’ has no member named ‘safe_mode’
/usr/local/src/imagick-3.0.1/imagick_class.c:9534:2: error: 
‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/usr/local/src/imagick-3.0.1/imagick_class.c:9534:2: error: ‘CHECKUID_NO_ERRORS’ 
undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1

Test script:
---------------
wget http://sunet.dl.sourceforge.net/project/imagemagick/old-sources/6.x/6.6/ImageMagick-6.6.4-10.tar.gz \
http://pecl.php.net/get/imagick-3.0.1.tgz
tar xfz ImageMagick-6.6.4-10.tar.gz
tar xfz imagick-3.0.1.tgz
cd ImageMagick-6.6.4-10
./configure && make && make install
cd ../imagick-3.0.1
phpize && ./configure && make && make install

Expected result:
----------------
imagick to compile correctly and create the required shared object

Actual result:
--------------
ImageMagick compiles correctly then ....

[root@dev-box imagick-3.0.1]# phpize 
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
[root@dev-box imagick-3.0.1]# ./configure 
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -
I/usr/local/include/php/main -I/usr/local/include/php/TSRM -
I/usr/local/include/php/Zend -I/usr/local/include/php/ext -
I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-
non-zts-20100525
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate 
PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in 
/usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.6.4 Q16 
checking for MagickWand.h header file... found in 
/usr/local/include/ImageMagick/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 5.4.0
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
[root@dev-box imagick-3.0.1]# make
/bin/sh /usr/local/src/imagick-3.0.1/libtool --mode=compile cc  -I. -
I/usr/local/src/imagick-3.0.1 -DPHP_ATOM_INC -I/usr/local/src/imagick-
3.0.1/include -I/usr/local/src/imagick-3.0.1/main -I/usr/local/src/imagick-3.0.1 
-I/usr/local/include/php -I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -
I/usr/local/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c 
/usr/local/src/imagick-3.0.1/imagick_class.c -o imagick_class.lo 
/bin/sh /usr/local/src/imagick-3.0.1/libtool --mode=compile cc  -I. -
I/usr/local/src/imagick-3.0.1 -DPHP_ATOM_INC -I/usr/local/src/imagick-
3.0.1/include -I/usr/local/src/imagick-3.0.1/main -I/usr/local/src/imagick-3.0.1 
-I/usr/local/include/php -I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -
I/usr/local/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c 
/usr/local/src/imagick-3.0.1/imagickdraw_class.c -o imagickdraw_class.lo 
mkdir .libs
 cc -I. -I/usr/local/src/imagick-3.0.1 -DPHP_ATOM_INC -I/usr/local/src/imagick-
3.0.1/include -I/usr/local/src/imagick-3.0.1/main -I/usr/local/src/imagick-3.0.1 
-I/usr/local/include/php -I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -
I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/imagick-
3.0.1/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
 cc -I. -I/usr/local/src/imagick-3.0.1 -DPHP_ATOM_INC -I/usr/local/src/imagick-
3.0.1/include -I/usr/local/src/imagick-3.0.1/main -I/usr/local/src/imagick-3.0.1 
-I/usr/local/include/php -I/usr/local/include/php/main -
I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -
I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -
I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/imagick-
3.0.1/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
/usr/local/src/imagick-3.0.1/imagickdraw_class.c: In function 
‘zim_imagickdraw_setfillalpha’:
/usr/local/src/imagick-3.0.1/imagickdraw_class.c:323:2: warning: 
‘DrawSetFillAlpha’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:161) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagickdraw_class.c: In function 
‘zim_imagickdraw_setstrokealpha’:
/usr/local/src/imagick-3.0.1/imagickdraw_class.c:383:2: warning: 
‘DrawSetStrokeAlpha’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:162) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagickdraw_class.c: In function 
‘zim_imagickdraw_setfont’:
/usr/local/src/imagick-3.0.1/imagickdraw_class.c:437:3: error: ‘struct 
_php_core_globals’ has no member named ‘safe_mode’
/usr/local/src/imagick-3.0.1/imagickdraw_class.c:437:3: error: 
‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/usr/local/src/imagick-3.0.1/imagickdraw_class.c:437:3: note: each undeclared 
identifier is reported only once for each function it appears in
/usr/local/src/imagick-3.0.1/imagickdraw_class.c:437:3: error: 
‘CHECKUID_NO_ERRORS’ undeclared (first use in this function)
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_getimagematte’:
/usr/local/src/imagick-3.0.1/imagick_class.c:268:2: warning: 
‘MagickGetImageMatte’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:82) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_paintfloodfillimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:1016:3: warning: 
‘MagickPaintFloodfillImage’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:93) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c:1019:3: warning: 
‘MagickPaintFloodfillImage’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:93) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_recolorimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:1402:2: warning: 
‘MagickRecolorImage’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:103) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setfont’:
/usr/local/src/imagick-3.0.1/imagick_class.c:1442:3: error: ‘struct 
_php_core_globals’ has no member named ‘safe_mode’
/usr/local/src/imagick-3.0.1/imagick_class.c:1442:3: error: 
‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/usr/local/src/imagick-3.0.1/imagick_class.c:1442:3: note: each undeclared 
identifier is reported only once for each function it appears in
/usr/local/src/imagick-3.0.1/imagick_class.c:1442:3: error: ‘CHECKUID_NO_ERRORS’ 
undeclared (first use in this function)
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_colorfloodfillimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:3396:2: warning: 
‘MagickColorFloodfillImage’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:75) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_mapimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:3730:2: warning: ‘MagickMapImage’ is 
deprecated (declared at /usr/local/include/ImageMagick/wand/deprecate.h:86) [-
Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_mattefloodfillimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:3763:2: warning: 
‘MagickMatteFloodfillImage’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:88) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_paintopaqueimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:3853:2: warning: 
‘MagickPaintOpaqueImageChannel’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:98) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_painttransparentimage’:
/usr/local/src/imagick-3.0.1/imagick_class.c:3916:2: warning: 
‘MagickPaintTransparentImage’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:101) [-Wdeprecated-declarations]
make: *** [imagickdraw_class.lo] Error 1
make: *** Waiting for unfinished jobs....
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_getimageattribute’:
/usr/local/src/imagick-3.0.1/imagick_class.c:5068:2: warning: 
‘MagickGetImageAttribute’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:59) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_getimagechannelextrema’:
/usr/local/src/imagick-3.0.1/imagick_class.c:5253:2: warning: 
‘MagickGetImageChannelExtrema’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:78) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_getimageextrema’:
/usr/local/src/imagick-3.0.1/imagick_class.c:5506:2: warning: 
‘MagickGetImageExtrema’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:80) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_getimageindex’:
/usr/local/src/imagick-3.0.1/imagick_class.c:6344:2: warning: 
‘MagickGetImageIndex’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:65) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_setimageindex’:
/usr/local/src/imagick-3.0.1/imagick_class.c:6369:2: warning: 
‘MagickSetImageIndex’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:107) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_getimagesize’:
/usr/local/src/imagick-3.0.1/imagick_class.c:6447:2: warning: 
‘MagickGetImageSize’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:134) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_setimageattribute’:
/usr/local/src/imagick-3.0.1/imagick_class.c:6796:2: warning: 
‘MagickSetImageAttribute’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:105) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_flattenimages’:
/usr/local/src/imagick-3.0.1/imagick_class.c:7043:2: warning: 
‘MagickFlattenImages’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:126) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_averageimages’:
/usr/local/src/imagick-3.0.1/imagick_class.c:8079:2: warning: 
‘MagickAverageImages’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:125) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_mosaicimages’:
/usr/local/src/imagick-3.0.1/imagick_class.c:8516:2: warning: 
‘MagickMosaicImages’ is deprecated (declared at 
/usr/local/include/ImageMagick/wand/deprecate.h:129) [-Wdeprecated-declarations]
/usr/local/src/imagick-3.0.1/imagick_class.c: In function 
‘zim_imagick_setimageprogressmonitor’:
/usr/local/src/imagick-3.0.1/imagick_class.c:9534:2: error: ‘struct 
_php_core_globals’ has no member named ‘safe_mode’
/usr/local/src/imagick-3.0.1/imagick_class.c:9534:2: error: 
‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/usr/local/src/imagick-3.0.1/imagick_class.c:9534:2: error: ‘CHECKUID_NO_ERRORS’ 
undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-10 12:13 UTC] mattboothman at yahoo dot co dot uk
I have the same problem with Fedora 17 beta.
 [2012-05-16 12:21 UTC] andre at laszlo dot nu
I have the same problem in Arch Linux.

http://pecl.php.net/package/imagick/3.1.0RC1 works though
 [2012-05-21 18:00 UTC] anson dot web at gmail dot com
I am using PHP 5.4.3 and have compiled ImageMagick 6.7.6-9 on Red Hat AS 4.0.  I experienced exactly the same compilation error on imagick 3.0.1.
 [2012-05-26 10:39 UTC] siewert dot christian at ymail dot com
I've got the exactly the same problem.

PHP: 5.4.3-5
Imagick php wrapper: 3.0.1
 [2012-05-26 10:42 UTC] siewert dot christian at ymail dot com
I've tried the 3.1.0RC1 of imagick-php-wrapper. It is still beta, but compilation 
works.
 [2012-05-29 13:13 UTC] erick dot vitor at gmail dot com
I'm facing the same problem:

- CentOS 5.7 64 bits
- PHP5.4.3
 [2012-05-30 20:30 UTC] mkoppanen@php.net
3.1.0RC1 or 3.1.0RC2 should work
 [2013-01-17 19:49 UTC] cody at hawkhost dot com
This compiled with 3.1.0RC2 and works however there were some compiliation warnings:

--- SNIP ---
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagick_file.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagickdraw_class.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagick_class.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagickpixeliterator_class.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagick_helpers.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagickpixel_class.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/local/php54/imagick-3.1.0RC2/imagick_file.c:22:
/usr/local/php54/imagick-3.1.0RC2/php_imagick_file.h:77:32: warning: no newline at end of file
In file included from /usr/include/ImageMagick/magick/magick-config.h:9,
                 from /usr/include/ImageMagick/wand/MagickWand.h:29,
                 from /usr/local/php54/imagick-3.1.0RC2/php_imagick.h:49,
                 from /usr/local/php54/imagick-3.1.0RC2/imagick.c:21:
/usr/include/ImageMagick/magick/magick-config-64.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile"
/usr/include/ImageMagick/magick/magick-config-64.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
/usr/include/ImageMagick/magick/magick-config-64.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile"
In file included from /usr/local/php54/imagick-3.1.0RC2/imagick_class.c:24:
/usr/local/php54/imagick-3.1.0RC2/php_imagick_helpers.h:58:35: warning: no newline at end of file
In file included from /usr/local/php54/imagick-3.1.0RC2/imagick_class.c:25:
/usr/local/php54/imagick-3.1.0RC2/php_imagick_file.h:77:32: warning: no newline at end of file
In file included from /usr/local/php54/imagick-3.1.0RC2/imagickdraw_class.c:24:
/usr/local/php54/imagick-3.1.0RC2/php_imagick_helpers.h:58:35: warning: no newline at end of file
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_getimagematte’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:276: warning: ‘MagickGetImageMatte’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82)
/usr/local/php54/imagick-3.1.0RC2/imagickdraw_class.c: In function ‘zim_imagickdraw_setfillalpha’:
/usr/local/php54/imagick-3.1.0RC2/imagickdraw_class.c:398: warning: ‘DrawSetFillAlpha’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:167)
/usr/local/php54/imagick-3.1.0RC2/imagickdraw_class.c: In function ‘zim_imagickdraw_setstrokealpha’:
/usr/local/php54/imagick-3.1.0RC2/imagickdraw_class.c:458: warning: ‘DrawSetStrokeAlpha’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:168)
/usr/local/php54/imagick-3.1.0RC2/imagick_helpers.c: In function ‘php_imagick_validate_map’:
/usr/local/php54/imagick-3.1.0RC2/imagick_helpers.c:149: warning: initialization discards qualifiers from pointer target type
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:1034: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:101)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:1037: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:101)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_recolorimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:1420: warning: ‘MagickRecolorImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:110)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:3423: warning: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:77)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_mapimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:3763: warning: ‘MagickMapImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:87)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:3796: warning: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:90)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:3823: warning: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:217)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:3886: warning: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:106)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:3949: warning: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:108)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:4092: warning: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:266)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:5101: warning: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:60)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:5288: warning: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:79)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:5542: warning: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:81)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_getimageindex’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:6383: warning: ‘MagickGetImageIndex’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_setimageindex’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:6408: warning: ‘MagickSetImageIndex’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:114)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_getimagesize’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:6486: warning: ‘MagickGetImageSize’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:6835: warning: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:112)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_flattenimages’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:7082: warning: ‘MagickFlattenImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_averageimages’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:8128: warning: ‘MagickAverageImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131)
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
/usr/local/php54/imagick-3.1.0RC2/imagick_class.c:8567: warning: ‘MagickMosaicImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135)
--- SNIP ---
 [2013-04-29 14:25 UTC] delboy1978uk at gmail dot com
I have deprecation warnings all over the place, then it fails.
On OSX Lion
Using sudo pecl install imagick
 [2013-04-29 15:25 UTC] Mattboothman at yahoo dot co dot uk
This bug is over a year old and for an OS that has been superseded 4 times. Nothing 
to do with OSX.

I vote to close as irrelevant
 [2013-05-18 00:24 UTC] delboy1978uk at gmail dot com
this problem is fixable, I got it working as there is a beta version which WILL 
compile! Check my blog post to get yourself up and running!

delboy1978uk.wordpress.com/2013/04/29/install-imagemagick-and-imagick-on-mac-os-
x-lion/
 [2013-05-18 00:27 UTC] delboy1978uk at gmail dot com
and you are correct, the OS has nothing to do with the bug, its a compatibility 
issue with imagick and php 5.4, but the later beta imagick works just fine
 [2013-12-03 11:30 UTC] mike@php.net
-Assigned To: +Assigned To: mkoppanen
 [2015-01-05 02:46 UTC] danack@php.net
-Status: Assigned +Status: Closed
 [2015-01-05 02:46 UTC] danack@php.net
User reported the issue went away with later version of code.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 14:01:27 2019 UTC