D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/pngtools-0.4-9.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.XF3FkF + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pngtools-0.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pngtools_0_4.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd pngtools-0.4 + rm -rf /home/pterjan/rpmbuild/BUILD/pngtools-0.4-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/pngtools-0.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/pngtools-0.4-mga-man-section.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.AJ8imD + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pngtools-0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -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=2 -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=2 -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=2 -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 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --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' + 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 CPPFLAGS=-I/usr/include/libpng12 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /home/pterjan/rpmbuild/BUILD/pngtools-0.4/config/missing: Unknown `--run' option Try `/home/pterjan/rpmbuild/BUILD/pngtools-0.4/config/missing --help' for more information configure: WARNING: `missing' script is too old or missing checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 for style of include used by make... GNU checking dependency style of gcc... none checking for a BSD-compatible install... /usr/bin/install -c checking for atan in -lm... yes checking for png_libpng_ver in -lpng... no 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 stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for vprintf... yes checking for _doprnt... no configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands + /usr/bin/make -O -j16 V=1 VERBOSE=1 'LIBS=-lm -lpng12' gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngchunkdesc.c pngchunkdesc.c: In function 'main': pngchunkdesc.c:38:9: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 38 | s[strlen (s) - 1] = '\0'; | ^~~~~~ pngchunkdesc.c:23:1: note: include '' or provide a declaration of 'strlen' 22 | #include +++ |+#include 23 | pngchunkdesc.c:38:9: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 38 | s[strlen (s) - 1] = '\0'; | ^~~~~~ pngchunkdesc.c:38:9: note: include '' or provide a declaration of 'strlen' pngchunkdesc.c:41:15: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration] 41 | isupper (s[0]) ? meanings[0][0] : meanings[0][1], | ^~~~~~~ pngchunkdesc.c:23:1: note: include '' or provide a declaration of 'isupper' 22 | #include +++ |+#include 23 | make: *** [Makefile:269: pngchunkdesc.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c inflateraster.c inflateraster.c: In function 'inflateraster': inflateraster.c:36:27: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 36 | scalefactor = (float) pow(2.0, (double) targetbitdepth) / | ^~~ inflateraster.c:3:1: note: include '' or provide a declaration of 'pow' 2 | #include +++ |+#include 3 | inflateraster.c:36:27: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 36 | scalefactor = (float) pow(2.0, (double) targetbitdepth) / | ^~~ inflateraster.c:36:27: note: include '' or provide a declaration of 'pow' make: *** [Makefile:269: inflateraster.o] Error 1 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngcp.c pngcp.c: In function 'main': pngcp.c:46:28: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 46 | targetbitdepth = atoi(optarg); | ^~~~ pngcp.c:68:74: warning: comparison between pointer and integer 68 | if((input = readimage(argv[i], &width, &height, &bitdepth, &channels)) == -1){ | ^~ pngcp.c:70:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 70 | exit(42); | ^~~~ pngcp.c:5:1: note: include '' or provide a declaration of 'exit' 4 | #include "pngcp.h" +++ |+#include 5 | pngcp.c:70:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 70 | exit(42); | ^~~~ pngcp.c:70:5: note: include '' or provide a declaration of 'exit' pngcp.c:76:57: warning: comparison between pointer and integer 76 | channels, targetchannels)) == -1){ | ^~ pngcp.c:78:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 78 | exit(42); | ^~~~ pngcp.c:78:5: note: include '' or provide a declaration of 'exit' pngcp.c:84:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 84 | exit(42); | ^~~~ pngcp.c:84:5: note: include '' or provide a declaration of 'exit' pngcp.c: In function 'usage': pngcp.c:92:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 92 | exit(1); | ^~~~ pngcp.c:92:3: note: include '' or provide a declaration of 'exit' make: *** [Makefile:269: pngcp.o] Error 1 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngchunks.c pngchunks.c: In function 'main': pngchunks.c:55:7: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 55 | exit (1); | ^~~~ pngchunks.c:11:1: note: include '' or provide a declaration of 'exit' 10 | #include +++ |+#include 11 | pngchunks.c:55:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 55 | exit (1); | ^~~~ pngchunks.c:55:7: note: include '' or provide a declaration of 'exit' pngchunks.c:62:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 62 | exit(1); | ^~~~ pngchunks.c:62:7: note: include '' or provide a declaration of 'exit' pngchunks.c:68:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 68 | exit (1); | ^~~~ pngchunks.c:68:7: note: include '' or provide a declaration of 'exit' pngchunks.c:76:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 76 | exit(1); | ^~~~ pngchunks.c:76:5: note: include '' or provide a declaration of 'exit' pngchunks.c:86:14: error: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration] 86 | ntohl(head->len), | ^~~~~ pngchunks.c:94:15: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration] 94 | isupper (head->type.c[0]) ? meanings[0][0] : meanings[0][1], | ^~~~~~~ pngchunks.c:11:1: note: include '' or provide a declaration of 'isupper' 10 | #include +++ |+#include 11 | pngchunks.c:168:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 168 | exit(1); | ^~~~ pngchunks.c:168:7: note: include '' or provide a declaration of 'exit' pngchunks.c: In function 'usage': pngchunks.c:176:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 176 | exit(1); | ^~~~ pngchunks.c:176:3: note: include '' or provide a declaration of 'exit' make: *** [Makefile:269: pngchunks.o] Error 1 gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngwrite.c gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pngread.c pngread.c: In function 'readimage': pngread.c:28:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 28 | fread(sig, 1, 8, image); | ^~~~~~~~~~~~~~~~~~~~~~~ gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pngtools\" -DVERSION=\"0.2\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_PNG_H=1 -DHAVE_VPRINTF=1 -I. -I/usr/include/libpng12 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c pnginfo.c pnginfo.c: In function 'pnginfo_displayfile': pnginfo.c:187:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 187 | printf (" Image Width: %d Image Length: %d\n", width, height); | ~^ ~~~~~ | | | | int long unsigned int | %ld pnginfo.c:187:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 187 | printf (" Image Width: %d Image Length: %d\n", width, height); | ~^ ~~~~~~ | | | | int long unsigned int | %ld pnginfo.c:281:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'png_uint_32' {aka 'long unsigned int'} [-Wformat=] 281 | printf (" Resolution: %d, %d ", | ~^ | | | int | %ld 282 | info->x_pixels_per_unit, info->y_pixels_per_unit); | ~~~~~~~~~~~~~~~~~~~~~~~ | | | png_uint_32 {aka long unsigned int} pnginfo.c:281:31: warning: format '%d' expects argument of type 'int', but argument 3 has type 'png_uint_32' {aka 'long unsigned int'} [-Wformat=] 281 | printf (" Resolution: %d, %d ", | ~^ | | | int | %ld 282 | info->x_pixels_per_unit, info->y_pixels_per_unit); | ~~~~~~~~~~~~~~~~~~~~~~~ | | | png_uint_32 {aka long unsigned int} pnginfo.c:405:33: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 405 | printf ("* %d ", runlen); | ~^ ~~~~~~ | | | | int long unsigned int | %ld pnginfo.c:154:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 154 | fread (sig, 1, 8, image); | ^~~~~~~~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.AJ8imD (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.AJ8imD (%build) I: [iurt_root_command] ERROR: chroot