Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libnids.spec'], chrootPath='/var/lib/mock/f42-build-56916651-6547091/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=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv._4kav5ax:/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._4kav5ax:/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', 'd516a8e12a004154a59b702c94c4a840', '-D', '/var/lib/mock/f42-build-56916651-6547091/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv._4kav5ax:/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 x86_64 --nodeps /builddir/build/SPECS/libnids.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1721260800 Wrote: /builddir/build/SRPMS/libnids-1.24-31.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libnids.spec'], chrootPath='/var/lib/mock/f42-build-56916651-6547091/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=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv._4kav5ax:/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._4kav5ax:/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', 'f0eee3abf70d4ee08778e318477a8b18', '-D', '/var/lib/mock/f42-build-56916651-6547091/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv._4kav5ax:/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 x86_64 --nodeps /builddir/build/SPECS/libnids.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1721260800 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.kowO1v + umask 022 + cd /builddir/build/BUILD/libnids-1.24-build + test -d /builddir/build/BUILD/libnids-1.24-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/libnids-1.24-build + /usr/bin/rm -rf /builddir/build/BUILD/libnids-1.24-build + /usr/bin/mkdir -p /builddir/build/BUILD/libnids-1.24-build + /usr/bin/mkdir -p /builddir/build/BUILD/libnids-1.24-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YEM7Db + umask 022 + cd /builddir/build/BUILD/libnids-1.24-build + /usr/lib/rpm/redhat/gpgverify --keyring=/builddir/build/SOURCES/gpgkey-67E00C8AE6DEE3486468F6C6E20D29536F5C037F.gpg --signature=/builddir/build/SOURCES/libnids-1.24.tar.gz.asc --data=/builddir/build/SOURCES/libnids-1.24.tar.gz gpgv: Signature made Sun Mar 14 10:52:10 2010 UTC gpgv: using DSA key E20D29536F5C037F gpgv: Good signature from "Rafal Wojtczuk " + cd /builddir/build/BUILD/libnids-1.24-build + rm -rf libnids-1.24 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libnids-1.24.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libnids-1.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libnids-1.24-inline.patch):' Patch #0 (libnids-1.24-inline.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .inline --fuzz=0 patching file src/checksum.c Patch #1 (libnids-configure-c99.patch): + echo 'Patch #1 (libnids-configure-c99.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.a0F5CQ + umask 022 + cd /builddir/build/BUILD/libnids-1.24-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -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 libnids-1.24 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -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 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2025-02-01 21:58:36.576605176 +0000 +++ ./configure 2025-02-01 21:58:36.590605221 +0000 @@ -3687,7 +3687,7 @@ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -char (*f) () = $ac_func; +__attribute__ ((used)) char (*f) () = $ac_func; #endif #ifdef __cplusplus } + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-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 --enable-shared checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for x86_64-redhat-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking whether byte ordering is bigendian... no checking for gettimeofday... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... no checking for libpcap... yes checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for GLIB... yes checking for GTHREAD... yes checking for g_thread_init in -lgthread-2.0... yes checking for libnet... yes checking whether to build shared library... yes checking the name of struct icmp... struct icmphdr checking if tcp states are defined... yes checking for bsd-ish struct udphdr... yes checking libnet version... looks new configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating samples/Makefile config.status: creating src/config.h + /usr/bin/make -O -j48 V=1 VERBOSE=1 cd src ; /usr/bin/make static cd src ; /usr/bin/make shared make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c scan.c -o scan_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread scan.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' scan.c: In function ‘detect_scan’: scan.c:124:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 124 | nids_params.syslog(NIDS_WARN_SCAN, 0, 0, this_host); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~ In file included from scan.c:15: nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ make[1]: *** [Makefile:53: scan_pic.o] Error 1 scan.c: In function ‘detect_scan’: scan.c:124:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 124 | nids_params.syslog(NIDS_WARN_SCAN, 0, 0, this_host); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~ In file included from scan.c:15: nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ make[1]: *** [Makefile:37: scan.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread ip_fragment.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' ip_fragment.c: In function ‘ip_find’: ip_fragment.c:304:15: warning: variable ‘qplast’ set but not used [-Wunused-but-set-variable] 304 | struct ipq *qplast; | ^~~~~~ ip_fragment.c: In function ‘ip_create’: ip_fragment.c:427:22: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Wincompatible-pointer-types] 427 | qp->timer.function = ip_expire; /* expire function */ | ^ ip_fragment.c:364:1: note: ‘ip_expire’ declared here 364 | ip_expire(unsigned long arg) | ^~~~~~~~~ ip_fragment.c: In function ‘ip_glue’: ip_fragment.c:486:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 486 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERSIZED, qp->iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ In file included from ip_fragment.c:22: nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c:507:7: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 507 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_INVLIST, qp->iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c: In function ‘ip_defrag’: ip_fragment.c:589:24: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Wincompatible-pointer-types] 589 | qp->timer.function = ip_expire; /* expire function */ | ^ ip_fragment.c:364:1: note: ‘ip_expire’ declared here 364 | ip_expire(unsigned long arg) | ^~~~~~~~~ ip_fragment.c:602:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 602 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERSIZED, iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c:633:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 633 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERLAP, iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c:646:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 646 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERLAP, iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c: In function ‘ip_defrag_stub’: ip_fragment.c:718:5: error: too many arguments to function ‘timer_head->function’; expected 0, have 1 718 | timer_head->function(timer_head->data); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~ ip_fragment.c:46:10: note: declared here 46 | void (*function)(); | ^~~~~~~~ make[1]: *** [Makefile:37: ip_fragment.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c ip_fragment.c -o ip_fragment_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' ip_fragment.c: In function ‘ip_find’: ip_fragment.c:304:15: warning: variable ‘qplast’ set but not used [-Wunused-but-set-variable] 304 | struct ipq *qplast; | ^~~~~~ ip_fragment.c: In function ‘ip_create’: ip_fragment.c:427:22: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Wincompatible-pointer-types] 427 | qp->timer.function = ip_expire; /* expire function */ | ^ ip_fragment.c:364:1: note: ‘ip_expire’ declared here 364 | ip_expire(unsigned long arg) | ^~~~~~~~~ ip_fragment.c: In function ‘ip_glue’: ip_fragment.c:486:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 486 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERSIZED, qp->iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ In file included from ip_fragment.c:22: nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c:507:7: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 507 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_INVLIST, qp->iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c: In function ‘ip_defrag’: ip_fragment.c:589:24: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Wincompatible-pointer-types] 589 | qp->timer.function = ip_expire; /* expire function */ | ^ ip_fragment.c:364:1: note: ‘ip_expire’ declared here 364 | ip_expire(unsigned long arg) | ^~~~~~~~~ ip_fragment.c:602:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 602 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERSIZED, iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c:633:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 633 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERLAP, iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c:646:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 646 | nids_params.syslog(NIDS_WARN_IP, NIDS_WARN_IP_OVERLAP, iph, 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ ip_fragment.c: In function ‘ip_defrag_stub’: ip_fragment.c:718:5: error: too many arguments to function ‘timer_head->function’; expected 0, have 1 718 | timer_head->function(timer_head->data); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~ ip_fragment.c:46:10: note: declared here 46 | void (*function)(); | ^~~~~~~~ make[1]: *** [Makefile:45: ip_fragment_pic.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c tcp.c -o tcp_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' tcp.c: In function ‘tcp_check_timeouts’: tcp.c:182:9: error: too many arguments to function ‘i->item’; expected 0, have 2 182 | (i->item) (to->a_tcp, &i->data); | ~~^~~~~~~ ~~~~~~~~~ In file included from tcp.c:21: util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘add_new_tcp’: tcp.c:274:9: error: too many arguments to function ‘i->item’; expected 0, have 2 274 | (i->item) (tcp_oldest, &i->data); | ~~^~~~~~~ ~~~~~~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c:277:7: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 277 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_TOOMUCH, ugly_iphdr, this_tcphdr); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ In file included from tcp.c:22: nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c: In function ‘ride_lurkers’: tcp.c:355:9: error: too many arguments to function ‘i->item’; expected 0, have 2 355 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘prune_queue’: tcp.c:603:3: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 603 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_BIGQUEUE, ugly_iphdr, this_tcphdr); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c: In function ‘tcp_exit’: tcp.c:692:13: error: too many arguments to function ‘j->item’; expected 0, have 2 692 | (j->item)(t_tcp, &j->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘process_tcp’: tcp.c:721:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 721 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:729:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 729 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:735:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 735 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:744:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 744 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:811:11: error: too many arguments to function ‘i->item’; expected 0, have 2 811 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c:842:15: error: too many arguments to function ‘i->item’; expected 0, have 2 842 | (i->item) (a_tcp, &data); | ~~^~~~~~~ ~~~~~ util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ tcp.c:889:11: error: too many arguments to function ‘i->item’; expected 0, have 2 889 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘process_icmp’: tcp.c:1033:7: error: too many arguments to function ‘i->item’; expected 0, have 2 1033 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ make[1]: *** [Makefile:55: tcp_pic.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c util.c -o util_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread util.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread ip_options.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c ip_options.c -o ip_options_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread allpromisc.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c allpromisc.c -o allpromisc_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c hash.c -o hash_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' hash.c: In function ‘getrnd’: hash.c:18:7: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | read (fd, xor, 12); | ^~~~~~~~~~~~~~~~~~ hash.c:19:7: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 19 | read (fd, perm, 12); | ^~~~~~~~~~~~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread hash.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' hash.c: In function ‘getrnd’: hash.c:18:7: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | read (fd, xor, 12); | ^~~~~~~~~~~~~~~~~~ hash.c:19:7: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 19 | read (fd, perm, 12); | ^~~~~~~~~~~~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread tcp.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' tcp.c: In function ‘tcp_check_timeouts’: tcp.c:182:9: error: too many arguments to function ‘i->item’; expected 0, have 2 182 | (i->item) (to->a_tcp, &i->data); | ~~^~~~~~~ ~~~~~~~~~ In file included from tcp.c:21: util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘add_new_tcp’: tcp.c:274:9: error: too many arguments to function ‘i->item’; expected 0, have 2 274 | (i->item) (tcp_oldest, &i->data); | ~~^~~~~~~ ~~~~~~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c:277:7: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 277 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_TOOMUCH, ugly_iphdr, this_tcphdr); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ In file included from tcp.c:22: nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c: In function ‘ride_lurkers’: tcp.c:355:9: error: too many arguments to function ‘i->item’; expected 0, have 2 355 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘prune_queue’: tcp.c:603:3: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 603 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_BIGQUEUE, ugly_iphdr, this_tcphdr); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c: In function ‘tcp_exit’: tcp.c:692:13: error: too many arguments to function ‘j->item’; expected 0, have 2 692 | (j->item)(t_tcp, &j->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘process_tcp’: tcp.c:721:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 721 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:729:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 729 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:735:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 735 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:744:5: error: too many arguments to function ‘nids_params.syslog’; expected 0, have 4 744 | nids_params.syslog(NIDS_WARN_TCP, NIDS_WARN_TCP_HDR, this_iphdr, | ^~~~~~~~~~~ ~~~~~~~~~~~~~ nids.h:119:10: note: declared here 119 | void (*syslog) (); | ^~~~~~ tcp.c:811:11: error: too many arguments to function ‘i->item’; expected 0, have 2 811 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c:842:15: error: too many arguments to function ‘i->item’; expected 0, have 2 842 | (i->item) (a_tcp, &data); | ~~^~~~~~~ ~~~~~ util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ tcp.c:889:11: error: too many arguments to function ‘i->item’; expected 0, have 2 889 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ tcp.c: In function ‘process_icmp’: tcp.c:1033:7: error: too many arguments to function ‘i->item’; expected 0, have 2 1033 | (i->item) (a_tcp, &i->data); | ~~^~~~~~~ ~~~~~ util.h:18:10: note: declared here 18 | void (*item)(); | ^~~~ make[1]: *** [Makefile:37: tcp.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread killtcp.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c checksum.c -o checksum_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' In function ‘my_tcp_check’, inlined from ‘my_tcp_check’ at checksum.c:273:1: checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c: In function ‘my_tcp_check’: checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ In function ‘my_tcp_check’, inlined from ‘my_tcp_check’ at checksum.c:273:1: checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c: In function ‘my_tcp_check’: checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ checksum.c: In function ‘my_udp_check’: checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c libnids.c -o libnids_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' libnids.c:97:5: error: initialization of ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int, int, struct ip *, void *)’ [-Wincompatible-pointer-types] 97 | nids_syslog, /* syslog() */ | ^~~~~~~~~~~ libnids.c:97:5: note: (near initialization for ‘nids_params.syslog’) libnids.c:42:13: note: ‘nids_syslog’ declared here 42 | static void nids_syslog(int, int, struct ip *, void *); | ^~~~~~~~~~~ libnids.c:103:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct ip *, int)’ [-Wincompatible-pointer-types] 103 | nids_ip_filter, /* ip_filter() */ | ^~~~~~~~~~~~~~ libnids.c:103:5: note: (near initialization for ‘nids_params.ip_filter’) libnids.c:43:12: note: ‘nids_ip_filter’ declared here 43 | static int nids_ip_filter(struct ip *, int); | ^~~~~~~~~~~~~~ libnids.c: In function ‘call_ip_frag_procs’: libnids.c:199:11: error: too many arguments to function ‘i->item’; expected 0, have 2 199 | (i->item) (data, caplen); | ~~^~~~~~~ ~~~~ In file included from libnids.c:29: util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ libnids.c: In function ‘gen_ip_frag_proc’: libnids.c:369:9: error: initialization of ‘void (*)(int, int, struct ip *, void *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 369 | nids_params.syslog; | ^~~~~~~~~~~ libnids.c:371:10: error: too many arguments to function ‘nids_params.ip_filter’; expected 0, have 2 371 | if (!nids_params.ip_filter(iph, len)) | ^~~~~~~~~~~ ~~~ In file included from libnids.c:30: nids.h:125:9: note: declared here 125 | int (*ip_filter) (); | ^~~~~~~~~ libnids.c:403:11: error: too many arguments to function ‘i->item’; expected 0, have 2 403 | (i->item) (iph, skblen); | ~~^~~~~~~ ~~~ util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ libnids.c: In function ‘process_udp’: libnids.c:442:9: error: too many arguments to function ‘ipp->item’; expected 0, have 4 442 | ipp->item(&addr, ((char *) udph) + sizeof(struct udphdr), | ^~~ ~~~~~ util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ libnids.c: In function ‘init_procs’: libnids.c:467:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(u_char *, int)’ {aka ‘void (*)(unsigned char *, int)’} [-Wincompatible-pointer-types] 467 | ip_frag_procs->item = gen_ip_frag_proc; | ^ libnids.c:362:13: note: ‘gen_ip_frag_proc’ declared here 362 | static void gen_ip_frag_proc(u_char * data, int len) | ^~~~~~~~~~~~~~~~ libnids.c:470:20: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(u_char *, int)’ {aka ‘void (*)(unsigned char *, int)’} [-Wincompatible-pointer-types] 470 | ip_procs->item = gen_ip_proc; | ^ libnids.c:447:13: note: ‘gen_ip_proc’ declared here 447 | static void gen_ip_proc(u_char * data, int skblen) | ^~~~~~~~~~~ libnids.c: In function ‘open_live’: libnids.c:512:9: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 512 | nids_params.device = pcap_lookupdev(nids_errbuf); | ^~~~~~~~~~~ In file included from /usr/include/pcap.h:43, from libnids.c:18: /usr/include/pcap/pcap.h:444:18: note: declared here 444 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ libnids.c: In function ‘nids_init’: libnids.c:662:28: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 662 | if (nids_params.syslog == nids_syslog) | ^~ libnids.c:672:10: warning: ‘g_thread_init’ is deprecated [-Wdeprecated-declarations] 672 | g_thread_init(NULL); | ^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:115, from libnids.c:32: /usr/include/glib-2.0/glib/deprecated/gthread.h:271:10: note: declared here 271 | void g_thread_init (gpointer vtable); | ^~~~~~~~~~~~~ libnids.c: In function ‘nids_run’: libnids.c:689:5: warning: ‘g_thread_create_full’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 689 | START_CAP_QUEUE_PROCESS_THREAD(); /* threading... */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/deprecated/gthread.h:108:10: note: declared here 108 | GThread *g_thread_create_full (GThreadFunc func, | ^~~~~~~~~~~~~~~~~~~~ libnids.c: In function ‘nids_next’: libnids.c:749:5: warning: ‘g_thread_create_full’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 749 | START_CAP_QUEUE_PROCESS_THREAD(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/deprecated/gthread.h:108:10: note: declared here 108 | GThread *g_thread_create_full (GThreadFunc func, | ^~~~~~~~~~~~~~~~~~~~ libnids.c: In function ‘nids_dispatch’: libnids.c:763:5: warning: ‘g_thread_create_full’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 763 | START_CAP_QUEUE_PROCESS_THREAD(); /* threading... */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/deprecated/gthread.h:108:10: note: declared here 108 | GThread *g_thread_create_full (GThreadFunc func, | ^~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:51: libnids_pic.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread libnids.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -fPIC -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c killtcp.c -o killtcp_pic.o make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' libnids.c:97:5: error: initialization of ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int, int, struct ip *, void *)’ [-Wincompatible-pointer-types] 97 | nids_syslog, /* syslog() */ | ^~~~~~~~~~~ libnids.c:97:5: note: (near initialization for ‘nids_params.syslog’) libnids.c:42:13: note: ‘nids_syslog’ declared here 42 | static void nids_syslog(int, int, struct ip *, void *); | ^~~~~~~~~~~ libnids.c:103:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct ip *, int)’ [-Wincompatible-pointer-types] 103 | nids_ip_filter, /* ip_filter() */ | ^~~~~~~~~~~~~~ libnids.c:103:5: note: (near initialization for ‘nids_params.ip_filter’) libnids.c:43:12: note: ‘nids_ip_filter’ declared here 43 | static int nids_ip_filter(struct ip *, int); | ^~~~~~~~~~~~~~ libnids.c: In function ‘call_ip_frag_procs’: libnids.c:199:11: error: too many arguments to function ‘i->item’; expected 0, have 2 199 | (i->item) (data, caplen); | ~~^~~~~~~ ~~~~ In file included from libnids.c:29: util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ libnids.c: In function ‘gen_ip_frag_proc’: libnids.c:369:9: error: initialization of ‘void (*)(int, int, struct ip *, void *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 369 | nids_params.syslog; | ^~~~~~~~~~~ libnids.c:371:10: error: too many arguments to function ‘nids_params.ip_filter’; expected 0, have 2 371 | if (!nids_params.ip_filter(iph, len)) | ^~~~~~~~~~~ ~~~ In file included from libnids.c:30: nids.h:125:9: note: declared here 125 | int (*ip_filter) (); | ^~~~~~~~~ libnids.c:403:11: error: too many arguments to function ‘i->item’; expected 0, have 2 403 | (i->item) (iph, skblen); | ~~^~~~~~~ ~~~ util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ libnids.c: In function ‘process_udp’: libnids.c:442:9: error: too many arguments to function ‘ipp->item’; expected 0, have 4 442 | ipp->item(&addr, ((char *) udph) + sizeof(struct udphdr), | ^~~ ~~~~~ util.h:13:10: note: declared here 13 | void (*item)(); | ^~~~ libnids.c: In function ‘init_procs’: libnids.c:467:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(u_char *, int)’ {aka ‘void (*)(unsigned char *, int)’} [-Wincompatible-pointer-types] 467 | ip_frag_procs->item = gen_ip_frag_proc; | ^ libnids.c:362:13: note: ‘gen_ip_frag_proc’ declared here 362 | static void gen_ip_frag_proc(u_char * data, int len) | ^~~~~~~~~~~~~~~~ libnids.c:470:20: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(u_char *, int)’ {aka ‘void (*)(unsigned char *, int)’} [-Wincompatible-pointer-types] 470 | ip_procs->item = gen_ip_proc; | ^ libnids.c:447:13: note: ‘gen_ip_proc’ declared here 447 | static void gen_ip_proc(u_char * data, int skblen) | ^~~~~~~~~~~ libnids.c: In function ‘open_live’: libnids.c:512:9: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 512 | nids_params.device = pcap_lookupdev(nids_errbuf); | ^~~~~~~~~~~ In file included from /usr/include/pcap.h:43, from libnids.c:18: /usr/include/pcap/pcap.h:444:18: note: declared here 444 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ libnids.c: In function ‘nids_init’: libnids.c:662:28: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 662 | if (nids_params.syslog == nids_syslog) | ^~ libnids.c:672:10: warning: ‘g_thread_init’ is deprecated [-Wdeprecated-declarations] 672 | g_thread_init(NULL); | ^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:115, from libnids.c:32: /usr/include/glib-2.0/glib/deprecated/gthread.h:271:10: note: declared here 271 | void g_thread_init (gpointer vtable); | ^~~~~~~~~~~~~ libnids.c: In function ‘nids_run’: libnids.c:689:5: warning: ‘g_thread_create_full’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 689 | START_CAP_QUEUE_PROCESS_THREAD(); /* threading... */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/deprecated/gthread.h:108:10: note: declared here 108 | GThread *g_thread_create_full (GThreadFunc func, | ^~~~~~~~~~~~~~~~~~~~ libnids.c: In function ‘nids_next’: libnids.c:749:5: warning: ‘g_thread_create_full’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 749 | START_CAP_QUEUE_PROCESS_THREAD(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/deprecated/gthread.h:108:10: note: declared here 108 | GThread *g_thread_create_full (GThreadFunc func, | ^~~~~~~~~~~~~~~~~~~~ libnids.c: In function ‘nids_dispatch’: libnids.c:763:5: warning: ‘g_thread_create_full’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 763 | START_CAP_QUEUE_PROCESS_THREAD(); /* threading... */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/deprecated/gthread.h:108:10: note: declared here 108 | GThread *g_thread_create_full (GThreadFunc func, | ^~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:37: libnids.o] Error 1 make: *** [Makefile:10: shared] Error 2 make: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' gcc -c -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include -I/usr/include -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread checksum.c make[1]: Leaving directory '/builddir/build/BUILD/libnids-1.24-build/libnids-1.24/src' In function ‘my_tcp_check’, inlined from ‘my_tcp_check’ at checksum.c:273:1: checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c: In function ‘my_tcp_check’: checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ In function ‘my_tcp_check’, inlined from ‘my_tcp_check’ at checksum.c:273:1: checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c: In function ‘my_tcp_check’: checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ checksum.c: In function ‘my_udp_check’: checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ checksum.c:288:12: warning: ‘hdr’ may be used uninitialized [-Wmaybe-uninitialized] 288 | sum += *(u_short *)((char *)(&hdr) + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checksum.c:277:21: note: ‘hdr’ declared here 277 | struct psuedo_hdr hdr; | ^~~ RPM build errors: make: *** [Makefile:10: static] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.a0F5CQ (%build) Bad exit status from /var/tmp/rpm-tmp.a0F5CQ (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M f0eee3abf70d4ee08778e318477a8b18 -D /var/lib/mock/f42-build-56916651-6547091/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv._4kav5ax:/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 x86_64 --nodeps /builddir/build/SPECS/libnids.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 f0eee3abf70d4ee08778e318477a8b18 -D /var/lib/mock/f42-build-56916651-6547091/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv._4kav5ax:/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 x86_64 --nodeps /builddir/build/SPECS/libnids.spec'