D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/ziproxy-3.3.2-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.N2f0ht Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.fqCdnU + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build + rm -rf ziproxy-3.3.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ziproxy-3.3.2.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd ziproxy-3.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ziproxy-mga_conf.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/03_image_gccwarn.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ziproxy-3.3.1-mga-multiple-defs.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + cp /home/pterjan/rpmbuild/SOURCES/ziproxy.service ziproxy.service + cp /home/pterjan/rpmbuild/SOURCES/ziproxy.sysconfig ziproxy.sysconfig + cp /home/pterjan/rpmbuild/SOURCES/ziproxy.logrotate ziproxy.logrotate + perl -pi -e 's|/lib\b|/lib64|g' config/acinclude.m4 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.uEu5Tp + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build + 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-all -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-all -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-all -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-all -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 + cd ziproxy-3.3.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export '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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + 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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export '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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + 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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'RPM_OPT_FLAGS=-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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + RPM_OPT_FLAGS='-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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + autoreconf -fi autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from... configure.in:4: the top level configure.in:6: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.in:6: You should use the 'AC_CONFIG_HEADERS' macro instead. aclocal.m4:707: AM_CONFIG_HEADER is expanded from... configure.in:6: the top level configure.in:10: warning: The macro 'AC_LANG_C' is obsolete. configure.in:10: You should run autoupdate. ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from... configure.in:10: the top level configure.in:85: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.in:85: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.in:85: the top level configure.in:94: warning: The macro 'AC_HEADER_TIME' is obsolete. configure.in:94: You should run autoupdate. ./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from... configure.in:94: the top level configure.in:101: warning: The macro 'AC_FUNC_SETVBUF_REVERSED' is obsolete. Remove it and all references to SETVBUF_REVERSED. ./lib/autoconf/functions.m4:1785: AC_FUNC_SETVBUF_REVERSED is expanded from... configure.in:101: the top level configure.in:102: warning: The macro 'AC_TYPE_SIGNAL' is obsolete. configure.in:102: You should run autoupdate. ./lib/autoconf/types.m4:805: AC_TYPE_SIGNAL is expanded from... configure.in:102: the top level configure.in:111: warning: AC_OUTPUT should be used without arguments. configure.in:111: You should run autoupdate. autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:4: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation man/Makefile.am:5: warning: wildcard ziproxy.??.1: non-POSIX variable name man/Makefile.am:5: (probably a GNU make extension) man/Makefile.am:5: warning: wildcard ziproxylogtool.??.1: non-POSIX variable name man/Makefile.am:5: (probably a GNU make extension) automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' + 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-all -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-all -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-all -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-all -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 --with-jasper=/usr --with-sasl2=/usr --with-cfgfile=/etc/ziproxy/ziproxy.conf checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none ./configure: line 4830: ETR_SOCKET_NSL: command not found checking for gzopen in -lz... yes checking for pow in -lm... yes checking for library containing DGifSlurp... -lgif checking for jpeg_start_decompress in -ljpeg... yes checking for png_sig_cmp in -lpng... yes checking for pthread_create in -lpthread... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for jas_init in -ljasper... yes checking for jasper/jasper.h... yes checking for sasl_set_path in -lsasl2... yes checking for sasl/sasl.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for sys/wait.h that is POSIX.1 compatible... yes checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for assert.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for getopt.h... yes checking for gif_lib.h... yes checking for grp.h... yes checking for jpeglib.h... yes checking for math.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for png.h... yes checking for pthread.h... yes checking for pwd.h... yes checking for resolv.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdio.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/wait.h... (cached) yes checking for time.h... yes checking for unistd.h... (cached) yes checking for zlib.h... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking size of int... 4 checking size of long int... 8 checking size of long long int... 8 checking return type of signal handlers... void checking for strftime... yes checking for vprintf... yes checking for gettimeofday... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for strndup... yes checking for strstr... yes checking for strtol... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/tools/Makefile config.status: creating man/Makefile config.status: creating src/config.h config.status: executing depfiles commands + /usr/bin/make -O -j16 V=1 VERBOSE=1 Making all in . make[1]: Nothing to be done for 'all-am'. Making all in src /usr/bin/make all-recursive Making all in tools make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src/tools' gcc -DHAVE_CONFIG_H -I. -I../../src -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o ziproxylogtool.o ziproxylogtool.c ziproxylogtool.c: In function 'stats_general_loop': ziproxylogtool.c:418:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 418 | fgets (log_line, LINE_BUFFER - 1, goptions->in_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ziproxylogtool.c: In function 'stats_max_hosts': ziproxylogtool.c:453:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 453 | fgets (log_line, LINE_BUFFER - 1, goptions->in_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ziproxylogtool.c: In function 'stats_filter_mode': ziproxylogtool.c:476:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 476 | fgets (log_line, LINE_BUFFER - 1, goptions->in_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src/tools' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src/tools' gcc -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -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 -o ziproxylogtool ziproxylogtool.o -lpthread -lpng -ljpeg -lgif -lm -lz -ljasper -lsasl2 make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src/tools' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o fstring.o fstring.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o netd.o netd.c netd.c: In function 'main': netd.c:349:16: error: too many arguments to function 'proxy_server'; expected 0, have 2 349 | return proxy_server(&(command_options.addr_low), &(command_options.addr_high)); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ netd.c:87:9: note: declared here 87 | int proxy_server (); | ^~~~~~~~~~~~ netd.c: At top level: netd.c:353:5: error: conflicting types for 'proxy_server'; have 'int(struct in_addr *, struct in_addr *)' 353 | int proxy_server(struct in_addr *addr_low, struct in_addr *addr_high) | ^~~~~~~~~~~~ netd.c:87:9: note: previous declaration of 'proxy_server' with type 'int(void)' 87 | int proxy_server (); | ^~~~~~~~~~~~ make[3]: *** [Makefile:486: netd.o] Error 1 make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: *** Waiting for unfinished jobs.... make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o cdetect.o cdetect.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o urltables.o urltables.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o image.o image.c image.c: In function 'bitmap2jpg': image.c:1258:37: error: assignment to 'boolean (*)(struct jpeg_compress_struct *)' {aka 'int (*)(struct jpeg_compress_struct *)'} from incompatible pointer type 'boolean (*)(void)' {aka 'int (*)(void)'} [-Wincompatible-pointer-types] 1258 | memdest.empty_output_buffer = jpeg_dest_empty_output_buffer; | ^ image.c:1219:16: note: 'jpeg_dest_empty_output_buffer' declared here 1219 | static boolean jpeg_dest_empty_output_buffer() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.c: In function 'compress_to_jpg': image.c:1552:34: error: assignment to 'boolean (*)(struct jpeg_compress_struct *)' {aka 'int (*)(struct jpeg_compress_struct *)'} from incompatible pointer type 'boolean (*)(void)' {aka 'int (*)(void)'} [-Wincompatible-pointer-types] 1552 | dest.empty_output_buffer = jpeg_dest_empty_output_buffer; | ^ image.c:1219:16: note: 'jpeg_dest_empty_output_buffer' declared here 1219 | static boolean jpeg_dest_empty_output_buffer() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [Makefile:486: image.o] Error 1 make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o text.o text.c text.c: In function 'gunzip': text.c:229:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 229 | fread(*outbuf, *outlen, 1, file_unpack); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o ziproxy.o ziproxy.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o preemptdns.o preemptdns.c preemptdns.c: In function 'preempt_dns_from_html': preemptdns.c:201:25: warning: ignoring return value of 'daemon' declared with attribute 'warn_unused_result' [-Wunused-result] 201 | daemon (0, 0); | ^~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o txtfiletools.o txtfiletools.c txtfiletools.c: In function 'load_textfile_to_memory': txtfiletools.c:88:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 88 | fread (my_buff, my_filesize, 1, my_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth.o auth.c auth.c: In function 'auth_sasl_init': auth.c:163:59: warning: passing argument 2 of 'sasl_set_path' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 163 | if (sasl_set_path (SASL_PATH_TYPE_CONFIG, local_AuthSASLConfPath) != SASL_OK) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from auth.c:35: /usr/include/sasl/sasl.h:677:54: note: expected 'char *' but argument is of type 'const char *' 677 | LIBSASL_API int sasl_set_path (int path_type, char * path); | ~~~~~~~^~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o gzpipe.o gzpipe.c gzpipe.c: In function 'gzip_memory_stream': gzpipe.c:350:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 350 | strm.next_in = source; | ^ gzpipe.c: In function 'gzip_stream_stream': gzpipe.c:101:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 101 | fscanf (source, "%x", &pending_chunk_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gzpipe.c:114:33: warning: ignoring return value of 'feof' declared with attribute 'warn_unused_result' [-Wunused-result] 114 | feof (source); | ^~~~~~~~~~~~~ gzpipe.c: In function 'gunzip_stream_stream': gzpipe.c:233:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 233 | fscanf (source, "%x", &pending_chunk_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gzpipe.c:246:33: warning: ignoring return value of 'feof' declared with attribute 'warn_unused_result' [-Wunused-result] 246 | feof (source); | ^~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o strtables.o strtables.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o log.o log.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o qparser.o qparser.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o cfgfile.o cfgfile.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o htmlopt.o htmlopt.c make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' gcc -DHAVE_CONFIG_H -I. -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-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o http.o http.c http.c: In function 'send_error': http.c:721:41: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 721 | fread (txtfilebuf, 1, txtfilesize, txtfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c: In function 'read_content': http.c:1273:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 1273 | fscanf (from, "%x", &pending_chunk_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c:1286:33: warning: ignoring return value of 'feof' declared with attribute 'warn_unused_result' [-Wunused-result] 1286 | feof (from); | ^~~~~~~~~~~ http.c: In function 'get_response_headers': http.c:1392:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1392 | fgets(line, 5, sockrfp); | ^~~~~~~~~~~~~~~~~~~~~~~ http.c:1414:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1414 | fgets(line+n, sizeof(line), sockrfp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from http.h:53, from http.c:59: In function 'fgets', inlined from 'get_response_headers' at http.c:1414:2: /usr/include/bits/stdio2.h:313:12: warning: '__fgets_alias' writing 16384 bytes into a region of size 16380 overflows the destination [-Wstringop-overflow=] 313 | return __fgets_alias (__s, __n, __stream); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c: In function 'get_response_headers': http.c:84:13: note: at offset [4, 16383] into destination object 'line' of size 16384 84 | static char line[MAX_LINELEN]; | ^~~~ In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28: /usr/include/bits/stdio2-decl.h:96:14: note: in a call to function '__fgets_alias' declared with attribute 'access (write_only, 1, 2)' 96 | extern char *__REDIRECT (__fgets_alias, | ^~~~~~~~~~ In function 'fgets', inlined from 'get_response_headers' at http.c:1414:2: /usr/include/bits/stdio2.h:318:10: warning: '__fgets_chk' writing 16384 bytes into a region of size 16380 overflows the destination [-Wstringop-overflow=] 318 | return __fgets_chk (__s, __sz, __n, __stream); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http.c: In function 'get_response_headers': http.c:84:13: note: at offset [4, 16383] into destination object 'line' of size 16384 84 | static char line[MAX_LINELEN]; | ^~~~ In file included from /usr/include/stdio.h:954: /usr/include/bits/stdio2-decl.h:106:14: note: in a call to function '__fgets_chk' declared with attribute 'access (write_only, 1, 3)' 106 | extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, | ^~~~~~~~~~~ In function 'fgets', inlined from 'get_response_headers' at http.c:1414:2: /usr/include/bits/stdio2.h:316:12: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer [-Wattribute-warning] 316 | return __fgets_chk_warn (__s, __sz, __n, __stream); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ziproxy-3.3.2-build/ziproxy-3.3.2/src' make[2]: *** [Makefile:502: all-recursive] Error 1 make[1]: *** [Makefile:350: all] Error 2 make: *** [Makefile:345: all-recursive] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.uEu5Tp (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.uEu5Tp (%build) I: [iurt_root_command] ERROR: chroot