Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-gmagick.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-SCLs_php72-armhfp-11d838e17913dc578ced634dd5f5cd1ca4525e18/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-gmagick.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/php72-php-pecl-gmagick-1.1.7-0.9.RC3.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/php-pecl-gmagick.spec"], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-SCLs_php72-armhfp-11d838e17913dc578ced634dd5f5cd1ca4525e18/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/php-pecl-gmagick.spec"] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Dx6FAd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php72-php-pecl-gmagick-1.1.7 + /usr/bin/mkdir -p php72-php-pecl-gmagick-1.1.7 + cd php72-php-pecl-gmagick-1.1.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/gmagick-1.1.7RC3.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e 's/role="test"/role="src"/' -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml + mv gmagick-1.1.7RC3 NTS + cd NTS ++ sed -n '/#define PHP_GMAGICK_VERSION/{s/.* "//;s/".*$//;p}' php_gmagick.h + extver=1.1.7RC3 + test x1.1.7RC3 '!=' x1.1.7RC3 + cd .. + cat + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.73klok + umask 022 + cd /builddir/build/BUILD + cd php72-php-pecl-gmagick-1.1.7 + cd NTS + /opt/rh/php72/root/usr/bin/phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/opt/rh/php72/root/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I/opt/rh/php72/root/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' arm == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + ./configure --build=armv7hl-redhat-linux-gnu --host=armv7hl-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/opt/rh/php72/root/usr --exec-prefix=/opt/rh/php72/root/usr --bindir=/opt/rh/php72/root/usr/bin --sbindir=/opt/rh/php72/root/usr/sbin --sysconfdir=/etc/opt/rh/php72 --datadir=/opt/rh/php72/root/usr/share --includedir=/opt/rh/php72/root/usr/include --libdir=/opt/rh/php72/root/usr/lib --libexecdir=/opt/rh/php72/root/usr/libexec --localstatedir=/var/opt/rh/php72 --sharedstatedir=/var/opt/rh/php72/lib --mandir=/opt/rh/php72/root/usr/share/man --infodir=/opt/rh/php72/root/usr/share/info --with-gmagick --with-php-config=/opt/rh/php72/root/usr/bin/php-config configure: WARNING: unrecognized options: --disable-dependency-tracking checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for armv7hl-redhat-linux-gnu-cc... no checking for armv7hl-redhat-linux-gnu-gcc... no 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... yes checking build system type... armv7hl-redhat-linux-gnu checking host system type... armv7hl-redhat-linux-gnu checking target system type... armv7hl-redhat-linux-gnu checking for PHP prefix... /opt/rh/php72/root/usr checking for PHP includes... -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib checking for PHP extension directory... /opt/rh/php72/root/usr/lib/php/modules checking for PHP installed headers prefix... /opt/rh/php72/root/usr/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 gmagick extension... yes, shared checking GraphicsMagick configuration program... found in /usr/bin/GraphicsMagick-config checking GraphicsMagick version... found version 1.3.34 checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert armv7hl-redhat-linux-gnu file names to armv7hl-redhat-linux-gnu format... func_convert_file_noop checking how to convert armv7hl-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for armv7hl-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for armv7hl-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for armv7hl-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for armv7hl-redhat-linux-gnu-strip... no checking for strip... strip checking for armv7hl-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for armv7hl-redhat-linux-gnu-mt... 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... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) 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: creating ./config.status config.status: creating config.h config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 /bin/sh /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c -o gmagick_helpers.lo /bin/sh /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c -o gmagick_methods.lo /bin/sh /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c -o gmagick.lo /bin/sh /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c -o gmagickdraw_methods.lo libtool: compile: cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c -fPIC -DPIC -o .libs/gmagick_helpers.o libtool: compile: cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c -fPIC -DPIC -o .libs/gmagick_methods.o libtool: compile: cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c -fPIC -DPIC -o .libs/gmagick.o libtool: compile: cc -I. -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/include -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/main -I/builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS -I/opt/rh/php72/root/usr/include/php -I/opt/rh/php72/root/usr/include/php/main -I/opt/rh/php72/root/usr/include/php/TSRM -I/opt/rh/php72/root/usr/include/php/Zend -I/opt/rh/php72/root/usr/include/php/ext -I/opt/rh/php72/root/usr/include/php/ext/date/lib -I/usr/include/GraphicsMagick -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c -fPIC -DPIC -o .libs/gmagickdraw_methods.o In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:328:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:328:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:446:2: warning: implicit declaration of function '__builtin_saddl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:500:2: warning: implicit declaration of function '__builtin_ssubl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:446:2: warning: implicit declaration of function '__builtin_saddl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:500:2: warning: implicit declaration of function '__builtin_ssubl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:328:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:446:2: warning: implicit declaration of function '__builtin_saddl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:500:2: warning: implicit declaration of function '__builtin_ssubl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:328:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:446:2: warning: implicit declaration of function '__builtin_saddl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php72/root/usr/include/php/Zend/zend_operators.h:500:2: warning: implicit declaration of function '__builtin_ssubl_overflow' [-Wimplicit-function-declaration] if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_readimage': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:64:2: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] intern = (php_gmagick_object *)zend_object_store_get_object(getThis() TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: At top level: /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:59:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagick_object_new_ex(zend_class_entry *class_type, php_gmagick_object **ptr, zend_bool init_wand TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: In function 'php_gmagick_object_new_ex': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:64:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:89:8: error: request for member 'handle' in something not a structure or union retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagick_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:89:56: error: 'zend_objects_free_object_storage_t' undeclared (first use in this function) retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagick_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:89:56: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:89:92: error: expected ')' before 'php_gmagick_object_free_storage' retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagick_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:89:92: warning: passing argument 1 of 'zend_objects_store_put' from incompatible pointer type [enabled by default] In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:35:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects_API.h:59:15: note: expected 'struct zend_object *' but argument is of type 'struct php_gmagick_object *' ZEND_API void zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:89:92: error: too many arguments to function 'zend_objects_store_put' retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagick_object_free_storage, NULL TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:35:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects_API.h:59:15: note: declared here ZEND_API void zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:90:8: error: request for member 'handlers' in something not a structure or union retval.handlers = (zend_object_handlers *) &gmagick_object_handlers; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: At top level: /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:97:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagick_object_new(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:105:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagick_clone_gmagick_object(zval *this_ptr TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: In function 'php_gmagick_clone_gmagick_object': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c: In function 'zim_gmagickdraw_setstrokecolor': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:37:2: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:39:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] GMAGICK_CAST_PARAMETER_TO_COLOR(param, internp, 2); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:108:2: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] php_gmagick_object *old_obj = (php_gmagick_object *) zend_object_store_get_object(this_ptr TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:109:2: error: unknown type name 'zend_object_value' zend_object_value new_ov = php_gmagick_object_new_ex(old_obj->zo.ce, &new_obj, 0 TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:111:2: warning: passing argument 2 of 'zend_objects_clone_members' makes pointer from integer without a cast [enabled by default] zend_objects_clone_members(&new_obj->zo, new_ov, &old_obj->zo, Z_OBJ_HANDLE_P(this_ptr) TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:34:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects.h:32:15: note: expected 'struct zend_object *' but argument is of type 'int' ZEND_API void zend_objects_clone_members(zend_object *new_object, zend_object *old_object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:111:2: error: too many arguments to function 'zend_objects_clone_members' zend_objects_clone_members(&new_obj->zo, new_ov, &old_obj->zo, Z_OBJ_HANDLE_P(this_ptr) TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:34:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects.h:32:15: note: declared here ZEND_API void zend_objects_clone_members(zend_object *new_object, zend_object *old_object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: At top level: /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:143:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagickdraw_object_new_ex(zend_class_entry *class_type, php_gmagickdraw_object **ptr, zend_bool init_wand TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: In function 'php_gmagickdraw_object_new_ex': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:148:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:175:8: error: request for member 'handle' in something not a structure or union retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickdraw_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:175:56: error: 'zend_objects_free_object_storage_t' undeclared (first use in this function) retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickdraw_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:175:92: error: expected ')' before 'php_gmagickdraw_object_free_storage' retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickdraw_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:175:92: warning: passing argument 1 of 'zend_objects_store_put' from incompatible pointer type [enabled by default] In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:35:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects_API.h:59:15: note: expected 'struct zend_object *' but argument is of type 'struct php_gmagickdraw_object *' ZEND_API void zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:175:92: error: too many arguments to function 'zend_objects_store_put' retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickdraw_object_free_storage, NULL TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:35:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects_API.h:59:15: note: declared here ZEND_API void zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:176:8: error: request for member 'handlers' in something not a structure or union retval.handlers = (zend_object_handlers *) &gmagickdraw_object_handlers; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: At top level: /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c: In function 'zim_gmagickdraw_affine': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:139:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(affine, matrix_elements[i], 3, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c: In function 'get_pointinfo_array': In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:168:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:339:57: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 if (zend_hash_get_current_data(coords, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:183:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagickdraw_object_new(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:139:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(affine, matrix_elements[i], 3, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:339:7: error: 'zend_hash_get_current_data' undeclared (first use in this function) if (zend_hash_get_current_data(coords, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:339:7: note: each undeclared identifier is reported only once for each function it appears in In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:139:70: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(affine, matrix_elements[i], 3, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:347:3: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] if(Z_TYPE_PP(ppzval) != IS_ARRAY) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:210:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagickpixel_object_new_ex(zend_class_entry *class_type, php_gmagickpixel_object **ptr, zend_bool init_wand TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: In function 'php_gmagickpixel_object_new_ex': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:215:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:355:3: warning: implicit declaration of function 'Z_ARRVAL_PP' [-Wimplicit-function-declaration] sub_elements = zend_hash_num_elements(Z_ARRVAL_PP(ppzval)); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:246:6: error: invalid type argument of '->' (have 'int') (ht)->nNumOfElements ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:355:18: note: in expansion of macro 'zend_hash_num_elements' sub_elements = zend_hash_num_elements(Z_ARRVAL_PP(ppzval)); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:366:13: warning: assignment makes pointer from integer without a cast [enabled by default] sub_array = Z_ARRVAL_PP(ppzval); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:369:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(sub_array, "x", sizeof("x"), (void**)&ppz_x) == FAILURE) { ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:168:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:369:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(sub_array, "x", sizeof("x"), (void**)&ppz_x) == FAILURE) { ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:369:67: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(sub_array, "x", sizeof("x"), (void**)&ppz_x) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:384:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default] if (zend_hash_find(sub_array, "y", sizeof("y"), (void**)&ppz_y) == FAILURE) { ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:168:30: note: expected 'struct zend_string *' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:384:3: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(sub_array, "y", sizeof("y"), (void**)&ppz_y) == FAILURE) { ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend.h:34:0, from /opt/rh/php72/root/usr/include/php/main/php.h:35, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:384:67: warning: comparison between pointer and integer [enabled by default] if (zend_hash_find(sub_array, "y", sizeof("y"), (void**)&ppz_y) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:401:4: warning: implicit declaration of function 'Z_LVAL_PP' [-Wimplicit-function-declaration] coordinates[i].x = (double)Z_LVAL_PP(ppz_x); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:403:4: warning: implicit declaration of function 'Z_DVAL_PP' [-Wimplicit-function-declaration] coordinates[i].x = Z_DVAL_PP(ppz_x); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:242:8: error: request for member 'handle' in something not a structure or union retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickpixel_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:242:56: error: 'zend_objects_free_object_storage_t' undeclared (first use in this function) retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickpixel_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:242:92: error: expected ')' before 'php_gmagickpixel_object_free_storage' retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickpixel_object_free_storage, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:242:92: warning: passing argument 1 of 'zend_objects_store_put' from incompatible pointer type [enabled by default] In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:35:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects_API.h:59:15: note: expected 'struct zend_object *' but argument is of type 'struct php_gmagickpixel_object *' ZEND_API void zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:242:92: error: too many arguments to function 'zend_objects_store_put' retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_gmagickpixel_object_free_storage, NULL TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:35:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects_API.h:59:15: note: declared here ZEND_API void zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:243:8: error: request for member 'handlers' in something not a structure or union retval.handlers = (zend_object_handlers *) &gmagickpixel_object_handlers; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: At top level: /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:250:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagickpixel_object_new(zend_class_entry *class_type TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:258:1: error: unknown type name 'zend_object_value' static zend_object_value php_gmagick_clone_gmagickpixel_object(zval *this_ptr TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: In function 'php_gmagick_clone_gmagickpixel_object': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c: In function 'get_double_array_from_zval': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:466:53: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 if (zend_hash_get_current_data(ht, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:466:7: error: 'zend_hash_get_current_data' undeclared (first use in this function) if (zend_hash_get_current_data(ht, (void**)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c: In function 'php_gmagick_zval_to_double_array': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:645:94: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 zend_hash_get_current_data(Z_ARRVAL_P(param_array), (void **) &ppzval) == SUCCESS; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_helpers.c:645:25: error: 'zend_hash_get_current_data' undeclared (first use in this function) zend_hash_get_current_data(Z_ARRVAL_P(param_array), (void **) &ppzval) == SUCCESS; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:262:2: error: unknown type name 'zend_object_value' zend_object_value new_ov = php_gmagickpixel_object_new_ex(old_obj->zo.ce, &new_obj, 0 TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:264:2: warning: passing argument 2 of 'zend_objects_clone_members' makes pointer from integer without a cast [enabled by default] zend_objects_clone_members(&new_obj->zo, new_ov, &old_obj->zo, Z_OBJ_HANDLE_P(this_ptr) TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:34:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects.h:32:15: note: expected 'struct zend_object *' but argument is of type 'int' ZEND_API void zend_objects_clone_members(zend_object *new_object, zend_object *old_object); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_borderimage': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:264:2: error: too many arguments to function 'zend_objects_clone_members' zend_objects_clone_members(&new_obj->zo, new_ov, &old_obj->zo, Z_OBJ_HANDLE_P(this_ptr) TSRMLS_CC); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:517:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] GMAGICK_CAST_PARAMETER_TO_COLOR(param, internp, 1); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_globals.h:34:0, from /opt/rh/php72/root/usr/include/php/Zend/zend_compile.h:702, from /opt/rh/php72/root/usr/include/php/Zend/zend_modules.h:26, from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:27, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_objects.h:32:15: note: declared here ZEND_API void zend_objects_clone_members(zend_object *new_object, zend_object *old_object); ^ make: *** [gmagick_helpers.lo] Error 1 make: *** Waiting for unfinished jobs.... /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c: In function 'zim_gmagickdraw_getfont': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:289:36: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, font, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:289:3: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, font, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:289:3: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c: In function 'zim_gmagickdraw_gettextencoding': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:458:40: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, encoding, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagickdraw_methods.c:458:3: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, encoding, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getcopyright': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:995:40: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, copyright, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:995:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, copyright, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:995:2: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:988:8: warning: variable 'copyright' set but not used [-Wunused-but-set-variable] char *copyright; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getfilename': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1018:40: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, filename, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1018:3: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, filename, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getimageblob': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1085:69: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(return_value, (char *)image_contents, image_size, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1085:5: error: 'ZVAL_STRINGL' undeclared (first use in this function) ZVAL_STRINGL(return_value, (char *)image_contents, image_size, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getimagesblob': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1133:66: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(return_value, (char *)image_contents, image_size, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1133:2: error: 'ZVAL_STRINGL' undeclared (first use in this function) ZVAL_STRINGL(return_value, (char *)image_contents, image_size, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: In function 'zm_startup_gmagick': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1214:2: error: too many arguments to function 'zend_register_internal_class_ex' php_gmagick_exception_class_entry = zend_register_internal_class_ex(&ce, zend_exception_get_default(TSRMLS_C), NULL TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:303:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1218:2: error: too many arguments to function 'zend_register_internal_class_ex' php_gmagickpixel_exception_class_entry = zend_register_internal_class_ex(&ce, zend_exception_get_default(TSRMLS_C), NULL TSRMLS_CC); ^ In file included from /opt/rh/php72/root/usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:303:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1223:19: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = php_gmagick_object_new; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1224:36: warning: assignment from incompatible pointer type [enabled by default] gmagick_object_handlers.clone_obj = php_gmagick_clone_gmagick_object; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1228:19: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = php_gmagickdraw_object_new; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1233:19: warning: assignment from incompatible pointer type [enabled by default] ce.create_object = php_gmagickpixel_object_new; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:1234:41: warning: assignment from incompatible pointer type [enabled by default] gmagickpixel_object_handlers.clone_obj = php_gmagick_clone_gmagickpixel_object; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c: At top level: /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:38:13: warning: 'php_gmagick_object_free_storage' defined but not used [-Wunused-function] static void php_gmagick_object_free_storage(void *object TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:124:13: warning: 'php_gmagickdraw_object_free_storage' defined but not used [-Wunused-function] static void php_gmagickdraw_object_free_storage(void *object TSRMLS_DC) ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick.c:191:13: warning: 'php_gmagickpixel_object_free_storage' defined but not used [-Wunused-function] static void php_gmagickpixel_object_free_storage(void *object TSRMLS_DC) ^ make: *** [gmagick.lo] Error 1 /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getimagefilename': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1822:39: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, filename, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1822:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, filename, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getimageformat': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1878:37: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, format, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:1878:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, format, 1); ^ make: *** [gmagickdraw_methods.lo] Error 1 /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getimageprofile': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2362:48: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(return_value, profile, length, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2362:3: error: 'ZVAL_STRINGL' undeclared (first use in this function) ZVAL_STRINGL(return_value, profile, length, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getimagesignature': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2488:40: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, signature, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2488:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, signature, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getpackagename': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2814:43: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, package_name, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2814:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, package_name, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2807:8: warning: variable 'package_name' set but not used [-Wunused-but-set-variable] char *package_name; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getquantumdepth': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2837:71: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(return_value, "quantumDepthString", quantum_depth, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2837:2: error: 'add_assoc_string' undeclared (first use in this function) add_assoc_string(return_value, "quantumDepthString", quantum_depth, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2826:8: warning: variable 'quantum_depth' set but not used [-Wunused-but-set-variable] char *quantum_depth; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getreleasedate': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2855:43: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, release_date, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2855:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, release_date, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:2848:8: warning: variable 'release_date' set but not used [-Wunused-but-set-variable] char *release_date; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_getversion': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3088:67: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(return_value, "versionString", version_string, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3088:2: error: 'add_assoc_string' undeclared (first use in this function) add_assoc_string(return_value, "versionString", version_string, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3077:8: warning: variable 'version_string' set but not used [-Wunused-but-set-variable] char *version_string; ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_queryfonts': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3717:3: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value, fonts[i], 1); ^ In file included from /opt/rh/php72/root/usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:450:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_queryformats': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3744:3: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value, supported_formats[i], 1); ^ In file included from /opt/rh/php72/root/usr/include/php/main/php.h:39:0, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:450:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_readimagefile': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3867:2: warning: passing argument 1 of 'zend_fetch_resource2_ex' from incompatible pointer type [enabled by default] php_stream_from_zval(stream, &zstream); ^ In file included from /opt/rh/php72/root/usr/include/php/Zend/zend_API.h:28:0, from /opt/rh/php72/root/usr/include/php/main/php.h:39, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/php_gmagick.h:52, from /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:20: /opt/rh/php72/root/usr/include/php/Zend/zend_list.h:66:16: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void *zend_fetch_resource2_ex(zval *res, const char *resource_type_name, int resource_type, int resource_type2); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick_removeimageprofile': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3964:46: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, (char *)profile, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:3964:2: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, (char *)profile, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c: In function 'zim_gmagick___tostring': /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:4363:34: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, "", 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:4363:3: error: 'ZVAL_STRING' undeclared (first use in this function) ZVAL_STRING(return_value, "", 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:4370:34: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 ZVAL_STRING(return_value, "", 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:4378:57: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3 ZVAL_STRINGL(return_value, (char *)image, image_size, 1); ^ /builddir/build/BUILD/php72-php-pecl-gmagick-1.1.7/NTS/gmagick_methods.c:4378:2: error: 'ZVAL_STRINGL' undeclared (first use in this function) ZVAL_STRINGL(return_value, (char *)image, image_size, 1); ^ make: *** [gmagick_methods.lo] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.73klok (%build) Bad exit status from /var/tmp/rpm-tmp.73klok (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/php-pecl-gmagick.spec