Mock Version: 5.9 Mock Version: 5.9 Mock Version: 5.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/httptunnel.spec'], chrootPath='/var/lib/mock/f42-build-3532637-46326/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '9dd6620c4ef041c68ab9e1d1484bcc4d', '-D', '/var/lib/mock/f42-build-3532637-46326/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/httptunnel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1737072000 Wrote: /builddir/build/SRPMS/httptunnel-3.3-38.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/httptunnel.spec'], chrootPath='/var/lib/mock/f42-build-3532637-46326/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '2212f3437f7046edb686e56db682b22a', '-D', '/var/lib/mock/f42-build-3532637-46326/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/httptunnel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1737072000 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.XYwZ37 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HO3lCl + umask 022 + cd /builddir/build/BUILD/httptunnel-3.3-build + cd /builddir/build/BUILD/httptunnel-3.3-build + rm -rf httptunnel-3.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/httptunnel_3.3+dfsg.orig.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd httptunnel-3.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/httptunnel-configure-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/httptunnel-headers-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + recode AUTHORS iso-8859-15 + iconv -f iso-8859-15 -t utf-8 + mv -f AUTHORS_ AUTHORS + recode ChangeLog iso-8859-15 + iconv -f iso-8859-15 -t utf-8 + mv -f ChangeLog_ ChangeLog + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KLVwAb + umask 022 + cd /builddir/build/BUILD/httptunnel-3.3-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd httptunnel-3.3 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' x '!=' x ']' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --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 creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... missing checking for mawk... no checking for gawk... gawk checking for gcc... gcc checking whether the C compiler (gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ) works... yes checking whether the C compiler (gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for ranlib... ranlib checking for gethostent... yes checking for setsockopt... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for fcntl.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for sys/poll.h... yes checking for working const... yes checking for inline... inline checking for size_t... yes checking for socklen_t... yes checking whether INADDR_NONE is defined... yes checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking for 8-bit clean memcmp... yes checking return type of signal handlers... int checking for vprintf... yes checking for socket... yes checking for strdup... yes checking for strerror... yes checking for daemon... yes checking for vsyslog... yes checking for poll... yes checking for select... yes checking for endprotoent... yes checking for vsnprintf... yes checking for syslog... yes updating cache ./config.cache creating ./config.status creating Makefile creating port/Makefile creating port/sys/Makefile creating config.h + make -j32 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3' Making all in port make[2]: Entering directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3/port' Making all in sys make[3]: Entering directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3/port/sys' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3/port/sys' make[3]: Entering directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3/port' gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c poll.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c daemon.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c vsyslog.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c endprotoent.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c getopt.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c getopt1.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c vsnprintf.c rm -f libport.a ar cru libport.a poll.o daemon.o vsyslog.o endprotoent.o getopt.o getopt1.o vsnprintf.o ranlib libport.a make[3]: Leaving directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3/port' make[2]: Leaving directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3/port' make[2]: Entering directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3' gcc -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c htc.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c common.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c tunnel.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c http.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c base64.c gcc -DHAVE_CONFIG_H -I. -I. -I. -Iport -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c hts.c In file included from http.c:15: common.h: In function ‘read_all’: common.h:81:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 81 | log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:83:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 83 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h: In function ‘write_all’: common.h:113:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 113 | log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:115:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 115 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h: In function ‘handle_input’: common.h:162:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 162 | log_debug ("%s closed", type); | ^~~~~~~~~ ~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c: In function ‘http_method’: http.c:45:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=] 45 | sprintf (str, "%d", length); | ~^ ~~~~~~ | | | | int ssize_t {aka long int} | %ld In file included from hts.c:18: common.h: In function ‘read_all’: common.h:81:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 81 | log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:83:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 83 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h: In function ‘write_all’: common.h:113:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 113 | log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:115:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 115 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h: In function ‘handle_input’: common.h:162:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 162 | log_debug ("%s closed", type); | ^~~~~~~~~ ~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c: In function ‘parse_header’: http.c:329:11: warning: pointer targets in assignment from ‘unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] 329 | h->name = data; | ^ http.c:336:12: warning: pointer targets in assignment from ‘unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] 336 | h->value = data; | ^ http.c:350:3: error: too many arguments to function ‘log_verbose’; expected 0, have 3 350 | log_verbose ("parse_header: %s:%s", h->name, h->value); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ In file included from tunnel.c:21: common.h: In function ‘read_all’: common.h:81:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 81 | log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:83:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 83 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ In file included from htc.c:19: common.h: In function ‘read_all’: common.h:81:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 81 | log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ http.c: In function ‘http_parse_response’: http.c:506:35: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 506 | response->major_version = atoi (data); | ^~~~ | | | unsigned char * common.h:83:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 83 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h: In function ‘write_all’: common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:113:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 113 | log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:115:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 115 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h: In function ‘write_all’: common.h:113:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 113 | log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:115:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 115 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h: In function ‘handle_input’: common.h:162:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 162 | log_debug ("%s closed", type); | ^~~~~~~~~ ~~~~~~~~~~~ In file included from /usr/include/features.h:524, from /usr/include/time.h:25, from http.c:9: /usr/include/stdlib.h:481:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:507:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 507 | log_verbose ("http_parse_response: major version = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h: In function ‘handle_input’: common.h:162:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 162 | log_debug ("%s closed", type); | ^~~~~~~~~ ~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:519:35: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 519 | response->minor_version = atoi (data); | ^~~~ | | | unsigned char * /usr/include/stdlib.h:481:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ http.c:520:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 520 | log_verbose ("http_parse_response: minor version = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ http.c:532:33: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 532 | response->status_code = atoi (data); | ^~~~ | | | unsigned char * /usr/include/stdlib.h:481:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ http.c:533:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 533 | log_verbose ("http_parse_response: status code = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ http.c:545:28: warning: pointer targets in assignment from ‘unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] 545 | response->status_message = data; | ^ tunnel.c: In function ‘tunnel_in_setsockopts’: http.c:546:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 546 | log_verbose ("http_parse_response: status message = \"%s\"", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c:156:11: error: too many arguments to function ‘log_debug’; expected 0, have 2 156 | log_debug ("tunnel_in_setsockopts: non-fatal SO_RCVLOWAT error: %s", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:164:19: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 164 | &n); | ^~ | | | int * In file included from /usr/include/netinet/in.h:23, from /usr/include/netdb.h:27, from port/netdb_.h:10, from tunnel.c:11: /usr/include/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 257 | socklen_t *__restrict __optlen) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ tunnel.c:165:7: error: too many arguments to function ‘log_debug’; expected 0, have 2 165 | log_debug ("tunnel_out_setsockopts: SO_RCVLOWAT: %d", i); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hts.c: In function ‘main’: common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:321:5: error: too many arguments to function ‘log_debug’; expected 0, have 2 321 | log_debug ("tunnel_setopt strict_content_length error: %s", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:326:5: error: too many arguments to function ‘log_debug’; expected 0, have 2 326 | log_debug ("tunnel_setopt keep_alive error: %s", strerror (errno)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c: In function ‘http_parse_request’: hts.c:330:5: error: too many arguments to function ‘log_debug’; expected 0, have 2 330 | log_debug ("tunnel_setopt max_connection_age error: %s", strerror (errno)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:654:44: warning: pointer targets in passing argument 1 of ‘http_string_to_method’ differ in signedness [-Wpointer-sign] 654 | request->method = http_string_to_method (data, n - 1); | ^~~~ | | | unsigned char * http.c:157:36: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 157 | http_string_to_method (const char *method, size_t n) | ~~~~~~~~~~~~^~~~~~ tunnel.c: In function ‘tunnel_out_setsockopts’: tunnel.c:189:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 189 | log_debug ("tunnel_out_setsockopts: " | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:663:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 663 | log_verbose ("http_parse_request: method = \"%s\"", data); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c:198:21: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 198 | &n); | ^~ | | | int * common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ hts.c:361:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 361 | log_debug ("waiting for tunnel connection"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:674:16: warning: pointer targets in assignment from ‘unsigned char *’ to ‘const char *’ differ in signedness [-Wpointer-sign] 674 | request->uri = data; | ^ hts.c:366:11: error: too many arguments to function ‘log_debug’; expected 0, have 3 366 | log_debug ("open_device (\"%s\") = %d", arg.device, fd); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ /usr/include/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 257 | socklen_t *__restrict __optlen) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ http.c:676:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 676 | log_verbose ("http_parse_request: uri = \"%s\"", request->uri); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ In file included from base64.c:11: common.h: In function ‘read_all’: tunnel.c:199:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 199 | log_debug ("tunnel_out_setsockopts: non-fatal SO_SNDLOWAT: %d", i); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h:81:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 81 | log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ hts.c:384:11: error: too many arguments to function ‘log_debug’; expected 0, have 1 384 | log_debug ("using stdin as fd"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:217:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 217 | log_debug ("tunnel_out_setsockopts: non-fatal SO_LINGER error: %s", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:701:34: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 701 | request->major_version = atoi (data); | ^~~~ | | | unsigned char * tunnel.c:225:17: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 225 | &n); | ^~ | | | int * common.h:83:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 83 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ /usr/include/stdlib.h:481:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ /usr/include/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 257 | socklen_t *__restrict __optlen) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:226:5: error: too many arguments to function ‘log_debug’; expected 0, have 3 226 | log_debug ("tunnel_out_setsockopts: SO_LINGER: onoff=%d linger=%d", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:413:11: error: too many arguments to function ‘log_debug’; expected 0, have 4 413 | log_debug ("do_connect (\"%s:%d\") = %d", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:245:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 245 | log_debug ("tunnel_out_setsockopts: " | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ http.c:702:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 702 | log_verbose ("http_parse_request: major version = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c:254:21: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 254 | &n); | ^~ | | | int * common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ /usr/include/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 257 | socklen_t *__restrict __optlen) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ tunnel.c:255:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 255 | log_debug ("tunnel_out_setsockopts: non-fatal TCP_NODELAY: %d", i); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h: In function ‘write_all’: common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h:113:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 113 | log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ http.c:714:34: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign] 714 | request->minor_version = atoi (data); | ^~~~ | | | unsigned char * common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ /usr/include/stdlib.h:481:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ http.c:715:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 715 | log_verbose ("http_parse_request: minor version = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c:295:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 295 | log_debug ("tunnel_out_setsockopts: non-fatal SO_KEEPALIVE error: %s", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:115:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 115 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:303:17: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign] 303 | &n); | ^~ | | | int * /usr/include/sys/socket.h:257:46: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 257 | socklen_t *__restrict __optlen) __THROW; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ tunnel.c:304:5: error: too many arguments to function ‘log_debug’; expected 0, have 2 304 | log_debug ("tunnel_out_setsockopts: SO_KEEPALIVE: %d", i); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:452:11: error: too many arguments to function ‘log_annoying’; expected 0, have 1 452 | log_annoying ("poll () ..."); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ http.c: In function ‘http_write_request’: hts.c:454:11: error: too many arguments to function ‘log_annoying’; expected 0, have 2 454 | log_annoying ("... = %d", n); | ^~~~~~~~~~~~ ~~~~~~~~~~ tunnel.c: In function ‘tunnel_out_disconnect’: common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ http.c:760:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 760 | log_verbose ("http_write_request: %s", str); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c:331:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 331 | log_debug ("tunnel_out_disconnect: output disconnected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h: In function ‘handle_input’: common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:462:15: error: too many arguments to function ‘log_verbose’; expected 0, have 1 462 | log_verbose ("poll() timed out"); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ common.h:162:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 162 | log_debug ("%s closed", type); | ^~~~~~~~~ ~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:468:11: error: too many arguments to function ‘log_annoying’; expected 0, have 4 468 | log_annoying ("revents[0] = %x, revents[1] = %x, POLLIN = %x", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c: In function ‘tunnel_in_disconnect’: tunnel.c:343:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 343 | log_debug ("tunnel_in_disconnect: input disconnected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c: In function ‘main’: htc.c:447:7: error: too many arguments to function ‘log_debug’; expected 0, have 3 447 | log_debug ("server_socket (%d) = %d", arg.forward_port, s); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c: In function ‘tunnel_out_connect’: common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:353:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 353 | log_debug ("tunnel_out_connect: already connected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ hts.c:479:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 479 | log_debug ("closing tunnel"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ base64.c: In function ‘encode_base64’: base64.c:44:7: warning: pointer targets in assignment from ‘char *’ to ‘const unsigned char *’ differ in signedness [-Wpointer-sign] 44 | end = (char *)data + length - 3; | ^ hts.c:488:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 488 | log_debug ("destroying tunnel"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:468:11: error: too many arguments to function ‘log_debug’; expected 0, have 3 468 | log_debug ("open_device (\"%s\") = %d", arg.device, fd); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:488:11: error: too many arguments to function ‘log_debug’; expected 0, have 2 488 | log_debug ("waiting for connection on port %d", arg.forward_port); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:490:11: error: too many arguments to function ‘log_debug’; expected 0, have 3 490 | log_debug ("wait_for_connection_on_socket (%d) = %d", s, fd); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:394:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 394 | log_debug ("tunnel_out_connect: output connected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:508:11: error: too many arguments to function ‘log_debug’; expected 0, have 1 508 | log_debug ("using stdin as fd"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c: In function ‘tunnel_in_connect’: htc.c:519:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 519 | log_debug ("creating a new tunnel"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c:405:3: error: too many arguments to function ‘log_verbose’; expected 0, have 1 405 | log_verbose ("tunnel_in_connect()"); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ htc.c:531:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 531 | log_debug ("tunnel_setopt strict_content_length error: %s", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:536:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 536 | log_debug ("tunnel_setopt keep_alive error: %s", strerror (errno)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:540:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 540 | log_debug ("tunnel_setopt max_connection_age error: %s", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ base64.c:91:9: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign] 91 | *code = buf - n; | ^ tunnel.c:476:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 476 | log_debug ("tunnel_in_connect: input connected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:624:11: error: too many arguments to function ‘log_annoying’; expected 0, have 1 624 | log_annoying ("poll () ..."); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c: In function ‘tunnel_write_request’: tunnel.c:511:9: error: too many arguments to function ‘log_debug’; expected 0, have 2 511 | log_debug ("tunnel_write_request: connection > %d seconds old", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:626:11: error: too many arguments to function ‘log_annoying’; expected 0, have 2 626 | log_annoying ("... = %d", n); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ htc.c:634:15: error: too many arguments to function ‘log_verbose’; expected 0, have 1 634 | log_verbose ("poll() timed out"); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c:518:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 518 | log_debug ("tunnel_write_request: write padding (%d bytes)", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:657:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 657 | log_debug ("destroying tunnel"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:547:9: error: too many arguments to function ‘log_debug’; expected 0, have 1 547 | log_debug ("tunnel_write_request: closing old connection"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ htc.c:671:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 671 | log_debug ("closing server socket"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:623:9: error: too many arguments to function ‘log_verbose’; expected 0, have 3 623 | log_verbose ("tunnel_write_request: %s (%d)", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c:626:9: error: too many arguments to function ‘log_debug’; expected 0, have 3 626 | log_debug ("tunnel_write_request: %s (%d)", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:632:7: error: too many arguments to function ‘log_debug’; expected 0, have 2 632 | log_debug ("tunnel_write_request: %s", REQ_TO_STRING (request)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:635:3: error: too many arguments to function ‘log_annoying’; expected 0, have 2 635 | log_annoying ("tunnel_write_data: out_total_raw = %u", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ hts.c:286:5: warning: ignoring return value of ‘daemon’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 286 | daemon (0, 1); | ^~~~~~~~~~~~~ tunnel.c: In function ‘tunnel_connect’: tunnel.c:662:3: error: too many arguments to function ‘log_verbose’; expected 0, have 1 662 | log_verbose ("tunnel_connect()"); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c: In function ‘tunnel_write’: tunnel.c:727:3: error: too many arguments to function ‘log_verbose’; expected 0, have 2 727 | log_verbose ("tunnel_write: out_total_data = %u", tunnel->out_total_data); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ htc.c:411:5: warning: ignoring return value of ‘daemon’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 411 | daemon (0, 1); | ^~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c: In function ‘tunnel_close’: tunnel.c:755:7: error: too many arguments to function ‘log_debug’; expected 0, have 2 755 | log_debug ("tunnel_close: write padding (%d bytes)", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:760:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 760 | log_debug ("tunnel_close: write TUNNEL_CLOSE request"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:765:3: error: too many arguments to function ‘log_debug’; expected 0, have 1 765 | log_debug ("tunnel_close: reading trailing data from input ..."); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ In file included from common.c:20: common.h: In function ‘read_all’: common.h:81:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 81 | log_annoying ("read (%d, %p, %d) ...", fd, rbuf + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ tunnel.c:775:15: error: too many arguments to function ‘log_annoying’; expected 0, have 5 775 | log_annoying ("read (%d, %p, %d) = %d", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:782:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 782 | log_debug ("tunnel_close: ... error: %s", strerror (errno)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h:83:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 83 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ tunnel.c:784:13: error: too many arguments to function ‘log_debug’; expected 0, have 1 784 | log_debug ("tunnel_close: ... done (tunnel closed)"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:787:9: error: too many arguments to function ‘log_debug’; expected 0, have 1 787 | log_debug ("POLLHUP"); | ^~~~~~~~~ ~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:789:9: error: too many arguments to function ‘log_debug’; expected 0, have 1 789 | log_debug ("POLLERR"); | ^~~~~~~~~ ~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:791:9: error: too many arguments to function ‘log_debug’; expected 0, have 1 791 | log_debug ("POLLNVAL"); | ^~~~~~~~~ ~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h: In function ‘write_all’: common.h:113:7: error: too many arguments to function ‘log_annoying’; expected 0, have 4 113 | log_annoying ("write (%d, %p, %d) ...", fd, wdata + n, len - n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.h:115:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 115 | log_annoying ("... = %d", m); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c: In function ‘tunnel_read_request’: tunnel.c:814:3: error: too many arguments to function ‘log_annoying’; expected 0, have 4 814 | log_annoying ("read (%d, %p, %d) ...", tunnel->in_fd, &req, 1); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:816:3: error: too many arguments to function ‘log_annoying’; expected 0, have 2 816 | log_annoying ("... = %d", n); | ^~~~~~~~~~~~ ~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:826:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 826 | log_debug ("tunnel_read_request: connection closed by peer"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.h: In function ‘handle_input’: common.h:162:13: error: too many arguments to function ‘log_debug’; expected 0, have 2 162 | log_debug ("%s closed", type); | ^~~~~~~~~ ~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:838:3: error: too many arguments to function ‘log_annoying’; expected 0, have 3 838 | log_annoying ("request = 0x%x (%s)", req, REQ_TO_STRING (req)); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:842:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 842 | log_annoying ("tunnel_read_request: in_total_raw = %u", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:844:7: error: too many arguments to function ‘log_debug’; expected 0, have 2 844 | log_debug ("tunnel_read_request: %s", REQ_TO_STRING (req)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:861:3: error: too many arguments to function ‘log_annoying’; expected 0, have 2 861 | log_annoying ("length = %d", len); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:875:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 875 | log_annoying ("tunnel_read_request: in_total_raw = %u", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:880:5: error: too many arguments to function ‘log_verbose’; expected 0, have 3 880 | log_verbose ("tunnel_read_request: %s (%d)", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c:883:5: error: too many arguments to function ‘log_debug’; expected 0, have 3 883 | log_debug ("tunnel_read_request: %s (%d)", | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ common.c: In function ‘set_address’: common.c:173:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 173 | log_annoying ("set_address: gethostbyname (\"%s\")", host); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.c:175:7: error: too many arguments to function ‘log_annoying’; expected 0, have 2 175 | log_annoying ("set_address: ent = %p", ent); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.c:181:7: error: too many arguments to function ‘log_annoying’; expected 0, have 5 181 | log_annoying ("set_address: host = %d.%d.%d.%d", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c: In function ‘tunnel_read’: tunnel.c:934:48: warning: pointer targets in passing argument 3 of ‘tunnel_read_request’ differ in signedness [-Wpointer-sign] 934 | if (tunnel_read_request (tunnel, &req, tunnel->buf, &len) <= 0) | ~~~~~~^~~~~ | | | char * tunnel.c:808:37: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 808 | unsigned char *buf, size_t *length) | ~~~~~~~~~~~~~~~^~~ tunnel.c:936:1: error: too many arguments to function ‘log_annoying’; expected 0, have 1 936 | log_annoying ("tunnel_read_request returned <= 0, returning -1"); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:950:7: error: too many arguments to function ‘log_verbose’; expected 0, have 2 950 | log_verbose ("tunnel_read: in_total_data = %u", tunnel->in_total_data); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ common.c: In function ‘handle_device_input’: common.c:272:7: error: too many arguments to function ‘log_annoying’; expected 0, have 5 272 | log_annoying ("tunnel_write (%p, %p, %d) = %d", tunnel, buf, n, m); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ common.c: In function ‘handle_tunnel_input’: tunnel.c: In function ‘tunnel_pollin_fd’: common.c:302:1: error: too many arguments to function ‘log_annoying’; expected 0, have 2 302 | log_annoying ("handle_tunnel_input: tunnel_read() = %d\n", n); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c:997:9: error: too many arguments to function ‘log_verbose’; expected 0, have 2 997 | log_verbose ("tunnel_pollin_fd: in_fd = -1; returning server_socket = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ tunnel.c:1000:9: error: too many arguments to function ‘log_verbose’; expected 0, have 2 1000 | log_verbose ("tunnel_pollin_fd: out_fd = -1; returning server_socket = %d", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ common.c:318:7: error: too many arguments to function ‘log_annoying’; expected 0, have 5 318 | log_annoying ("write_all (%d, %p, %d) = %d", fd ? fd : 1, buf, n, m); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:54:20: note: declared here 54 | static inline void log_annoying () {} | ^~~~~~~~~~~~ tunnel.c: In function ‘tunnel_accept’: tunnel.c:1085:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 1085 | log_debug ("tunnel_accept: tunnel already established"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:1115:68: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] 1115 | s = accept (tunnel->server_socket, (struct sockaddr *)&addr, &len); | ^~~~ | | | int * /usr/include/sys/socket.h:307:42: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘int *’ 307 | socklen_t *__restrict __addr_len); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ tunnel.c:1158:15: error: too many arguments to function ‘log_debug’; expected 0, have 1 1158 | log_debug ("tunnel_accept: input connected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:1177:1: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 1177 | "HTTP/1.1 200 OK\r\n" | ^~~~~~~~~~~~~~~~~~~~~ ...... 1191 | tunnel->content_length + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | size_t {aka long unsigned int} tunnel.c:1183:19: note: format string is defined here 1183 | "Content-Length: %d\r\n" | ~^ | | | int | %ld tunnel.c:1209:19: error: too many arguments to function ‘log_debug’; expected 0, have 1 1209 | log_debug ("tunnel_accept: output connected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:1222:11: error: too many arguments to function ‘log_debug’; expected 0, have 1 1222 | log_debug ("tunnel_accept: closing connection"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ tunnel.c:1237:7: error: too many arguments to function ‘log_debug’; expected 0, have 1 1237 | log_debug ("tunnel_accept: input disconnected"); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:20: note: declared here 52 | static inline void log_debug () {} | ^~~~~~~~~ make[2]: *** [Makefile:194: base64.o] Error 1 tunnel.c: In function ‘tunnel_new_client’: make[2]: Leaving directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3' tunnel.c:1310:3: error: too many arguments to function ‘log_verbose’; expected 0, have 6 1310 | log_verbose ("tunnel_new_client (\"%s\", %d, \"%s\", %d, %d)", | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:53:20: note: declared here 53 | static inline void log_verbose () {} | ^~~~~~~~~~~ make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:194: hts.o] Error 1 make[2]: *** [Makefile:194: htc.o] Error 1 make[2]: *** [Makefile:194: http.o] Error 1 make[2]: *** [Makefile:194: common.o] Error 1 make[2]: *** [Makefile:194: tunnel.o] Error 1 make[1]: *** [Makefile:271: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/httptunnel-3.3-build/httptunnel-3.3' make: *** [Makefile:433: all-recursive-am] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.KLVwAb (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.KLVwAb (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 2212f3437f7046edb686e56db682b22a -D /var/lib/mock/f42-build-3532637-46326/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/httptunnel.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 2212f3437f7046edb686e56db682b22a -D /var/lib/mock/f42-build-3532637-46326/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.yo_o8821:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/httptunnel.spec'