Running phase: unpackPhase unpacking source archive /nix/store/4dlm3gpiyynzxz4ambw759sihj0fwmz0-pngnq-1.1.tar.gz source root is pngnq-1.1 setting SOURCE_DATE_EPOCH to timestamp 1308316706 of file "pngnq-1.1/README" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase patching script interpreter paths in ./configure ./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/sh" configure flags: --disable-dependency-tracking --prefix=/nix/store/0vynb19szs3xx7mr9cqhfl1067gsvjj5-pngnq-1.1 checking for a BSD-compatible install... /nix/store/fr9yr63a1267cr0r86w18c77mh3xavcc-coreutils-9.6/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /nix/store/fr9yr63a1267cr0r86w18c77mh3xavcc-coreutils-9.6/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 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... /nix/store/yz6nq9v29l3g990w8zlqsnzlzbicd3b3-gnugrep-3.11/bin/grep checking for egrep... /nix/store/yz6nq9v29l3g990w8zlqsnzlzbicd3b3-gnugrep-3.11/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 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 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 Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash Making all in src make[1]: Entering directory '/build/pngnq-1.1/src' make all-am make[2]: Entering directory '/build/pngnq-1.1/src' gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -g -O2 -c pngnq.c In file included from pngnq.c:98: neuquant32.h:59:22: warning: 'biasvalue' declared 'static' but never defined [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-function-Wunused-function8;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-truncation-Wstringop-truncation8;;] 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 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-nonnull-Wnonnull8;;] 476 | fclose(outfile); | ^~~~~~~~~~~~~~~ In file included from pngnq.c:71: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/stdio.h:184:12: note: in a call to function 'fclose' declared 'nonnull' 184 | extern int fclose (FILE *__stream) __nonnull ((1)); | ^~~~~~ gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -g -O2 -c neuquant32.c gcc -DHAVE_CONFIG_H -I. `libpng-config --I_opts` -Wall --pedantic -std=gnu99 -g -O2 -c rwpng.c rwpng.c: In function 'rwpng_read_image': rwpng.c:134:37: error: passing argument 3 of 'png_get_IHDR' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 134 | png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height, | ^~~~~~~~~~~~~~~~~~~~ | | | ulg * {aka long unsigned int *} In file included from /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/png.h:337, from rwpng.c:35: /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/png.h:2085:45: note: expected 'png_uint_32 *' {aka 'unsigned int *'} but argument is of type 'ulg *' {aka 'long unsigned int *'} 2085 | png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, | ~~~~~~~~~~~~~^~~~~ /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/pngconf.h:286:75: note: in definition of macro 'PNG_FUNCTION' 286 | # define PNG_FUNCTION(type, name, args, attributes) attributes type name args | ^~~~ /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/pngconf.h:310:4: note: in expansion of macro 'PNG_EXPORTA' 310 | PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY) | ^~~~~~~~~~~ /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/png.h:2084:1: note: in expansion of macro 'PNG_EXPORT' 2084 | PNG_EXPORT(143, png_uint_32, png_get_IHDR, (png_const_structrp png_ptr, | ^~~~~~~~~~ rwpng.c:134:59: error: passing argument 4 of 'png_get_IHDR' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 134 | png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height, | ^~~~~~~~~~~~~~~~~~~~~ | | | ulg * {aka long unsigned int *} /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/png.h:2085:65: note: expected 'png_uint_32 *' {aka 'unsigned int *'} but argument is of type 'ulg *' {aka 'long unsigned int *'} 2085 | png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, | ~~~~~~~~~~~~~^~~~~~ /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/pngconf.h:286:75: note: in definition of macro 'PNG_FUNCTION' 286 | # define PNG_FUNCTION(type, name, args, attributes) attributes type name args | ^~~~ /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/pngconf.h:310:4: note: in expansion of macro 'PNG_EXPORTA' 310 | PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY) | ^~~~~~~~~~~ /nix/store/xfsw9d5d1vi8891majlvd5nwix24w5m2-libpng-apng-1.6.46-dev/include/libpng16/png.h:2084:1: note: in expansion of macro 'PNG_EXPORT' 2084 | PNG_EXPORT(143, png_uint_32, png_get_IHDR, (png_const_structrp png_ptr, | ^~~~~~~~~~ rwpng.c:241:13: error: implicit declaration of function 'strncmp' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;] 241 | 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 | #include rwpng.c:241:46: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wbuiltin-declaration-mismatch-Wbuiltin-declaration-mismatch8;;] 241 | if(!strncmp("author",comments[c].key,6)){ | ^ : note: built-in 'strncmp' declared here rwpng.c:84:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 84 | fread(sig, 1, 8, infile); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:277: rwpng.o] Error 1 make[2]: Leaving directory '/build/pngnq-1.1/src' make[1]: *** [Makefile:165: all] Error 2 make[1]: Leaving directory '/build/pngnq-1.1/src' make: *** [Makefile:303: all-recursive] Error 1