Errors installing2.1.0RC3

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
flashape

Errors installing2.1.0RC3

Post by flashape »

I am trying to compile the imagick extension and hitting an error when running make:

Code: Select all

# make
/bin/sh /usr/lib64/php/modules/imagick-2.1.0RC3/libtool --mode=compile gcc  -I. -I/usr/lib64/php/modules/imagick-2.1.0RC3 -DPHP_ATOM_INC -I/usr/lib64/php/modules/imagick-2.1.0RC3/include -I/usr/lib64/php/modules/imagick-2.1.0RC3/main -I/usr/lib64/php/modules/imagick-2.1.0RC3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /usr/lib64/php/modules/imagick-2.1.0RC3/imagick.c -o imagick.lo 
 gcc -I. -I/usr/lib64/php/modules/imagick-2.1.0RC3 -DPHP_ATOM_INC -I/usr/lib64/php/modules/imagick-2.1.0RC3/include -I/usr/lib64/php/modules/imagick-2.1.0RC3/main -I/usr/lib64/php/modules/imagick-2.1.0RC3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /usr/lib64/php/modules/imagick-2.1.0RC3/imagick.c  -fPIC -DPIC -o .libs/imagick.o
/usr/lib64/php/modules/imagick-2.1.0RC3/imagick.c: In function 'PHP_GINIT_FUNCTION':
/usr/lib64/php/modules/imagick-2.1.0RC3/imagick.c:18536: error: invalid type argument of '->'
make: *** [imagick.lo] Error 1
I get the same error with RC2 as well...any idea what is wrong? My setup is :
CentO 5.1 (x86_64)
PHP 5.1.6
ImageMagick 6.3.8

I also have the magickwand php extension installed.
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Errors installing2.1.0RC3

Post by mkoppanen »

Fixed in CVS. Upgrading your PHP to 5.2 would not hurt thou.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply