+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/packit-1.0nb4/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/packit-1.0nb4/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for packit-1.0nb4 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in src --- init.o --- --- define_defaults.o --- --- error.o --- --- injection.o --- --- capture.o --- --- shape_arp_hdr.o --- --- shape_tcp_hdr.o --- --- shape_udp_hdr.o --- --- init.o --- source='init.c' object='init.o' libtool=no depfile='.deps/init.Po' tmpdepfile='.deps/init.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'init.c' || echo './'`init.c --- define_defaults.o --- source='define_defaults.c' object='define_defaults.o' libtool=no depfile='.deps/define_defaults.Po' tmpdepfile='.deps/define_defaults.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'define_defaults.c' || echo './'`define_defaults.c --- error.o --- source='error.c' object='error.o' libtool=no depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'error.c' || echo './'`error.c --- injection.o --- source='injection.c' object='injection.o' libtool=no depfile='.deps/injection.Po' tmpdepfile='.deps/injection.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'injection.c' || echo './'`injection.c --- capture.o --- source='capture.c' object='capture.o' libtool=no depfile='.deps/capture.Po' tmpdepfile='.deps/capture.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'capture.c' || echo './'`capture.c --- shape_tcp_hdr.o --- source='shape_tcp_hdr.c' object='shape_tcp_hdr.o' libtool=no depfile='.deps/shape_tcp_hdr.Po' tmpdepfile='.deps/shape_tcp_hdr.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'shape_tcp_hdr.c' || echo './'`shape_tcp_hdr.c --- shape_udp_hdr.o --- source='shape_udp_hdr.c' object='shape_udp_hdr.o' libtool=no depfile='.deps/shape_udp_hdr.Po' tmpdepfile='.deps/shape_udp_hdr.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'shape_udp_hdr.c' || echo './'`shape_udp_hdr.c --- shape_arp_hdr.o --- source='shape_arp_hdr.c' object='shape_arp_hdr.o' libtool=no depfile='.deps/shape_arp_hdr.Po' tmpdepfile='.deps/shape_arp_hdr.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes -I/opt/pkg/include/libnet11 -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/libnet11 -I/opt/pkg/include -Wall -I/opt/pkg/include -c `test -f 'shape_arp_hdr.c' || echo './'`shape_arp_hdr.c --- define_defaults.o --- In file included from globals.h:28, from define_defaults.h:26, from define_defaults.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from define_defaults.h:26, from define_defaults.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from define_defaults.h:26, from define_defaults.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from define_defaults.h:26, from define_defaults.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from define_defaults.h:26, from define_defaults.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from define_defaults.h:26, from define_defaults.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from define_defaults.h:26, from define_defaults.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from define_defaults.h:26, from define_defaults.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ --- shape_tcp_hdr.o --- In file included from globals.h:28, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ --- shape_arp_hdr.o --- In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ --- shape_udp_hdr.o --- In file included from globals.h:28, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ --- init.o --- In file included from globals.h:28, from init.h:26, from init.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from init.h:26, from init.c:23: --- error.o --- In file included from globals.h:28, from error.h:26, from error.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from error.h:26, from error.c:23: --- injection.o --- In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from injection.h:26, --- shape_arp_hdr.o --- In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ shape_arp_hdr.c: In function 'shape_arp_hdr': shape_arp_hdr.c:61:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 61 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); --- shape_tcp_hdr.o --- In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ shape_tcp_hdr.c: In function 'shape_tcp_hdr': shape_tcp_hdr.c:51:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 51 | payload_len = strlen(payload); | ^~~~~~~ | | | unsigned char * --- shape_udp_hdr.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short --- init.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from init.h:26, from init.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ --- error.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from error.h:26, from error.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ --- injection.o --- from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; --- shape_arp_hdr.o --- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:63:32: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 63 | ahdr_o.s_paddr = libnet_addr2name4(s_paddr, 0); | ^ shape_arp_hdr.c:67:32: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 67 | ahdr_o.s_paddr = IPV4_DEFAULT; --- shape_tcp_hdr.o --- In file included from /usr/include/string.h:34, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:64, from globals.h:31, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'unsigned char *' 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ shape_tcp_hdr.c:70:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 70 | fatal_error("Unable to build TCP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_tcp_hdr.h:26, from shape_tcp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' --- shape_udp_hdr.o --- | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ --- init.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from init.h:26, from init.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from init.h:26, from init.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ --- error.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from error.h:26, from error.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from error.h:26, from error.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ --- injection.o --- | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int --- shape_arp_hdr.o --- | ^ shape_arp_hdr.c:72:50: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] 72 | if((s_paddr = libnet_name2addr4(pkt_d, ahdr_o.s_paddr, 0)) == -1) | ~~~~~~^~~~~~~~ | | | unsigned char * --- shape_tcp_hdr.o --- 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ --- shape_udp_hdr.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, --- init.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from init.h:26, from init.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from init.h:26, from init.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; --- error.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from error.h:26, from error.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from error.h:26, from error.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' --- injection.o --- | ^~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ --- shape_udp_hdr.o --- from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ --- init.o --- | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from init.h:26, from init.c:23: --- define_defaults.o --- In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from define_defaults.h:26, from define_defaults.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ define_defaults.c: In function 'define_injection_defaults': define_defaults.c:34:14: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 34 | s_d_port = "0"; | ^ --- error.o --- 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from error.h:26, from error.c:23: --- injection.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ --- capture.o --- In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ ../config.h:182:27: error: two or more data types in declaration specifiers 182 | #define u_int8_t unsigned char | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:18: note: in expansion of macro 'u_int8_t' 37 | typedef uint8_t u_int8_t; | ^~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from capture.h:26, from capture.c:23: --- shape_arp_hdr.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:124, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-functions.h:227:38: note: expected 'char *' but argument is of type 'unsigned char *' 227 | libnet_name2addr4(libnet_t *l, char *host_name, u_int8_t use_name); | ~~~~~~^~~~~~~~~ shape_arp_hdr.c:73:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 73 | fatal_error("Invalid sender protocol address: %s", ahdr_o.s_paddr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: --- shape_udp_hdr.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token --- init.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ --- error.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ --- injection.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from injection.h:26, from injection.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token --- capture.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:37:1: warning: useless type name in empty declaration 37 | typedef uint8_t u_int8_t; | ^~~~~~~ In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:173:19: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ ../config.h:173:28: error: two or more data types in declaration specifiers 173 | #define u_int16_t unsigned short | ^~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:18: note: in expansion of macro 'u_int16_t' 38 | typedef uint16_t u_int16_t; | ^~~~~~~~~ --- shape_arp_hdr.o --- ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:81:33: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 81 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); --- shape_udp_hdr.o --- 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ shape_udp_hdr.c: In function 'shape_udp_hdr': shape_udp_hdr.c:44:30: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 44 | payload_len = strlen(payload); | ^~~~~~~ | | | unsigned char * In file included from /usr/include/string.h:34, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:64, from globals.h:31, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: --- injection.o --- 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ injection.c: In function 'injection_init': injection.c:60:19: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] 60 | if(strstr(s_d_port, "-")) | ^~~~~~~~ | | | unsigned char * In file included from /usr/include/string.h:34, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:64, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/string_iso.h:143:21: note: expected 'const char *' but argument is of type 'unsigned char *' 143 | extern char *strstr(const char *, const char *); | ^~~~~~~~~~~~ injection.c:65:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] --- capture.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from capture.h:26, from capture.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:38:1: warning: useless type name in empty declaration 38 | typedef uint16_t u_int16_t; | ^~~~~~~ In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:176:19: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ ../config.h:176:28: error: two or more data types in declaration specifiers 176 | #define u_int32_t unsigned int | ^~~ --- shape_arp_hdr.o --- | ^~~~~~~~ shape_arp_hdr.c:89:32: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 89 | ahdr_o.s_eaddr = ETH_DEFAULT; | ^ shape_arp_hdr.c:94:35: warning: pointer targets in passing argument 1 of 'format_ethernet_addr' differ in signedness [-Wpointer-sign] 94 | if(format_ethernet_addr(ahdr_o.s_eaddr, s_neaddr) == 0) | ~~~~~~^~~~~~~~ | | | unsigned char * In file included from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:32: note: expected 'char *' but argument is of type 'unsigned char *' 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ --- shape_udp_hdr.o --- /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'unsigned char *' 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ shape_udp_hdr.c:58:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 58 | fatal_error("Unable to build UDP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_udp_hdr.h:26, from shape_udp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ --- shape_tcp_hdr.o --- *** [shape_tcp_hdr.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- error.o --- In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from error.h:26, from error.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ error.c: In function 'fatal_error': error.c:35:41: warning: pointer targets in passing argument 3 of 'vsnprintf' differ in signedness [-Wpointer-sign] 35 | vsnprintf(error_buf, ERRBUF_MAXLEN, err, va); | ^~~ | | | unsigned char * --- injection.o --- 65 | fatal_error("Invalid port range: %s", s_d_port); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:70:34: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] 70 | d_port = (u_int16_t)atoi(s_d_port); | ^~~~~~~~ | | | unsigned char * In file included from /usr/include/stdlib.h:40, --- capture.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:18: note: in expansion of macro 'u_int32_t' 39 | typedef uint32_t u_int32_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from capture.h:26, from capture.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:39:1: warning: useless type name in empty declaration 39 | typedef uint32_t u_int32_t; | ^~~~~~~ In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:179:19: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~~~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' --- shape_arp_hdr.o --- shape_arp_hdr.c:95:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 95 | fatal_error("Invalid sender ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:97:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 97 | snprintf(ahdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | unsigned char * --- error.o --- In file included from /usr/include/stdio.h:151, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:63, from globals.h:31, from error.h:26, from error.c:23: /usr/include/iso/stdio_c99.h:84:52: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 84 | extern int vsnprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ --- injection.o --- from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:68, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/stdlib_iso.h:124:17: note: expected 'const char *' but argument is of type 'unsigned char *' 124 | extern int atoi(const char *); | ^~~~~~~~~~~~ injection.c:73:5: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 73 | if(!device && (device = pcap_lookupdev(error_buf)) == NULL) | ^~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:394:16: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ --- capture.o --- 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:28: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ ../config.h:179:33: error: two or more data types in declaration specifiers 179 | #define u_int64_t unsigned long long | ^~~~ /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:18: note: in expansion of macro 'u_int64_t' 40 | typedef uint64_t u_int64_t; | ^~~~~~~~~ In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:119, from globals.h:31, from capture.h:26, from capture.c:23: --- shape_arp_hdr.o --- In file included from /usr/include/stdio.h:151, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:63, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ shape_arp_hdr.c:106:26: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 106 | fatal_error("Unable to retrieve local IP address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: --- injection.o --- injection.c:73:27: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 73 | if(!device && (device = pcap_lookupdev(error_buf)) == NULL) | ^ injection.c:74:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 74 | fatal_error("Device lookup failure: Are you root?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ --- capture.o --- /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-types.h:40:1: warning: useless type name in empty declaration 40 | typedef uint64_t u_int64_t; | ^~~~~~~ In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from capture.h:26, from capture.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ --- shape_arp_hdr.o --- ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:108:32: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 108 | ahdr_o.r_paddr = libnet_addr2name4(r_paddr, 0); | ^ shape_arp_hdr.c:112:18: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 112 | ahdr_o.r_paddr = IPV4_DEFAULT; | ^ shape_arp_hdr.c:117:50: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] 117 | if((r_paddr = libnet_name2addr4(pkt_d, ahdr_o.r_paddr, 0)) == -1) | ~~~~~~^~~~~~~~ --- injection.o --- injection.c:76:15: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness [-Wpointer-sign] 76 | if(strstr(device, "any")) strcpy(device, "lo"); | ^~~~~~ | | | unsigned char * In file included from /usr/include/string.h:34, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:64, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/string_iso.h:143:21: note: expected 'const char *' but argument is of type 'unsigned char *' 143 | extern char *strstr(const char *, const char *); | ^~~~~~~~~~~~ injection.c:76:38: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 76 | if(strstr(device, "any")) strcpy(device, "lo"); | ^~~~~~ | | --- shape_arp_hdr.o --- | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:124, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-functions.h:227:38: note: expected 'char *' but argument is of type 'unsigned char *' 227 | libnet_name2addr4(libnet_t *l, char *host_name, u_int8_t use_name); | ~~~~~~^~~~~~~~~ shape_arp_hdr.c:118:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 118 | fatal_error("Invalid receiver protocol address: %s", ahdr_o.r_paddr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * --- injection.o --- | unsigned char * In file included from /usr/include/string.h:34, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:64, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ injection.c:83:40: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] 83 | if((pkt_d = libnet_init(init_type, device, error_buf)) == NULL) | ^~~~~~ | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:124, --- shape_arp_hdr.o --- In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:126:26: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 126 | fatal_error("Unable to determine ethernet address: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char --- injection.o --- from globals.h:31, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/./libnet/libnet-functions.h:64:39: note: expected 'char *' but argument is of type 'unsigned char *' 64 | libnet_init(int injection_type, char *device, char *err_buf); | ~~~~~~^~~~~~ injection.c:84:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 84 | fatal_error("Unable to initialize packet injection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' --- shape_arp_hdr.o --- error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:134:32: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 134 | ahdr_o.r_eaddr = ETH_DEFAULT; | ^ shape_arp_hdr.c:139:35: warning: pointer targets in passing argument 1 of 'format_ethernet_addr' differ in signedness [-Wpointer-sign] 139 | if(format_ethernet_addr(ahdr_o.r_eaddr, r_neaddr) == 0) | ~~~~~~^~~~~~~~ | | | unsigned char * In file included from globals.h:43, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: utils.h:43:32: note: expected 'char *' but argument is of type 'unsigned char *' 43 | u_int32_t format_ethernet_addr(char *, u_int8_t[]); | ^~~~~~ --- define_defaults.o --- *** [define_defaults.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- shape_udp_hdr.o --- *** [shape_udp_hdr.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- init.o --- In file included from /usr/include/sys/socket.h:67, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:79, from globals.h:31, from init.h:26, from init.c:23: inject_defs.h:39:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 39 | u_int8_t *s_addr; /* src address string */ | ^~~~~~ inject_defs.h:134:15: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token 134 | u_int8_t *s_addr; /* source ethernet address string */ | ^~~~~~ init.c: In function 'injection_struct_init': init.c:29:11: error: 'struct enethdr_opts' has no member named 'd_addr' 29 | ehdr_o.d_addr = NULL; | ^ init.c:30:11: error: 'struct enethdr_opts' has no member named 'S_un' 30 | ehdr_o.s_addr = NULL; | ^ --- shape_arp_hdr.o --- shape_arp_hdr.c:140:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 140 | fatal_error("Invalid receiver ethernet address"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ shape_arp_hdr.c:142:20: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 142 | snprintf(ahdr_o.rhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", | ~~~~~~^~~~~~~~~ | | | unsigned char * --- injection.o --- 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c: In function 'with_response': injection.c:124:30: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] 124 | if((pkt = pcap_open_live(device, 1500, 1, READ_TIMEOUT, error_buf)) == NULL) | ^~~~~~ | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:515:33: note: expected 'const char *' but argument is of type 'unsigned char *' 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~~~~~~~ --- capture.o --- capture.c: In function 'capture_init': capture.c:54:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 54 | fatal_error("Unable to open file: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ capture.c:60:13: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 60 | if((device = pcap_lookupdev(error_buf)) == NULL) | ^~ --- init.o --- init.c:34:20: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 34 | ahdr_o.s_paddr = IPV4_DEFAULT; | ^ init.c:35:20: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 35 | ahdr_o.s_eaddr = ETH_DEFAULT; | ^ init.c:36:20: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 36 | ahdr_o.r_paddr = IPV4_DEFAULT; | ^ init.c:37:20: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 37 | ahdr_o.r_eaddr = ETH_DEFAULT; | ^ --- shape_arp_hdr.o --- In file included from /usr/include/stdio.h:151, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:63, from globals.h:31, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ shape_arp_hdr.c:160:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 160 | fatal_error("Unable to build ARP header: %s", libnet_geterror(pkt_d)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from shape_arp_hdr.h:26, from shape_arp_hdr.c:23: --- injection.o --- injection.c:125:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 125 | fatal_error("Unable to open device: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:127:23: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] 127 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) | ^~~~~~ | | | unsigned char * --- capture.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from capture.h:26, from capture.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:394:16: note: declared here 394 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ capture.c:60:24: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 60 | if((device = pcap_lookupdev(error_buf)) == NULL) | ^ capture.c:61:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 61 | fatal_error("%s: Check device permissions", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from capture.h:26, --- shape_arp_hdr.o --- ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ --- injection.o --- In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:398:29: note: expected 'const char *' but argument is of type 'unsigned char *' 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); | ^~~~~~~~~~~~ injection.c:153:30: error: 'struct ip4hdr_opts' has no member named 'S_un' 153 | ip4hdr_o.s_addr, ip4hdr_o.d_addr, d_port, s_port, ip4hdr_o.id); | ^ injection.c:153:47: error: 'struct ip4hdr_opts' has no member named 'd_addr' 153 | ip4hdr_o.s_addr, ip4hdr_o.d_addr, d_port, s_port, ip4hdr_o.id); | ^ --- capture.o --- from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ capture.c:64:34: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] 64 | if((pkt = pcap_open_live(device, snap_len, 1, READ_TIMEOUT, error_buf)) == NULL) | ^~~~~~ | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from capture.h:26, from capture.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:515:33: note: expected 'const char *' but argument is of type 'unsigned char *' --- injection.o --- injection.c:145:27: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 145 | snprintf(ufilter, 1024, | ^~~~~~~ | | | unsigned char * In file included from /usr/include/stdio.h:151, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ injection.c:166:30: error: 'struct ip4hdr_opts' has no member named 'S_un' 166 | ip4hdr_o.s_addr, ip4hdr_o.d_addr, d_port, s_port, ip4hdr_o.id); | ^ --- capture.o --- 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~~~~~~~ capture.c:65:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 65 | fatal_error("Unable to open device: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ capture.c:75:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] --- injection.o --- injection.c:166:47: error: 'struct ip4hdr_opts' has no member named 'd_addr' 166 | ip4hdr_o.s_addr, ip4hdr_o.d_addr, d_port, s_port, ip4hdr_o.id); | ^ injection.c:158:27: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 158 | snprintf(ufilter, 1024, | ^~~~~~~ | | | unsigned char * In file included from /usr/include/stdio.h:151, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ --- capture.o --- 75 | fatal_error("Unable to initialize packet capture: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ capture.c:80:23: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] 80 | if(pcap_lookupnet(device, &localnet, &netmask, error_buf) < 0) | ^~~~~~ | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, --- injection.o --- injection.c:179:30: error: 'struct ip4hdr_opts' has no member named 'S_un' 179 | ip4hdr_o.s_addr, htons(i4hdr_o.id), htons(i4hdr_o.seqn), | ^ injection.c:171:27: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 171 | snprintf(ufilter, 1024, | ^~~~~~~ | | | unsigned char * In file included from /usr/include/stdio.h:151, from /home/pbulk/build/net/packit/work/.buildlink/include/libnet11/libnet.h:63, from globals.h:31, from injection.h:26, from injection.c:23: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ --- capture.o --- from globals.h:34, from capture.h:26, from capture.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:398:29: note: expected 'const char *' but argument is of type 'unsigned char *' 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); | ^~~~~~~~~~~~ capture.c:83:32: warning: pointer targets in passing argument 3 of 'pcap_compile' differ in signedness [-Wpointer-sign] 83 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) | ^~~~~~ | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from capture.h:26, from capture.c:23: --- error.o --- *** [error.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- capture.o --- /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:613:59: note: expected 'const char *' but argument is of type 'unsigned char *' 613 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, | ^~~~~~~~~~~~ capture.c:87:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 87 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ --- injection.o --- injection.c:191:36: warning: pointer targets in passing argument 3 of 'pcap_compile' differ in signedness [-Wpointer-sign] 191 | if(pcap_compile(pkt, &bpf, filter, 0, netmask) < 0) | ^~~~~~ | | | unsigned char * In file included from /home/pbulk/build/net/packit/work/.buildlink/include/pcap.h:43, from globals.h:34, from injection.h:26, from injection.c:23: /home/pbulk/build/net/packit/work/.buildlink/include/pcap/pcap.h:613:59: note: expected 'const char *' but argument is of type 'unsigned char *' 613 | PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, | ^~~~~~~~~~~~ injection.c:195:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] --- capture.o --- capture.c:94:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 94 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ capture.c:114:21: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 114 | fatal_error("Unable to initialize pcap_loop: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | --- injection.o --- 195 | fatal_error("Unable to set packet filters: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:202:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 202 | fatal_error("Unable to determine datalink type: %s", pcap_geterr(pkt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, --- capture.o --- | char * In file included from globals.h:28, from capture.h:26, from capture.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ --- injection.o --- from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:210:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 210 | fatal_error("Unable to change to blocking mode: %s", error_buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:217:62: warning: pointer targets in passing argument 3 of 'print_separator' differ in signedness [-Wpointer-sign] 217 | print_separator(1, 2, (p_mode == M_TRACE) ? "HOP %d" : "SND %d", inj_cnt); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char utils.h:31:32: note: in expansion of macro 'u_int8_t' 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~ injection.c:221:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 221 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:244:29: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 244 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:269:69: warning: pointer targets in passing argument 3 of 'print_separator' differ in signedness [-Wpointer-sign] 269 | print_separator((p_mode == M_TRACE) ? 0 : 1, 1, "No Response From Peer"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char utils.h:31:32: note: in expansion of macro 'u_int8_t' 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~ injection.c: In function 'without_response': injection.c:327:25: warning: pointer targets in passing argument 1 of 'fatal_error' differ in signedness [-Wpointer-sign] 327 | fatal_error("Unable to inject packet"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char error.h:34:18: note: in expansion of macro 'u_int8_t' 34 | void fatal_error(u_int8_t *,...); | ^~~~~~~~ injection.c:331:35: warning: pointer targets in passing argument 3 of 'print_separator' differ in signedness [-Wpointer-sign] 331 | print_separator(1, 2, "SND %ld", inj_cnt); | ^~~~~~~~~ | | | char * In file included from globals.h:28, from injection.h:26, from injection.c:23: ../config.h:182:18: note: expected 'unsigned char *' but argument is of type 'char *' 182 | #define u_int8_t unsigned char utils.h:31:32: note: in expansion of macro 'u_int8_t' 31 | void print_separator(int, int, u_int8_t *, ...); | ^~~~~~~~ --- shape_arp_hdr.o --- *** [shape_arp_hdr.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- init.o --- *** [init.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- capture.o --- *** [capture.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src --- injection.o --- *** [injection.o] Error code 1 bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src 8 errors bmake[2]: stopped in /home/pbulk/build/net/packit/work/packit-1.0/src *** [all-recursive] Error code 1 bmake[1]: stopped in /home/pbulk/build/net/packit/work/packit-1.0 1 error bmake[1]: stopped in /home/pbulk/build/net/packit/work/packit-1.0 *** [all] Error code 2 bmake: stopped in /home/pbulk/build/net/packit/work/packit-1.0 1 error bmake: stopped in /home/pbulk/build/net/packit/work/packit-1.0 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/packit *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/packit