D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/php-uploadprogress-1.0.3.1-11.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bjaY1l + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf uploadprogress-1.0.3.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/uploadprogress-1.0.3.1.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd uploadprogress-1.0.3.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + '[' '../package*.xml' '!=' / ']' + mv ../package.xml ../package2.xml . + find . -type f + xargs chmod 644 + find . -type f + xargs file + grep CRLF + cut -d: -f1 + xargs perl -p -i -e 's/\r//' -i used with no filenames on the command line, reading from STDIN. + find . -type f + xargs perl -p -i -e 's/\r//' + xargs file + grep text + cut -d: -f1 + perl -p -i -e 's|/lib\b|/lib64|g' config.m4 + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.RL8AQY + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd uploadprogress-1.0.3.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 Forcing run-time library search path definition in configure to prevent libtool from adding rpath for standard directories (configure was generated with libtool without support for autodetection) + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libdir=lib64 --with-uploadprogress=shared,/usr configure: WARNING: unrecognized options: --with-uploadprogress 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 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... lib64 checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-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/lib64/php/extensions checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 1.0.2 (ok) checking for gawk... gawk checking whether to enable uploadprogress functions... yes, shared checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all 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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h configure: WARNING: unrecognized options: --with-uploadprogress + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 /bin/sh /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/libtool --mode=compile cc -I. -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/include -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/main -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1 -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 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c -o uploadprogress.lo mkdir .libs cc -I. -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/include -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/main -I/home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1 -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 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c -fPIC -DPIC -o .libs/uploadprogress.o /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c: In function 'uploadprogress_php_rfc1867_file': /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:160:31: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function) int options = ENFORCE_SAFE_MODE; ^~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:160:31: note: each undeclared identifier is reported only once for each function it appears in /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:216:82: warning: format '%d' expects argument of type 'int', but argument 6 has type 'time_t {aka long int}' [-Wformat=] fprintf(F, "upload_id=%s\nfieldname=%s\nfilename=%s\ntime_start=%d\ntime_last=%d\nspeed_average=%d\nspeed_last=%d\nbytes_uploaded=%d\nbytes_total=%d\nfiles_uploaded=%d\nest_sec=%d\n", ~^ %ld /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:218:17: progress->time_start, progress->time_last, ~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:216:96: warning: format '%d' expects argument of type 'int', but argument 7 has type 'time_t {aka long int}' [-Wformat=] fprintf(F, "upload_id=%s\nfieldname=%s\nfilename=%s\ntime_start=%d\ntime_last=%d\nspeed_average=%d\nspeed_last=%d\nbytes_uploaded=%d\nbytes_total=%d\nfiles_uploaded=%d\nest_sec=%d\n", ~^ %ld /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:218:39: progress->time_start, progress->time_last, ~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:216:148: warning: format '%d' expects argument of type 'int', but argument 10 has type 'long unsigned int' [-Wformat=] fprintf(F, "upload_id=%s\nfieldname=%s\nfilename=%s\ntime_start=%d\ntime_last=%d\nspeed_average=%d\nspeed_last=%d\nbytes_uploaded=%d\nbytes_total=%d\nfiles_uploaded=%d\nest_sec=%d\n", ~^ %ld /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:220:17: progress->bytes_uploaded, progress->bytes_total, ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:216:164: warning: format '%d' expects argument of type 'int', but argument 11 has type 'long unsigned int' [-Wformat=] fprintf(F, "upload_id=%s\nfieldname=%s\nfilename=%s\ntime_start=%d\ntime_last=%d\nspeed_average=%d\nspeed_last=%d\nbytes_uploaded=%d\nbytes_total=%d\nfiles_uploaded=%d\nest_sec=%d\n", ~^ %ld /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:220:43: progress->bytes_uploaded, progress->bytes_total, ~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c: In function 'uploadprogress_file_php_get_info': /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:420:57: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string( return_value, k, v, 1 ); ^ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:420:17: error: 'add_assoc_string' undeclared (first use in this function); did you mean 'add_assoc_string_ex'? add_assoc_string( return_value, k, v, 1 ); ^~~~~~~~~~~~~~~~ add_assoc_string_ex /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c: In function 'uploadprogress_file_php_get_contents': /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:437:19: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function) int options = ENFORCE_SAFE_MODE; ^~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:458:71: error: macro "php_stream_copy_to_mem" passed 4 arguments, but takes just 3 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { ^ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:458:20: error: 'php_stream_copy_to_mem' undeclared (first use in this function); did you mean '_php_stream_copy_to_mem'? if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { ^~~~~~~~~~~~~~~~~~~~~~ _php_stream_copy_to_mem /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:466:44: error: macro "RETVAL_STRINGL" passed 3 arguments, but takes just 2 RETVAL_STRINGL(contents, len, 0); ^ /home/pterjan/rpmbuild/BUILD/uploadprogress-1.0.3.1/uploadprogress.c:466:13: error: 'RETVAL_STRINGL' undeclared (first use in this function) RETVAL_STRINGL(contents, len, 0); ^~~~~~~~~~~~~~ make: *** [Makefile:198: uploadprogress.lo] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RL8AQY (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RL8AQY (%build) I: [iurt_root_command] ERROR: chroot