Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build error - pflogd.c



With sources updated as of 2024-09-03 at 01:11:40 UTC I am seeing the following reproducible error. (Host and target are NetBSD/amd64, and all output directories were destroyed befeore starting the build.)

===> build.sh command:    ./build.sh -T /build/netbsd-current/tools/x86_64/amd64 -D /build/netbsd-current/dest/amd64 -O /build/netbsd-current/obj/amd64 -R /build/netbsd-current/release -V RELEASEMACHINEDIR=amd64 -V MKDEBUG=yes -V MKDEBUGKERNEL=yes -V MKDEBUGLIB=yes -V KERNEL_DIR=no -U -u -N2 -m amd64 -j1 release
===> build.sh started:    Tue Sep  3 05:20:07 UTC 2024
===> NetBSD version:      10.99.12
===> MACHINE:             amd64
===> MACHINE_ARCH:        x86_64
===> Build platform:      NetBSD 10.99.11 amd64
===> HOST_SH:             /bin/sh
===> share/mk MAKECONF:   /etc/mk.conf
===> MAKECONF file:       /etc/mk.conf
===> TOOLDIR path:        /build/netbsd-current/tools/x86_64/amd64
===> DESTDIR path:        /build/netbsd-current/dest/amd64
===> RELEASEDIR path:     /build/netbsd-current/release
===> Updated makewrapper: /build/netbsd-current/tools/x86_64/amd64/bin/nbmake-amd64
...
dependall ===> usr.sbin/pf/pflogd
#   compile  pflogd/pflogd.o
/build/netbsd-current/tools/x86_64/amd64/bin/x86_64--netbsd-gcc -O2   -fPIE  -g   -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror    -Wno-address-of-packed-member      --sysroot=/build/netbsd-current/dest/amd64 -I/build/netbsd-current/src_ro/dist/pf/sbin/pflogd -I/build/netbsd-current/src_ro/external/bsd/libpcap/dist -DPCAP_DONT_INCLUDE_PCAP_BPF_H -D_OPENBSD_SOURCE -D_KERNTYPES  -c    /build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c -o pflogd.o.o
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c: In function 'scan_dump':
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c:386:31: error: storage size of 'ph' isn't known
  386 |         struct pcap_sf_pkthdr ph;
      |                               ^~
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c:386:31: error: unused variable 'ph' [-Werror=unused-variable]
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c: In function 'dump_packet_nobuf':
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c:456:31: error: storage size of 'sf_hdr' isn't known
  456 |         struct pcap_sf_pkthdr sf_hdr;
      |                               ^~~~~~
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c:456:31: error: unused variable 'sf_hdr' [-Werror=unused-variable]
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c: In function 'dump_packet':
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c:557:31: error: storage size of 'sf_hdr' isn't known
  557 |         struct pcap_sf_pkthdr sf_hdr;
      |                               ^~~~~~
/build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c:557:31: error: unused variable 'sf_hdr' [-Werror=unused-variable]
cc1: all warnings being treated as errors
*** Failed target: pflogd.o
*** In directory: /build/netbsd-current/src_ro/usr.sbin/pf/pflogd
*** Failed commands:
	${_MKTARGET_COMPILE}
	=> @echo '#  ' "compile " pflogd/pflogd.o
	${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} ${OBJECT_TARGET}
	=> /build/netbsd-current/tools/x86_64/amd64/bin/x86_64--netbsd-gcc -O2   -fPIE  -g   -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror    -Wno-address-of-packed-member      --sysroot=/build/netbsd-current/dest/amd64 -I/build/netbsd-current/src_ro/dist/pf/sbin/pflogd -I/build/netbsd-current/src_ro/external/bsd/libpcap/dist -DPCAP_DONT_INCLUDE_PCAP_BPF_H -D_OPENBSD_SOURCE -D_KERNTYPES  -c    /build/netbsd-current/src_ro/dist/pf/sbin/pflogd/pflogd.c -o pflogd.o.o
	${CTFCONVERT_RUN}
	=> /build/netbsd-current/tools/x86_64/amd64/bin/nbctfconvert -g -L VERSION -g -o pflogd.o pflogd.o.o && rm -f pflogd.o.o
*** [pflogd.o] Error code 1
nbmake[8]: stopped making "realall" in /build/netbsd-current/src_ro/usr.sbin/pf/pflogd
nbmake[8]: 1 error
nbmake[8]: stopped making "realall" in /build/netbsd-current/src_ro/usr.sbin/pf/pflogd
nbmake[7]: stopped making "dependall" in /build/netbsd-current/src_ro/usr.sbin/pf/pflogd
nbmake[6]: stopped making "dependall" in /build/netbsd-current/src_ro/usr.sbin/pf
nbmake[5]: stopped making "dependall" in /build/netbsd-current/src_ro/usr.sbin
nbmake[4]: stopped making "dependall" in /build/netbsd-current/src_ro

nbmake[3]: stopped making "do-build" in /build/netbsd-current/src_ro

nbmake[2]: stopped making "build" in /build/netbsd-current/src_ro

nbmake[1]: stopped making "distribution" in /build/netbsd-current/src_ro

nbmake: stopped making "release" in /build/netbsd-current/src_ro

+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+


Home | Main Index | Thread Index | Old Index