Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-cairo.spec'], nspawn_args=[]shell=Falseuid=995env={'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_php73-armhfp-d9d7a3df901c69d8e0f4c4051f980a31b3fe3034/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-cairo.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/php73-php-pecl-cairo-0.3.2-11.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-cairo.spec"], nspawn_args=[]shell=Falseuid=995env={'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_php73-armhfp-d9d7a3df901c69d8e0f4c4051f980a31b3fe3034/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-cairo.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.j9nw80 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php73-php-pecl-cairo-0.3.2 + /usr/bin/mkdir -p php73-php-pecl-cairo-0.3.2 + cd php73-php-pecl-cairo-0.3.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/cairo-0.3.2.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml Patch #0 (pecl-cairo-php_streams.patch): + echo 'Patch #0 (pecl-cairo-php_streams.patch):' + /usr/bin/cat /builddir/build/SOURCES/pecl-cairo-php_streams.patch + /usr/bin/patch -p0 -b --suffix .61882 --fuzz=0 patching file Cairo-0.3.2/cairo_ft_font.c + mv Cairo-0.3.2 NTS ++ sed -n '/#define PHP_CAIRO_VERSION/{s/.* "//;s/".*$//;p}' NTS/php_cairo.h + extver=0.3.2-beta + test x0.3.2-beta '!=' x0.3.2-beta + cat + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lOrZa6 + umask 022 + cd /builddir/build/BUILD + cd php73-php-pecl-cairo-0.3.2 + cd NTS + /opt/rh/php73/root/usr/bin/phpize Configuring for: PHP Api Version: 20180731 Zend Module Api No: 20180731 Zend Extension Api No: 320180731 + 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/php73/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/php73/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/php73/root/usr --exec-prefix=/opt/rh/php73/root/usr --bindir=/opt/rh/php73/root/usr/bin --sbindir=/opt/rh/php73/root/usr/sbin --sysconfdir=/etc/opt/rh/php73 --datadir=/opt/rh/php73/root/usr/share --includedir=/opt/rh/php73/root/usr/include --libdir=/opt/rh/php73/root/usr/lib --libexecdir=/opt/rh/php73/root/usr/libexec --localstatedir=/var/opt/rh/php73 --sharedstatedir=/var/opt/rh/php73/lib --mandir=/opt/rh/php73/root/usr/share/man --infodir=/opt/rh/php73/root/usr/share/info --with-php-config=/opt/rh/php73/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/php73/root/usr checking for PHP includes... -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib checking for PHP extension directory... /opt/rh/php73/root/usr/lib/php/modules checking for PHP installed headers prefix... /opt/rh/php73/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 for Cairo graphics library support... yes, shared checking PHP version... ok checking for pkg-config... found checking for cairo... found 1.15.12 checking for Freetype... found 20.0.14 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/php73-php-pecl-cairo-0.3.2/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo.c -o cairo.lo /bin/sh /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c -o cairo_error.lo /bin/sh /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c -o cairo_context.lo /bin/sh /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c -o cairo_pattern.lo libtool: compile: cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo.c -fPIC -DPIC -o .libs/cairo.o libtool: compile: cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c -fPIC -DPIC -o .libs/cairo_error.o libtool: compile: cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c -fPIC -DPIC -o .libs/cairo_pattern.o libtool: compile: cc -I. -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/include -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/main -I/builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS -I/opt/rh/php73/root/usr/include/php -I/opt/rh/php73/root/usr/include/php/main -I/opt/rh/php73/root/usr/include/php/TSRM -I/opt/rh/php73/root/usr/include/php/Zend -I/opt/rh/php73/root/usr/include/php/ext -I/opt/rh/php73/root/usr/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/uuid -I/usr/include/libdrm -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/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c -fPIC -DPIC -o .libs/cairo_context.o In file included from /opt/rh/php73/root/usr/include/php/Zend/zend.h:335:0, from /opt/rh/php73/root/usr/include/php/main/php.h:33, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:498: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/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:548: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/php73/root/usr/include/php/Zend/zend.h:335:0, from /opt/rh/php73/root/usr/include/php/main/php.h:33, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:498: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/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:548: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/php73/root/usr/include/php/Zend/zend.h:335:0, from /opt/rh/php73/root/usr/include/php/main/php.h:33, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:498: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/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:548: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/php73/root/usr/include/php/Zend/zend.h:335:0, from /opt/rh/php73/root/usr/include/php/main/php.h:33, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:498: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/php73/root/usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /opt/rh/php73/root/usr/include/php/Zend/zend_operators.h:548: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 /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:29:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:536:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_surface_object_new(zend_class_entry *ce TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:29:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:544:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_font_face_object_new(zend_class_entry *ce TSRMLS_DC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_context_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:5: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:603:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal context object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_path_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:610:31: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_path_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:612:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal path object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_pattern_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:619:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_pattern_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:621:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal pattern object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_matrix_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:628:33: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_matrix_object *mobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:630:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal matrix object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_surface_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:637:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_surface_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:639:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal surface object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_face_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:646:36: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_face_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:648:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font face object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_scaled_font_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:655:38: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_scaled_font_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:657:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal scaled font object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_options_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:664:39: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_options_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:666:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font options object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c: In function 'zm_startup_cairo_error': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:40:2: error: too many arguments to function 'zend_register_internal_class_ex' cairo_ce_cairoexception = zend_register_internal_class_ex(&ce, zend_exception_get_default(TSRMLS_C), "Exception" TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:285: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/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:44:71: error: 'ZEND_ACC_FINAL_CLASS' undeclared (first use in this function) cairo_ce_cairostatus->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_FINAL_CLASS; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:44:71: note: each undeclared identifier is reported only once for each function it appears in In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c:29:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_error.c: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:540:22: warning: 'php_cairo_ft_read_func' declared 'static' but never defined [-Wunused-function] static unsigned long php_cairo_ft_read_func(FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count); ^ make: *** [cairo_error.lo] Error 1 make: *** Waiting for unfinished jobs.... In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:28:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:536:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_surface_object_new(zend_class_entry *ce TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:28:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:544:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_font_face_object_new(zend_class_entry *ce TSRMLS_DC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_context_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:5: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:603:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal context object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_path_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:610:31: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_path_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:612:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal path object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_pattern_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:619:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_pattern_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:621:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal pattern object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_matrix_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:628:33: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_matrix_object *mobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:630:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal matrix object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_surface_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:637:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_surface_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:639:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal surface object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_face_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:646:36: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_face_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:648:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font face object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_scaled_font_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:655:38: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_scaled_font_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:657:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal scaled font object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_options_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:664:39: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_options_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:666:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font options object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:29:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:536:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_surface_object_new(zend_class_entry *ce TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:29:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:544:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_font_face_object_new(zend_class_entry *ce TSRMLS_DC); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:34:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_context_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:536:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_surface_object_new(zend_class_entry *ce TSRMLS_DC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:5: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:34:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:544:1: error: unknown type name 'zend_object_value' extern zend_object_value cairo_font_face_object_new(zend_class_entry *ce TSRMLS_DC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:603:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal context object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_path_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:610:31: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_path_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_context_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:5: warning: implicit declaration of function 'zend_object_store_get_object' [-Wimplicit-function-declaration] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:612:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal path object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:601:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_context_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_pattern_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:619:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_pattern_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:603:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal context object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_path_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:621:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal pattern object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:610:31: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_path_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_matrix_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:628:33: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_matrix_object *mobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:612:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal path object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_pattern_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:630:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal matrix object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:619:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_pattern_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_surface_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:637:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_surface_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:621:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal pattern object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_matrix_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:639:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal surface object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:628:33: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_matrix_object *mobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_face_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:646:36: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_face_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:630:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal matrix object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_surface_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:648:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font face object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:637:34: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_surface_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_scaled_font_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:655:38: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_scaled_font_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:639:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal surface object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_face_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:657:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal scaled font object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:646:36: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_face_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_options_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:664:39: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_options_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:648:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font face object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_scaled_font_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:666:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font options object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:655:38: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_scaled_font_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:657:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal scaled font object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h: In function 'cairo_font_options_object_get': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:664:39: warning: initialization makes pointer from integer without a cast [enabled by default] cairo_font_options_object *pobj = zend_object_store_get_object(zobj TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:666:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'struct zend_string *' [-Wformat=] php_error(E_ERROR, "Internal font options object missing in %s wrapper, you must call parent::__construct in extended classes", Z_OBJCE_P(zobj)->name); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c: In function 'zim_CairoGradientPattern_getExtend': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:338:8: warning: unused variable 'pattern_zval' [-Wunused-variable] zval *pattern_zval = NULL; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: In function 'zif_cairo_set_dash': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:697:63: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 if (zend_hash_get_current_data(dashes_hash, (void **)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:697:7: error: 'zend_hash_get_current_data' undeclared (first use in this function) if (zend_hash_get_current_data(dashes_hash, (void **)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:697:7: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:701:3: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] if (Z_TYPE_PP(ppzval) != IS_DOUBLE) { ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:704:3: warning: implicit declaration of function 'Z_DVAL_PP' [-Wimplicit-function-declaration] dashes_array[i++] = Z_DVAL_PP(ppzval); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: In function 'zif_cairo_get_dash': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:763:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL(sub_array); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c: In function 'zif_cairo_pattern_get_surface': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:554:24: warning: variable 'surface_object' set but not used [-Wunused-but-set-variable] cairo_surface_object *surface_object; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'php_cairo_get_ft_error': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:618:38: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] php_cairo_ft_error *current_error = php_cairo_ft_errors; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:617:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zif_cairo_version_string': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:666:41: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(cairo_version_string(), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:666:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(cairo_version_string(), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:666:2: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zim_Cairo_versionString': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:681:41: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(cairo_version_string(), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:933:1: error: unknown type name 'zend_object_value' static zend_object_value cairo_pattern_object_new(zend_class_entry *ce TSRMLS_DC) ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:681:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(cairo_version_string(), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c: In function 'cairo_pattern_object_new': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:935:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zif_cairo_available_surfaces': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:694:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"IMAGE",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:696:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"PNG",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:699:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"PDF",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:702:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"PS",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:705:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"SVG",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:708:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"XLIB",1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:950:8: error: request for member 'handle' in something not a structure or union retval.handle = zend_objects_store_put(pattern, NULL, (zend_objects_free_object_storage_t)cairo_pattern_object_destroy, NULL TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:950:57: error: 'zend_objects_free_object_storage_t' undeclared (first use in this function) retval.handle = zend_objects_store_put(pattern, NULL, (zend_objects_free_object_storage_t)cairo_pattern_object_destroy, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:950:57: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:950:92: error: expected ')' before 'cairo_pattern_object_destroy' retval.handle = zend_objects_store_put(pattern, NULL, (zend_objects_free_object_storage_t)cairo_pattern_object_destroy, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:950:92: warning: passing argument 1 of 'zend_objects_store_put' from incompatible pointer type [enabled by default] In file included from /opt/rh/php73/root/usr/include/php/Zend/zend_globals.h:33:0, from /opt/rh/php73/root/usr/include/php/Zend/zend_compile.h:708, from /opt/rh/php73/root/usr/include/php/Zend/zend_modules.h:24, from /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:25, from /opt/rh/php73/root/usr/include/php/main/php.h:37, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_objects_API.h:61:29: note: expected 'struct zend_object *' but argument is of type 'struct cairo_pattern_object *' ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:950:92: error: too many arguments to function 'zend_objects_store_put' retval.handle = zend_objects_store_put(pattern, NULL, (zend_objects_free_object_storage_t)cairo_pattern_object_destroy, NULL TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/Zend/zend_globals.h:33:0, from /opt/rh/php73/root/usr/include/php/Zend/zend_compile.h:708, from /opt/rh/php73/root/usr/include/php/Zend/zend_modules.h:24, from /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:25, from /opt/rh/php73/root/usr/include/php/main/php.h:37, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_objects_API.h:61:29: note: declared here ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:951:8: error: request for member 'handlers' in something not a structure or union retval.handlers = &cairo_std_object_handlers; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zim_Cairo_availableSurfaces': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:937:8: warning: unused variable 'temp' [-Wunused-variable] zval *temp; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:731:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"IMAGE",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c: In function 'zm_startup_cairo_pattern': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:733:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"PNG",1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:962:39: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairopattern->create_object = cairo_pattern_object_new; ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:736:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"PDF",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:966:2: error: too many arguments to function 'zend_register_internal_class_ex' cairo_ce_cairogradientpattern = zend_register_internal_class_ex(&gradient_ce, cairo_ce_cairopattern, "CairoPattern" TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:285: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/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:739:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"PS",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:967:47: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairogradientpattern->create_object = cairo_pattern_object_new; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:742:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"SVG",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:971:2: error: too many arguments to function 'zend_register_internal_class_ex' cairo_ce_cairosolidpattern = zend_register_internal_class_ex(&solid_ce, cairo_ce_cairopattern, "CairoPattern" TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:745:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"XLIB",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:285:28: note: declared here ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:972:44: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairosolidpattern->create_object = cairo_pattern_object_new; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:754:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"RECORDING",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:975:2: error: too many arguments to function 'zend_register_internal_class_ex' cairo_ce_cairosurfacepattern = zend_register_internal_class_ex(&surface_ce, cairo_ce_cairopattern, "CairoPattern" TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:285: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/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:976:46: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairosurfacepattern->create_object = cairo_pattern_object_new; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zif_cairo_available_fonts': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:769:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"FREETYPE",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:979:2: error: too many arguments to function 'zend_register_internal_class_ex' cairo_ce_cairolineargradient = zend_register_internal_class_ex(&linear_ce, cairo_ce_cairogradientpattern, "CairoGradientPattern" TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:285: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/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:778:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"USER",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:980:46: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairolineargradient->create_object = cairo_pattern_object_new; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:983:2: error: too many arguments to function 'zend_register_internal_class_ex' cairo_ce_cairoradialgradient = zend_register_internal_class_ex(&radial_ce, cairo_ce_cairogradientpattern, "CairoGradientPattern" TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:285: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/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:984:46: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairoradialgradient->create_object = cairo_pattern_object_new; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zim_Cairo_availableFonts': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:796:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"FREETYPE",1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:988:76: error: 'ZEND_ACC_FINAL_CLASS' undeclared (first use in this function) cairo_ce_cairopatterntype->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_FINAL_CLASS; ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:805:2: error: too many arguments to function 'add_next_index_string' add_next_index_string(return_value,"USER",1); ^ In file included from /opt/rh/php73/root/usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:32: /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:430:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zif_cairo_status_to_string': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:820:49: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(cairo_status_to_string(status), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:820:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(cairo_status_to_string(status), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zim_Cairo_statusToString': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:838:49: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1 RETURN_STRING(cairo_status_to_string(status), 1); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:838:2: error: 'RETURN_STRING' undeclared (first use in this function) RETURN_STRING(cairo_status_to_string(status), 1); ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:29:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:540:22: warning: 'php_cairo_ft_read_func' declared 'static' but never defined [-Wunused-function] static unsigned long php_cairo_ft_read_func(FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_pattern.c:913:13: warning: 'cairo_pattern_object_destroy' defined but not used [-Wunused-function] static void cairo_pattern_object_destroy(void *object TSRMLS_DC) ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: In function 'zm_startup_cairo': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:1220:65: error: 'ZEND_ACC_FINAL_CLASS' undeclared (first use in this function) cairo_ce_cairo->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_FINAL_CLASS; ^ make: *** [cairo_pattern.lo] Error 1 In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c:34:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo.c: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:540:22: warning: 'php_cairo_ft_read_func' declared 'static' but never defined [-Wunused-function] static unsigned long php_cairo_ft_read_func(FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: In function 'zif_cairo_glyph_path': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2203:63: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 if (zend_hash_get_current_data(glyphs_hash, (void **)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2203:7: error: 'zend_hash_get_current_data' undeclared (first use in this function) if (zend_hash_get_current_data(glyphs_hash, (void **)&ppzval) == FAILURE) { ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2189:6: warning: unused variable 'i' [-Wunused-variable] int i = 0; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2187:30: warning: unused variable 'ppzval' [-Wunused-variable] zval * php_glyphs = NULL, **ppzval; ^ make: *** [cairo.lo] Error 1 /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2975:1: error: unknown type name 'zend_object_value' static zend_object_value cairo_context_object_new(zend_class_entry *ce TSRMLS_DC) ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: In function 'cairo_context_object_new': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2977:2: error: unknown type name 'zend_object_value' zend_object_value retval; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2998:8: error: request for member 'handle' in something not a structure or union retval.handle = zend_objects_store_put(context, NULL, (zend_objects_free_object_storage_t)cairo_context_object_destroy, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2998:57: error: 'zend_objects_free_object_storage_t' undeclared (first use in this function) retval.handle = zend_objects_store_put(context, NULL, (zend_objects_free_object_storage_t)cairo_context_object_destroy, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2998:92: error: expected ')' before 'cairo_context_object_destroy' retval.handle = zend_objects_store_put(context, NULL, (zend_objects_free_object_storage_t)cairo_context_object_destroy, NULL TSRMLS_CC); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2998:92: warning: passing argument 1 of 'zend_objects_store_put' from incompatible pointer type [enabled by default] In file included from /opt/rh/php73/root/usr/include/php/Zend/zend_globals.h:33:0, from /opt/rh/php73/root/usr/include/php/Zend/zend_compile.h:708, from /opt/rh/php73/root/usr/include/php/Zend/zend_modules.h:24, from /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:25, from /opt/rh/php73/root/usr/include/php/main/php.h:37, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_objects_API.h:61:29: note: expected 'struct zend_object *' but argument is of type 'struct cairo_context_object *' ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2998:92: error: too many arguments to function 'zend_objects_store_put' retval.handle = zend_objects_store_put(context, NULL, (zend_objects_free_object_storage_t)cairo_context_object_destroy, NULL TSRMLS_CC); ^ In file included from /opt/rh/php73/root/usr/include/php/Zend/zend_globals.h:33:0, from /opt/rh/php73/root/usr/include/php/Zend/zend_compile.h:708, from /opt/rh/php73/root/usr/include/php/Zend/zend_modules.h:24, from /opt/rh/php73/root/usr/include/php/Zend/zend_API.h:25, from /opt/rh/php73/root/usr/include/php/main/php.h:37, from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:27: /opt/rh/php73/root/usr/include/php/Zend/zend_objects_API.h:61:29: note: declared here ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2999:8: error: request for member 'handlers' in something not a structure or union retval.handlers = &cairo_std_object_handlers; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2979:8: warning: unused variable 'temp' [-Wunused-variable] zval *temp; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: In function 'zm_startup_cairo_context': /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:3020:39: warning: assignment from incompatible pointer type [enabled by default] cairo_ce_cairocontext->create_object = cairo_context_object_new; ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:3024:74: error: 'ZEND_ACC_FINAL_CLASS' undeclared (first use in this function) cairo_ce_cairoantialias->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_FINAL_CLASS; ^ In file included from /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:28:0: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c: At top level: /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/php_cairo.h:540:22: warning: 'php_cairo_ft_read_func' declared 'static' but never defined [-Wunused-function] static unsigned long php_cairo_ft_read_func(FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count); ^ /builddir/build/BUILD/php73-php-pecl-cairo-0.3.2/NTS/cairo_context.c:2934:13: warning: 'cairo_context_object_destroy' defined but not used [-Wunused-function] static void cairo_context_object_destroy(void *object TSRMLS_DC) ^ make: *** [cairo_context.lo] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.lOrZa6 (%build) Bad exit status from /var/tmp/rpm-tmp.lOrZa6 (%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-cairo.spec