D: [iurt_root_command] chroot sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/pngnq-1.1-11.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6WPGI8 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pngnq-1.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pngnq-1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pngnq-1.1 + rm -rf /home/pterjan/rpmbuild/BUILD/pngnq-1.1-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/pngnq-1.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/pngnq-1.0-libpng15.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jzZbB9 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pngnq-1.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /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 + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes ./configure: line 2676: -Wall: command not found checking for libpng-config... 1 checking for style of include used by make... GNU checking for x86_64-mageia-linux-gnu-gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E 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 ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking valgrind/callgrind.h usability... no checking valgrind/callgrind.h presence... no checking for valgrind/callgrind.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for stdlib.h... (cached) yes checking for x86_64-mageia-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking for an ANSI C-conforming const... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for library containing zlibVersion... -lz checking for library containing sqrt... -lm checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for PNG... yes checking for getopt... yes checking for floor... yes checking for memmove... yes checking for memset... yes checking for pow... yes checking for sqrt... yes checking for strchr... yes checking for strrchr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating freegetopt/Makefile config.status: creating src/config.h config.status: executing depfiles commands + /usr/bin/make -O -j48 V=1 VERBOSE=1 Making all in src /usr/bin/make all-am make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c rwpng.c rwpng.c: In function 'rwpng_read_image': rwpng.c:133:37: error: passing argument 3 of 'png_get_IHDR' from incompatible pointer type [-Wincompatible-pointer-types] 133 | png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height, | ^~~~~~~~~~~~~~~~~~~~ | | | ulg * {aka long unsigned int *} In file included from /usr/include/libpng16/png.h:338, from rwpng.c:36: /usr/include/libpng16/png.h:2035:45: note: expected 'png_uint_32 *' {aka 'unsigned int *'} but argument is of type 'ulg *' {aka 'long unsigned int *'} 2035 | png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, | ~~~~~~~~~~~~~^~~~~ /usr/include/libpng16/pngconf.h:287:75: note: in definition of macro 'PNG_FUNCTION' 287 | # define PNG_FUNCTION(type, name, args, attributes) attributes type name args | ^~~~ /usr/include/libpng16/pngconf.h:301:58: note: in expansion of macro 'PNGARG' 301 | PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), PNGARG(args), \ | ^~~~~~ /usr/include/libpng16/pngconf.h:311:4: note: in expansion of macro 'PNG_EXPORTA' 311 | PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY) | ^~~~~~~~~~~ /usr/include/libpng16/png.h:2034:1: note: in expansion of macro 'PNG_EXPORT' 2034 | PNG_EXPORT(143, png_uint_32, png_get_IHDR, (png_const_structrp png_ptr, | ^~~~~~~~~~ rwpng.c:133:59: error: passing argument 4 of 'png_get_IHDR' from incompatible pointer type [-Wincompatible-pointer-types] 133 | png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height, | ^~~~~~~~~~~~~~~~~~~~~ | | | ulg * {aka long unsigned int *} /usr/include/libpng16/png.h:2035:65: note: expected 'png_uint_32 *' {aka 'unsigned int *'} but argument is of type 'ulg *' {aka 'long unsigned int *'} 2035 | png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, | ~~~~~~~~~~~~~^~~~~~ /usr/include/libpng16/pngconf.h:287:75: note: in definition of macro 'PNG_FUNCTION' 287 | # define PNG_FUNCTION(type, name, args, attributes) attributes type name args | ^~~~ /usr/include/libpng16/pngconf.h:301:58: note: in expansion of macro 'PNGARG' 301 | PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), PNGARG(args), \ | ^~~~~~ /usr/include/libpng16/pngconf.h:311:4: note: in expansion of macro 'PNG_EXPORTA' 311 | PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY) | ^~~~~~~~~~~ /usr/include/libpng16/png.h:2034:1: note: in expansion of macro 'PNG_EXPORT' 2034 | PNG_EXPORT(143, png_uint_32, png_get_IHDR, (png_const_structrp png_ptr, | ^~~~~~~~~~ rwpng.c:240:13: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 240 | if(!strncmp("author",comments[c].key,6)){ | ^~~~~~~ rwpng.c:38:1: note: include '' or provide a declaration of 'strncmp' 37 | #include "rwpng.h" /* typedefs, common macros, public prototypes */ +++ |+#include 38 | rwpng.c:240:46: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 240 | if(!strncmp("author",comments[c].key,6)){ | ^ : note: built-in 'strncmp' declared here rwpng.c:83:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 83 | fread(sig, 1, 8, infile); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:277: rwpng.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c colorspace.c In file included from colorspace.c:7: colorspace.h:25:18: warning: 'd00' defined but not used [-Wunused-variable] 25 | static color_XYZ d00 = {0.0, 0.0, 0.0}; | ^~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngcomp.c pngcomp.c: In function 'main': pngcomp.c:118:10: warning: variable 'block_err_image' set but not used [-Wunused-but-set-variable] 118 | float* block_err_image = NULL; | ^~~~~~~~~~~~~~~ pngcomp.c:108:7: warning: variable 'verbose' set but not used [-Wunused-but-set-variable] 108 | int verbose = 0; | ^~~~~~~ In file included from pngcomp.c:59: colorspace.h: At top level: colorspace.h:25:18: warning: 'd00' defined but not used [-Wunused-variable] 25 | static color_XYZ d00 = {0.0, 0.0, 0.0}; | ^~~ colorspace.h:24:18: warning: 'd65' defined but not used [-Wunused-variable] 24 | static color_XYZ d65 = {0.94810,1.0000,1.07305}; | ^~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c neuquant32.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngnq.c In file included from pngnq.c:98: neuquant32.h:59:22: warning: 'biasvalue' declared 'static' but never defined [-Wunused-function] 59 | static inline double biasvalue(unsigned int temp); | ^~~~~~~~~ pngnq.c: In function 'createoutname': pngnq.c:274:7: warning: '__builtin_strncpy' output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 274 | strncpy(newdir+dir_len,DIR_SEPARATOR_STR,1); | ^ pngnq.c: In function 'pngnq': pngnq.c:476:7: warning: argument 1 null where non-null expected [-Wnonnull] 476 | fclose(outfile); | ^~~~~~~~~~~~~~~ In file included from pngnq.c:71: /usr/include/stdio.h:184:12: note: in a call to function 'fclose' declared 'nonnull' 184 | extern int fclose (FILE *__stream) __nonnull ((1)); | ^~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pngnq-1.1/src' make[1]: *** [Makefile:165: all] Error 2 make: *** [Makefile:303: all-recursive] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.jzZbB9 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.jzZbB9 (%build) I: [iurt_root_command] ERROR: chroot