SOLVED UPS-307 - imagick PHP8 install error

jmginer

Well-Known Member
Jul 26, 2006
154
4
168
Alicante
cPanel Access Level
Root Administrator
Code:
Installing PHP PECL "imagick"
Loaded plugins: fastestmirror, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 185.15.22.168
* cpanel-addons-production-feed: 185.15.22.168
* cpanel-plugins: 185.15.22.168
* cloudlinux-x86_64-server-7: cl-mirror.ginernet.com
Package ImageMagick-devel-6.9.10.68-5.el7_9.x86_64 already installed and latest version
Nothing to do
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to
update
downloading imagick-3.4.4.tgz ...
Starting to download imagick-3.4.4.tgz (253,434 bytes)
.....................................................done: 253,434 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
Please provide the prefix of ImageMagick installation [autodetect] : building in /root/tmp/pear/pear
-build-rootHbVv3n/imagick-3.4.4
running: /root/tmp/pear/imagick/configure --with-php-config=/opt/cpanel/ea-php80/root/usr/bin/php-co
nfig --with-imagick
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 pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
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 for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php80/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php80/root/usr/include/php -I/opt/cpanel/ea-php80/root
/usr/include/php/main -I/opt/cpanel/ea-php80/root/usr/include/php/TSRM -I/opt/cpanel/ea-php80/root/u
sr/include/php/Zend -I/opt/cpanel/ea-php80/root/usr/include/php/ext -I/opt/cpanel/ea-php80/root/usr/
include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php80/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php80/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickW
and-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... It exists
found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.9.10 Q16
checking for MagickWand.h or magick-wand.h header... user location /usr/include/ImageMagick-6/wand/M
agickWand.h
checking PHP version is at least 5.3.2... yes. found 8.0.0
libs
-lMagickWand-6.Q16 -lMagickCore-6.Q16


checking for MagickGetVersion... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
checking the name lister (/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert
_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop

checking for /bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
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 for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/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
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /root/tmp/pear/pear-build-rootHbVv3n/imagick-3.4.4/libtool --mode=compile cc -I. -I/root/tmp
/pear/imagick -I/root/tmp/pear/pear-build-rootHbVv3n/imagick-3.4.4/include -I/root/tmp/pear/pear-bui
ld-rootHbVv3n/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/opt/cpanel/ea-php80/root/usr/include/ph
p -I/opt/cpanel/ea-php80/root/usr/include/php/main -I/opt/cpanel/ea-php80/root/usr/include/php/TSRM
-I/opt/cpanel/ea-php80/root/usr/include/php/Zend -I/opt/cpanel/ea-php80/root/usr/include/php/ext -I/
opt/cpanel/ea-php80/root/usr/include/php/ext/date/lib -I/usr/include/ImageMagick-6  -DHAVE_CONFIG_H
-g -O2   -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagi
ck-6   -c /root/tmp/pear/imagick/imagick_file.c -o imagick_file.lo
libtool: compile:  cc -I. -I/root/tmp/pear/imagick -I/root/tmp/pear/pear-build-rootHbVv3n/imagick-3.
4.4/include -I/root/tmp/pear/pear-build-rootHbVv3n/imagick-3.4.4/main -I/root/tmp/pear/imagick -I/op
t/cpanel/ea-php80/root/usr/include/php -I/opt/cpanel/ea-php80/root/usr/include/php/main -I/opt/cpane
l/ea-php80/root/usr/include/php/TSRM -I/opt/cpanel/ea-php80/root/usr/include/php/Zend -I/opt/cpanel/
ea-php80/root/usr/include/php/ext -I/opt/cpanel/ea-php80/root/usr/include/php/ext/date/lib -I/usr/in
clude/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_
DEPTH=16 -I/usr/include/ImageMagick-6 -c /root/tmp/pear/imagick/imagick_file.c  -fPIC -DPIC -o .libs
/imagick_file.o
In file included from /root/tmp/pear/imagick/imagick_file.c:22:0:
/root/tmp/pear/imagick/php_imagick_file.h:61:108: error: expected ';', ',' or ')' before 'TSRMLS_DC'

zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const char *filename, size_t filen
ame_len TSRMLS_DC);
                                                                                                  
        ^
/root/tmp/pear/imagick/php_imagick_file.h:65:54: error: expected ';', ',' or ')' before 'TSRMLS_DC'
int php_imagick_safe_mode_check(const char *filename TSRMLS_DC);
                                                      ^
In file included from /root/tmp/pear/imagick/imagick_file.c:22:0:
/root/tmp/pear/imagick/php_imagick_file.h:68:134: error: expected ';', ',' or ')' before 'TSRMLS_DC'

php_imagick_rw_result_t php_imagick_read_file(php_imagick_object *intern, struct php_imagick_file_t
*file, ImagickOperationType type TSRMLS_DC);
                                                                                                  
                                  ^
/root/tmp/pear/imagick/php_imagick_file.h:71:153: error: expected ';', ',' or ')' before 'TSRMLS_DC'

php_imagick_rw_result_t php_imagick_write_file(php_imagick_object *intern, struct php_imagick_file_
t *file, ImagickOperationType type, zend_bool adjoin TSRMLS_DC);
                                                                                                  
                                                     ^
/root/tmp/pear/imagick/php_imagick_file.h:74:112: error: expected ';', ',' or ')' before 'TSRMLS_DC'

zend_bool php_imagick_stream_handler(php_imagick_object *intern, php_stream *stream, ImagickOperati
onType type TSRMLS_DC);
                                                                                                  
            ^
/root/tmp/pear/imagick/imagick_file.c:81:51: error: expected ';', ',' or ')' before 'TSRMLS_DC'
zend_bool php_imagick_is_url(const char *filename TSRMLS_DC)
                                                   ^
/root/tmp/pear/imagick/imagick_file.c:91:108: error: expected ';', ',' or ')' before 'TSRMLS_DC'
zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const char *filename, size_t filen
ame_len TSRMLS_DC)
                                                                                                  
        ^
/root/tmp/pear/imagick/imagick_file.c:160:133: error: expected ';', ',' or ')' before 'TSRMLS_DC'
int php_imagick_read_image_using_imagemagick(php_imagick_object *intern, struct php_imagick_file_t
*file, ImagickOperationType type TSRMLS_DC)
                                                                                                  
                                 ^
/root/tmp/pear/imagick/imagick_file.c:201:133: error: expected ';', ',' or ')' before 'TSRMLS_DC'
int php_imagick_read_image_using_php_streams(php_imagick_object *intern, struct php_imagick_file_t
*file, ImagickOperationType type TSRMLS_DC)
                                                                                                  
                                 ^
/root/tmp/pear/imagick/imagick_file.c:255:54: error: expected ';', ',' or ')' before 'TSRMLS_DC'
int php_imagick_safe_mode_check(const char *filename TSRMLS_DC)
                                                      ^
/root/tmp/pear/imagick/imagick_file.c:269:134: error: expected ';', ',' or ')' before 'TSRMLS_DC'
php_imagick_rw_result_t php_imagick_read_file(php_imagick_object *intern, struct php_imagick_file_t
*file, ImagickOperationType type TSRMLS_DC)
                                                                                                  
                                  ^
/root/tmp/pear/imagick/imagick_file.c:288:153: error: expected ';', ',' or ')' before 'TSRMLS_DC'
php_imagick_rw_result_t php_imagick_write_file(php_imagick_object *intern, struct php_imagick_file_
t *file, ImagickOperationType type, zend_bool adjoin TSRMLS_DC)
                                                                                                  
                                                     ^
/root/tmp/pear/imagick/imagick_file.c:313:112: error: expected ';', ',' or ')' before 'TSRMLS_DC'
zend_bool php_imagick_stream_handler(php_imagick_object *intern, php_stream *stream, ImagickOperati
onType type TSRMLS_DC)
                                                                                                  
            ^
make: *** [imagick_file.lo] Error 1
ERROR: `make' failed
 
Last edited by a moderator:

dirklammert

Member
Mar 7, 2019
18
6
3
NL
cPanel Access Level
Root Administrator
cPanel should sponsor this project, just like Automattic and DreamHost did.
There is no upstream PHP bug, and there is no need to "track" of the issue. Just support the project.
Thanks
 

Joe T

Registered
Jul 24, 2021
1
0
1
United States
cPanel Access Level
Root Administrator
Indeed it does - I've left a comment on the case for our developers to double-check everything on our side and make sure things are compatible, but it looks like it's good to go.
Any clue when this will be released? Is compiling the current Imagick for ea-php80 from source in the meantime a no-no?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,627
1,049
313
cPanel Access Level
Root Administrator
I confirmed this is working today on a CentOS 7 test server with cPanel 96. I did the following:

Code:
yum install ImageMagick ImageMagick-devel -y
/opt/cpanel/ea-php80/root/usr/bin/pecl install imagick
and that worked well for me. Let me know if you're still seeing issues.