Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/php-pecl-expect.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-php73-armhfp-05e5196b7b82384f4c8ac4ed72b0682bc04a2b03/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-expect.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 sh: line 0: fg: no job control sh: line 0: fg: no job control Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/php-pecl-expect-0.3.3-2.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-expect.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-php73-armhfp-05e5196b7b82384f4c8ac4ed72b0682bc04a2b03/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-expect.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.GR8Wsy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf php-pecl-expect-0.3.3 + /usr/bin/mkdir -p php-pecl-expect-0.3.3 + cd php-pecl-expect-0.3.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/expect-0.3.3.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv expect-0.3.3 NTS + sed -e 's/role="test"/role="src"/' -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml + cd NTS + : Find the libexpect name + for lib in '/usr/lib/libexpect5*so' + ver=/usr/lib/libexpect5.45 + ver=expect5.45 + '[' -n ver ']' + : use expect5.45 + sed -e /PHP_ADD_LIBRARY_WITH_PATH/s/expect/expect5.45/ -i config.m4 + : Sanity check, really often broken ++ sed -n '/#define PHP_EXPECT_VERSION/{s/.* "//;s/".*$//;p}' php_expect.h + extver=0.3.3 + test x0.3.3 '!=' x0.3.3 + cd .. + cp -pr NTS ZTS + cat + tee 40-expect.ini ; Enable expect extension module extension=expect.so ; Configuration ;expect.timeout = 10 ;expect.loguser = 1 ;expect.logfile = '' ;expect.match_max = 5000 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.i4PPm8 + umask 022 + cd /builddir/build/BUILD + cd php-pecl-expect-0.3.3 + cd NTS + /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/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/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=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-expect --with-tcldir=/usr/lib --with-libdir=lib --with-php-config=/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... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib checking for PHP extension directory... /usr/lib/php/modules checking for PHP installed headers prefix... /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 expect support... yes, shared checking specify path to Tcl needed by expect... yes, shared checking for tcl version... 8.5 in /usr 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/php-pecl-expect-0.3.3/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/include -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/main -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -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/php-pecl-expect-0.3.3/NTS/expect.c -o expect.lo /bin/sh /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/libtool --mode=compile cc -I. -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/include -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/main -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -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/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c -o expect_fopen_wrapper.lo libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/include -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/main -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -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/php-pecl-expect-0.3.3/NTS/expect.c -fPIC -DPIC -o .libs/expect.o libtool: compile: cc -I. -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -DPHP_ATOM_INC -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/include -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/main -I/builddir/build/BUILD/php-pecl-expect-0.3.3/NTS -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -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/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c -fPIC -DPIC -o .libs/expect_fopen_wrapper.o In file included from /usr/include/php/Zend/zend.h:335:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /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))) { ^ In file included from /usr/include/php/Zend/zend.h:335:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:21: /usr/include/php/Zend/zend_operators.h: In function 'fast_long_increment_function': /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))) { ^ /usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /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))) { ^ /usr/include/php/Zend/zend_operators.h: In function 'fast_long_decrement_function': /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))) { ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c: In function 'php_expect_stream_open': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:37:3: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL (z_pid); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c: In function 'OnSetExpectTimeout': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:39:23: error: incompatible types when assigning to type 'zval' from type 'struct zval *' stream->wrapperdata = z_pid; ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:95:3: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] exp_timeout = atoi(new_value); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c: In function 'php_expect_stream_close': In file included from /usr/include/features.h:375:0, from /usr/include/stdlib.h:24, from /usr/include/php/main/../main/php_config.h:2613, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:43, from /usr/include/php/Zend/zend_types.h:25, from /usr/include/php/Zend/zend.h:27, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'struct zend_string *' __NTH (atoi (const char *__nptr)) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:48:16: error: incompatible types when initializing type 'struct zval *' using type 'zval' zval* z_pid = stream->wrapperdata; ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c: In function 'OnSetExpectMatchMax': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:51:2: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [enabled by default] zval_ptr_dtor (&z_pid); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:107:3: warning: passing argument 1 of 'atoi' from incompatible pointer type [enabled by default] exp_match_max = atoi(new_value); ^ In file included from /usr/include/php/Zend/zend.h:35:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:21: /usr/include/php/Zend/zend_variables.h:79:15: note: expected 'struct zval *' but argument is of type 'struct zval **' ZEND_API void zval_ptr_dtor(zval *zval_ptr); ^ In file included from /usr/include/features.h:375:0, from /usr/include/stdlib.h:24, from /usr/include/php/main/../main/php_config.h:2613, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:43, from /usr/include/php/Zend/zend_types.h:25, from /usr/include/php/Zend/zend.h:27, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/stdlib.h:278:1: note: expected 'const char *' but argument is of type 'struct zend_string *' __NTH (atoi (const char *__nptr)) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:52:22: error: incompatible types when assigning to type 'zval' from type 'void *' stream->wrapperdata = NULL; ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c: At top level: /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:59:2: warning: initialization from incompatible pointer type [enabled by default] php_expect_stream_open, ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect_fopen_wrapper.c:59:2: warning: (near initialization for 'php_expect_wrapper_ops.stream_opener') [enabled by default] /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c: In function 'OnSetExpectLogUser': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:120:3: warning: passing argument 2 of 'strncasecmp' from incompatible pointer type [enabled by default] if (strncasecmp("on", new_value, sizeof("on")) == 0 ^ In file included from /usr/include/php/main/../main/php_config.h:2629:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:43, from /usr/include/php/Zend/zend_types.h:25, from /usr/include/php/Zend/zend.h:27, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'struct zend_string *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:121:4: warning: passing argument 2 of 'strncasecmp' from incompatible pointer type [enabled by default] || strncasecmp("true", new_value, sizeof("true")) == 0 ^ In file included from /usr/include/php/main/../main/php_config.h:2629:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:43, from /usr/include/php/Zend/zend_types.h:25, from /usr/include/php/Zend/zend.h:27, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'struct zend_string *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:122:4: warning: passing argument 2 of 'strncasecmp' from incompatible pointer type [enabled by default] || strncasecmp("yes", new_value, sizeof("yes")) == 0 ^ In file included from /usr/include/php/main/../main/php_config.h:2629:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:43, from /usr/include/php/Zend/zend_types.h:25, from /usr/include/php/Zend/zend.h:27, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'struct zend_string *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:123:4: warning: passing argument 2 of 'strncasecmp' from incompatible pointer type [enabled by default] || strncasecmp("1", new_value, sizeof("1")) == 0) { ^ In file included from /usr/include/php/main/../main/php_config.h:2629:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend_portability.h:43, from /usr/include/php/Zend/zend_types.h:25, from /usr/include/php/Zend/zend.h:27, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/string.h:536:12: note: expected 'const char *' but argument is of type 'struct zend_string *' extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c: In function 'OnSetExpectLogFile': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:142:6: error: 'new_value_length' undeclared (first use in this function) if (new_value_length > 0) { ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:142:6: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:143:3: warning: passing argument 1 of '_php_stream_open_wrapper_ex' from incompatible pointer type [enabled by default] php_stream* stream = php_stream_open_wrapper (new_value, "a", 0, NULL); ^ In file included from /usr/include/php/main/php.h:460:0, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/main/php_streams.h:566:20: note: expected 'const char *' but argument is of type 'struct zend_string *' PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c: In function 'zif_expect_popen': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:255:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL (z_pid); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:257:22: error: incompatible types when assigning to type 'zval' from type 'struct zval *' stream->wrapperdata = z_pid; ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c: In function 'zif_expect_expectl': /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:281:2: warning: passing argument 1 of 'zend_fetch_resource2_ex' from incompatible pointer type [enabled by default] php_stream_from_zval (stream, &z_stream); ^ In file included from /usr/include/php/Zend/zend_API.h:26:0, from /usr/include/php/main/php.h:37, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_list.h:64: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/php-pecl-expect-0.3.3/NTS/expect.c:283:6: error: wrong type argument to unary exclamation mark if (!stream->wrapperdata) { ^ make: *** [expect_fopen_wrapper.lo] Error 1 make: *** Waiting for unfinished jobs.... /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:298:74: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 while (zend_hash_get_current_data (Z_ARRVAL_P(z_cases), (void **)&z_case) == SUCCESS) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:298:9: error: 'zend_hash_get_current_data' undeclared (first use in this function) while (zend_hash_get_current_data (Z_ARRVAL_P(z_cases), (void **)&z_case) == SUCCESS) ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:301:63: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3 zend_hash_get_current_key(Z_ARRVAL_P(z_cases), NULL, &key, 0); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:301:3: error: 'zend_hash_get_current_key' undeclared (first use in this function) zend_hash_get_current_key(Z_ARRVAL_P(z_cases), NULL, &key, 0); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:303:3: warning: implicit declaration of function 'Z_TYPE_PP' [-Wimplicit-function-declaration] if (Z_TYPE_PP(z_case) != IS_ARRAY) { ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:313:3: warning: implicit declaration of function 'Z_ARRVAL_PP' [-Wimplicit-function-declaration] if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 0, (void **)&z_pattern) != SUCCESS) { ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:313:3: warning: passing argument 1 of 'zend_hash_index_find' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:313:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 0, (void **)&z_pattern) != SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:323:3: warning: implicit declaration of function 'Z_STRVAL_PP' [-Wimplicit-function-declaration] ecases_ptr->pattern = Z_STRVAL_PP(z_pattern); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:323:23: warning: assignment makes pointer from integer without a cast [enabled by default] ecases_ptr->pattern = Z_STRVAL_PP(z_pattern); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:326:3: warning: passing argument 1 of 'zend_hash_index_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 1, (void **)&z_value) != SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:326:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 1, (void **)&z_value) != SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:334:3: warning: passing argument 1 of 'zend_hash_index_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 2, (void **)&z_exp_type) == SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:334:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 2, (void **)&z_exp_type) == SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:340:4: warning: implicit declaration of function 'Z_LVAL_PP' [-Wimplicit-function-declaration] if (Z_LVAL_PP(z_exp_type) != exp_glob && Z_LVAL_PP(z_exp_type) != exp_exact && Z_LVAL_PP(z_exp_type) != exp_regexp) { ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:367:4: error: too many arguments to function 'add_index_string' add_index_string(z_match, 0, tmp, 1); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_API.h:420:14: note: declared here ZEND_API int add_index_string(zval *arg, zend_ulong idx, const char *str); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:380:7: error: too many arguments to function 'add_next_index_string' add_next_index_string(z_match, sub_match, 1); ^ In file included from /usr/include/php/main/php.h:37:0, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /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/php-pecl-expect-0.3.3/NTS/expect.c:388:3: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find (Z_ARRVAL_P(z_cases), key, (void **)&z_case) == SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:389:4: warning: passing argument 1 of 'zend_hash_index_find' makes pointer from integer without a cast [enabled by default] if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 1, (void **)&z_value) == SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: expected 'const struct HashTable *' but argument is of type 'int' ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:389:4: error: too many arguments to function 'zend_hash_index_find' if (zend_hash_index_find(Z_ARRVAL_PP(z_case), 1, (void **)&z_value) == SUCCESS) { ^ In file included from /usr/include/php/Zend/zend.h:32:0, from /usr/include/php/main/php.h:33, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/php_expect.h:28, from /builddir/build/BUILD/php-pecl-expect-0.3.3/NTS/expect.c:21: /usr/include/php/Zend/zend_hash.h:168:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h); ^ RPM build errors: make: *** [expect.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.i4PPm8 (%build) Bad exit status from /var/tmp/rpm-tmp.i4PPm8 (%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-expect.spec