+ 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/libnet11-1.1.2.1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libnet11-1.1.2.1/work.log ===> Building for libnet11-1.1.2.1 --- all-recursive --- Making all in include --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in libnet Making all in src --- libnet_asn1.o --- --- libnet_build_802.1q.o --- --- libnet_build_802.1x.o --- --- libnet_build_802.2.o --- --- libnet_asn1.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_asn1.c' || echo './'`libnet_asn1.c --- libnet_build_802.1q.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_802.1q.c' || echo './'`libnet_build_802.1q.c --- libnet_build_802.2.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_802.2.c' || echo './'`libnet_build_802.2.c --- libnet_build_802.1x.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_802.1x.c' || echo './'`libnet_build_802.1x.c --- libnet_build_802.3.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_802.3.c' || echo './'`libnet_build_802.3.c --- libnet_build_arp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_arp.c' || echo './'`libnet_build_arp.c --- libnet_build_bgp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_bgp.c' || echo './'`libnet_build_bgp.c --- libnet_build_cdp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_cdp.c' || echo './'`libnet_build_cdp.c --- libnet_build_data.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_data.c' || echo './'`libnet_build_data.c --- libnet_build_dhcp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_dhcp.c' || echo './'`libnet_build_dhcp.c --- libnet_build_dns.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_dns.c' || echo './'`libnet_build_dns.c --- libnet_build_ethernet.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_ethernet.c' || echo './'`libnet_build_ethernet.c --- libnet_build_fddi.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_fddi.c' || echo './'`libnet_build_fddi.c --- libnet_build_gre.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_gre.c' || echo './'`libnet_build_gre.c --- libnet_build_icmp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_icmp.c' || echo './'`libnet_build_icmp.c --- libnet_build_igmp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_igmp.c' || echo './'`libnet_build_igmp.c --- libnet_build_ip.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_ip.c' || echo './'`libnet_build_ip.c --- libnet_build_ipsec.o --- --- libnet_build_ip.o --- libnet_build_ip.c: In function 'libnet_build_ipv4_options': libnet_build_ip.c:410:36: warning: pointer targets in passing argument 3 of 'libnet_pblock_append' differ in signedness [-Wpointer-sign] 410 | n = libnet_pblock_append(l, p, "\0\0\0", adj_size - options_s); | ^~~~~~~~ | | | char * In file included from ../include/libnet.h:124, from libnet_build_ip.c:37: ../include/./libnet/libnet-functions.h:2094:65: note: expected 'u_int8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 2094 | libnet_pblock_append(libnet_t *l, libnet_pblock_t *p, u_int8_t *buf, | ~~~~~~~~~~^~~ --- libnet_build_ipsec.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_ipsec.c' || echo './'`libnet_build_ipsec.c --- libnet_build_isl.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_isl.c' || echo './'`libnet_build_isl.c --- libnet_build_mpls.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_mpls.c' || echo './'`libnet_build_mpls.c --- libnet_build_isl.o --- libnet_build_isl.c: In function 'libnet_build_isl': libnet_build_isl.c:48:18: warning: variable 'h' set but not used [-Wunused-but-set-variable] 48 | u_int32_t n, h; | ^ --- libnet_build_ntp.o --- --- libnet_build_ospf.o --- --- libnet_build_ntp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_ntp.c' || echo './'`libnet_build_ntp.c --- libnet_build_ospf.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_ospf.c' || echo './'`libnet_build_ospf.c --- libnet_build_rip.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_rip.c' || echo './'`libnet_build_rip.c --- libnet_build_rpc.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_rpc.c' || echo './'`libnet_build_rpc.c --- libnet_build_sebek.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_sebek.c' || echo './'`libnet_build_sebek.c --- libnet_build_snmp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_snmp.c' || echo './'`libnet_build_snmp.c --- libnet_build_stp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_stp.c' || echo './'`libnet_build_stp.c --- libnet_build_tcp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_tcp.c' || echo './'`libnet_build_tcp.c --- libnet_build_token_ring.o --- --- libnet_build_udp.o --- --- libnet_build_token_ring.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_token_ring.c' || echo './'`libnet_build_token_ring.c --- libnet_build_udp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_udp.c' || echo './'`libnet_build_udp.c --- libnet_build_vrrp.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_build_vrrp.c' || echo './'`libnet_build_vrrp.c --- libnet_advanced.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_advanced.c' || echo './'`libnet_advanced.c --- libnet_checksum.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_checksum.c' || echo './'`libnet_checksum.c --- libnet_cq.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_cq.c' || echo './'`libnet_cq.c --- libnet_crc.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_crc.c' || echo './'`libnet_crc.c --- libnet_cq.o --- libnet_cq.c: In function 'libnet_cq_getlabel': libnet_cq.c:331:12: warning: pointer targets in returning 'char *' from a function with return type 'int8_t *' {aka 'signed char *'} differ in signedness [-Wpointer-sign] 331 | return (l->label); | ^ libnet_cq.c: In function 'libnet_cq_add': libnet_cq.c:148:13: warning: array subscript 64 is above array bounds of 'char[64]' [-Warray-bounds=] 148 | l->label[LIBNET_LABEL_SIZE] = '\0'; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from ../include/libnet.h:122, from libnet_cq.c:38: ../include/./libnet/libnet-structures.h:192:10: note: while referencing 'label' 192 | char label[LIBNET_LABEL_SIZE]; /* textual label for cq interface */ | ^~~~~ libnet_cq.c:117:17: warning: array subscript 64 is above array bounds of 'char[64]' [-Warray-bounds=] 117 | l->label[LIBNET_LABEL_SIZE] = '\0'; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ ../include/./libnet/libnet-structures.h:192:10: note: while referencing 'label' 192 | char label[LIBNET_LABEL_SIZE]; /* textual label for cq interface */ | ^~~~~ --- libnet_error.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_error.c' || echo './'`libnet_error.c --- libnet_if_addr.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_if_addr.c' || echo './'`libnet_if_addr.c --- libnet_init.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_init.c' || echo './'`libnet_init.c --- libnet_internal.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_internal.c' || echo './'`libnet_internal.c --- libnet_if_addr.o --- libnet_if_addr.c: In function 'libnet_ifaddrlist': libnet_if_addr.c:133:18: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 133 | snprintf(errbuf, LIBNET_ERRBUF_SIZE, "%s(): socket error: %s\n", | ^~~~~~ | | | int8_t * {aka signed char *} In file included from /usr/include/stdio.h:151, from ../include/libnet.h:63, from libnet_if_addr.c:37: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ libnet_if_addr.c:154:18: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 154 | snprintf(errbuf, LIBNET_ERRBUF_SIZE, | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ libnet_if_addr.c:197:17: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 197 | strncpy(device, nifr.ifr_name, sizeof(device) - 1); | ^~~~~~ | | | int8_t * {aka signed char *} In file included from /usr/include/string.h:35, from ../include/libnet.h:64: /usr/include/iso/string_iso.h:82:22: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ libnet_if_addr.c:217:32: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] 217 | strncpy(nifr.ifr_name, device, sizeof(device) - 1); | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/string_iso.h:82:44: note: expected 'const char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ libnet_if_addr.c:223:26: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 223 | snprintf(errbuf, LIBNET_ERRBUF_SIZE, | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ libnet_if_addr.c:239:34: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 239 | if ((al->device = strdup(device)) == NULL) | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ libnet_if_addr.c:239:25: warning: pointer targets in assignment from 'char *' to 'int8_t *' {aka 'signed char *'} differ in signedness [-Wpointer-sign] 239 | if ((al->device = strdup(device)) == NULL) | ^ libnet_if_addr.c:241:22: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 241 | snprintf(errbuf, LIBNET_ERRBUF_SIZE, | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ libnet_if_addr.c: In function 'libnet_select_device': libnet_if_addr.c:354:43: warning: pointer targets in passing argument 2 of 'libnet_ifaddrlist' differ in signedness [-Wpointer-sign] 354 | c = libnet_ifaddrlist(&address_list, l->device, err_buf); | ~^~~~~~~~ | | | char * libnet_if_addr.c:112:73: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 112 | libnet_ifaddrlist(register struct libnet_ifaddr_list **ipaddrp, int8_t *dev, | ~~~~~~~~^~~ libnet_if_addr.c:377:67: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 377 | if (((addr == -1) && !(strncmp(l->device, address_list->device, | ~~~~~~~~~~~~^~~~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/string_iso.h:81:34: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 81 | extern int strncmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ libnet_if_addr.c:383:49: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 383 | l->device = strdup(address_list->device); | ~~~~~~~~~~~~^~~~~~~~ | | | int8_t * {aka signed char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ libnet_if_addr.c:397:40: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 397 | l->device = strdup(address_list->device); | ~~~~~~~~~~~~^~~~~~~~ | | | int8_t * {aka signed char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ --- libnet_init.o --- libnet_init.c: In function 'libnet_getdevice': libnet_init.c:203:14: warning: pointer targets in returning 'char *' from a function with return type 'int8_t *' {aka 'signed char *'} differ in signedness [-Wpointer-sign] 203 | return (l->device); | ~~^~~~~~~~~ --- libnet_internal.o --- libnet_internal.c: In function 'libnet_diag_dump_context': libnet_internal.c:118:40: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] 118 | fprintf(stderr, "packets sent:\t%lld\n", l->stats.packets_sent); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int u_int64_t {aka long unsigned int} | %ld libnet_internal.c:119:41: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] 119 | fprintf(stderr, "packet errors:\t%lld\n", l->stats.packet_errors); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int u_int64_t {aka long unsigned int} | %ld libnet_internal.c:120:41: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] 120 | fprintf(stderr, "bytes written:\t%lld\n", l->stats.bytes_written); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int u_int64_t {aka long unsigned int} | %ld libnet_internal.c: In function 'libnet_diag_dump_pblock_type': libnet_internal.c:304:22: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 304 | snprintf(buf, sizeof(buf), | ^~~ | | | int8_t * {aka signed char *} In file included from /usr/include/stdio.h:151, from ../include/libnet.h:63, from libnet_internal.c:37: /usr/include/iso/stdio_c99.h:82:21: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD, | ^ libnet_internal.c:306:20: warning: pointer targets in returning 'int8_t *' {aka 'signed char *'} from a function with return type 'char *' differ in signedness [-Wpointer-sign] 306 | return (buf); | ^ --- libnet_pblock.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_pblock.c' || echo './'`libnet_pblock.c --- libnet_port_list.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_port_list.c' || echo './'`libnet_port_list.c --- libnet_prand.o --- --- libnet_internal.o --- libnet_internal.c: In function 'libnet_diag_dump_pblock': libnet_internal.c:305:46: warning: '(): unknown pblock type: ' directive output truncated writing 25 bytes into a region of size 22 [-Wformat-truncation=] 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~^~~ In function 'libnet_diag_dump_pblock_type', inlined from 'libnet_diag_dump_pblock_type' at libnet_internal.c:174:1, inlined from 'libnet_diag_dump_pblock' at libnet_internal.c:135:9: libnet_internal.c:305:21: note: directive argument in the range [0, 255] 305 | "%s(): unknown pblock type: %d", __func__, type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c:304:13: note: 'snprintf' output between 55 and 57 bytes into a destination of size 50 304 | snprintf(buf, sizeof(buf), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c: In function 'libnet_diag_dump_pblock': libnet_internal.c:305:46: warning: '(): unknown pblock type: ' directive output truncated writing 25 bytes into a region of size 22 [-Wformat-truncation=] 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~^~~ In function 'libnet_diag_dump_pblock_type', inlined from 'libnet_diag_dump_pblock_type' at libnet_internal.c:174:1, inlined from 'libnet_diag_dump_pblock' at libnet_internal.c:143:13: --- libnet_prand.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_prand.c' || echo './'`libnet_prand.c --- libnet_internal.o --- libnet_internal.c:305:21: note: directive argument in the range [0, 255] 305 | "%s(): unknown pblock type: %d", __func__, type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c:304:13: note: 'snprintf' output between 55 and 57 bytes into a destination of size 50 304 | snprintf(buf, sizeof(buf), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c: In function 'libnet_diag_dump_pblock': libnet_internal.c:305:46: warning: '(): unknown pblock type: ' directive output truncated writing 25 bytes into a region of size 22 [-Wformat-truncation=] 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~^~~ In function 'libnet_diag_dump_pblock_type', inlined from 'libnet_diag_dump_pblock_type' at libnet_internal.c:174:1, inlined from 'libnet_diag_dump_pblock' at libnet_internal.c:150:13: libnet_internal.c:305:21: note: directive argument in the range [0, 255] 305 | "%s(): unknown pblock type: %d", __func__, type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c:304:13: note: 'snprintf' output between 55 and 57 bytes into a destination of size 50 304 | snprintf(buf, sizeof(buf), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c: In function 'libnet_diag_dump_pblock_type': libnet_internal.c:305:46: warning: '(): unknown pblock type: ' directive output truncated writing 25 bytes into a region of size 22 [-Wformat-truncation=] 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~^~~ In function 'libnet_diag_dump_pblock_type', inlined from 'libnet_diag_dump_pblock_type' at libnet_internal.c:174:1: libnet_internal.c:305:21: note: directive argument in the range [0, 255] 305 | "%s(): unknown pblock type: %d", __func__, type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libnet_internal.c:304:13: note: 'snprintf' output between 55 and 57 bytes into a destination of size 50 304 | snprintf(buf, sizeof(buf), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 305 | "%s(): unknown pblock type: %d", __func__, type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- libnet_raw.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_raw.c' || echo './'`libnet_raw.c --- libnet_port_list.o --- libnet_port_list.c: In function 'libnet_plist_chain_new': libnet_port_list.c:121:22: warning: pointer targets in assignment from 'char *' to 'int8_t *' {aka 'signed char *'} differ in signedness [-Wpointer-sign] 121 | for (i = 0; (tok = strtok(!i ? token_list : NULL, ",")); i = 1, cur_node++) | ^ libnet_port_list.c:145:27: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] 145 | tmp->bport = atoi(tok); | ^~~ | | | int8_t * {aka signed char *} In file included from /usr/include/stdlib.h:41, from ../include/libnet.h:68, from libnet_port_list.c:37: /usr/include/iso/stdlib_iso.h:124:17: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 124 | extern int atoi(const char *); | ^~~~~~~~~~~~ libnet_port_list.c:165:41: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 165 | tmp->eport = (++j != strlen(tok)) ? atoi(&tok[j]) : 65535; | ^~~ | | | int8_t * {aka signed char *} In file included from /usr/include/string.h:35, from ../include/libnet.h:64: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ libnet_port_list.c:165:54: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] 165 | tmp->eport = (++j != strlen(tok)) ? atoi(&tok[j]) : 65535; | ^~~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdlib_iso.h:124:17: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 124 | extern int atoi(const char *); | ^~~~~~~~~~~~ libnet_port_list.c:107:19: warning: pointer 'all_lists_tmp' may be used after 'realloc' [-Wuse-after-free] 107 | all_lists = all_lists_tmp; | ~~~~~~~~~~^~~~~~~~~~~~~~~ libnet_port_list.c:104:17: note: call to 'realloc' here 104 | all_lists = realloc(all_lists_tmp, (sizeof(u_int16_t) * (cur_id + 1))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- libnet_resolve.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_resolve.c' || echo './'`libnet_resolve.c --- libnet_version.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_version.c' || echo './'`libnet_version.c --- libnet_write.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_write.c' || echo './'`libnet_write.c --- libnet_resolve.o --- libnet_resolve.c: In function 'libnet_hex_aton': libnet_resolve.c:393:20: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign] 393 | l = strtol(s, (char **)&pp, 16); | ^ | | | int8_t * {aka signed char *} In file included from /usr/include/stdlib.h:41, from ../include/libnet.h:68, from libnet_resolve.c:37: /usr/include/iso/stdlib_iso.h:157:24: note: expected 'const char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 157 | extern long int strtol(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD, int); | ^ --- libnet_link_dlpi.o --- gcc -DHAVE_CONFIG_H -I. -I. -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -Wall -c `test -f 'libnet_link_dlpi.c' || echo './'`libnet_link_dlpi.c --- libnet_write.o --- libnet_write.c: In function 'libnet_write_raw_ipv6': libnet_write.c:383:46: warning: too many arguments for format [-Wformat-extra-args] 383 | snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, "%s(): no IPv6 support\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~ --- libnet_link_dlpi.o --- libnet_link_dlpi.c: In function 'libnet_open_link': libnet_link_dlpi.c:134:8: warning: pointer targets in assignment from 'char *' to 'int8_t *' {aka 'signed char *'} differ in signedness [-Wpointer-sign] 134 | cp = strpbrk(l->device, "0123456789"); | ^ libnet_link_dlpi.c:141:18: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness [-Wpointer-sign] 141 | ppa = strtol(cp, &eos, 10); | ^~ | | | int8_t * {aka signed char *} In file included from /usr/include/stdlib.h:41, from libnet_link_dlpi.c:71: /usr/include/iso/stdlib_iso.h:157:24: note: expected 'const char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 157 | extern long int strtol(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD, int); | ^ libnet_link_dlpi.c:141:22: error: passing argument 2 of 'strtol' from incompatible pointer type [-Wincompatible-pointer-types] 141 | ppa = strtol(cp, &eos, 10); | ^~~~ | | | int8_t ** {aka signed char **} /usr/include/iso/stdlib_iso.h:157:52: note: expected 'char ** restrict' but argument is of type 'int8_t **' {aka 'signed char **'} 157 | extern long int strtol(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD, int); | ^ libnet_link_dlpi.c:152:17: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 152 | strncpy(dname, l->device, sizeof(dname) - 1); | ^~~~~ | | | int8_t * {aka signed char *} In file included from /usr/include/string.h:35, from libnet_link_dlpi.c:72: /usr/include/iso/string_iso.h:82:22: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ libnet_link_dlpi.c:157:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 157 | sprintf(dname, "%s/%s", DLPI_DEV_PREFIX, l->device); | ^~~~~ | | | int8_t * {aka signed char *} In file included from /usr/include/stdio.h:82, from libnet_link_dlpi.c:70: /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:185:12: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 185 | strcpy(dname2, dname); | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ libnet_link_dlpi.c:185:20: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] 185 | strcpy(dname2, dname); | ^~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/string_iso.h:75:43: note: expected 'const char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ libnet_link_dlpi.c:186:17: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] 186 | cp = strchr(dname, *cp); | ^~~~~ | | | int8_t * {aka signed char *} /usr/include/iso/string_iso.h:140:21: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 140 | extern char *strchr(const char *, int); | ^~~~~~~~~~~~ libnet_link_dlpi.c:186:8: warning: pointer targets in assignment from 'char *' to 'int8_t *' {aka 'signed char *'} differ in signedness [-Wpointer-sign] 186 | cp = strchr(dname, *cp); | ^ libnet_link_dlpi.c:189:18: warning: pointer targets in passing argument 1 of 'open' differ in signedness [-Wpointer-sign] 189 | l->fd = open(dname, O_RDWR); | ^~~~~ | | | int8_t * {aka signed char *} In file included from libnet_link_dlpi.c:68: /usr/include/fcntl.h:132:17: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 132 | extern int open(const char *, int, ...); | ^~~~~~~~~~~~ libnet_link_dlpi.c:202:22: warning: pointer targets in passing argument 1 of 'open' differ in signedness [-Wpointer-sign] 202 | l->fd = open(dname2, O_RDWR); | ^~~~~~ | | | int8_t * {aka signed char *} /usr/include/fcntl.h:132:17: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 132 | extern int open(const char *, int, ...); | ^~~~~~~~~~~~ libnet_link_dlpi.c:217:24: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] 217 | ppa = atoi(cp); | ^~ | | | int8_t * {aka signed char *} /usr/include/iso/stdlib_iso.h:124:17: note: expected 'const char *' but argument is of type 'int8_t *' {aka 'signed char *'} 124 | extern int atoi(const char *); | ^~~~~~~~~~~~ libnet_link_dlpi.c:229:27: warning: pointer targets in passing argument 2 of 'dlinforeq' differ in signedness [-Wpointer-sign] 229 | if (dlinforeq(l->fd, l->err_buf) < 0 || | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:95:27: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 95 | static int dlinforeq(int, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:230:46: warning: pointer targets in passing argument 3 of 'dlinfoack' differ in signedness [-Wpointer-sign] 230 | dlinfoack(l->fd, (int8_t *)buf, l->err_buf) < 0) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:94:37: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 94 | static int dlinfoack(int, int8_t *, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:236:39: warning: pointer targets in passing argument 3 of 'dlattachreq' differ in signedness [-Wpointer-sign] 236 | (dlattachreq(l->fd, ppa, l->err_buf) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:91:42: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 91 | static int dlattachreq(int, bpf_u_int32, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:237:35: warning: pointer targets in passing argument 2 of 'dlokack' differ in signedness [-Wpointer-sign] 237 | < 0 || dlokack(l->fd, "attach", (int8_t *)buf, l->err_buf) < 0)) | ^~~~~~~~ | | | char * libnet_link_dlpi.c:96:25: note: expected 'const int8_t *' {aka 'const signed char *'} but argument is of type 'char *' 96 | static int dlokack(int, const int8_t *, int8_t *, int8_t *); | ^~~~~~~~~~~~~~ libnet_link_dlpi.c:237:61: warning: pointer targets in passing argument 4 of 'dlokack' differ in signedness [-Wpointer-sign] 237 | < 0 || dlokack(l->fd, "attach", (int8_t *)buf, l->err_buf) < 0)) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:96:51: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 96 | static int dlokack(int, const int8_t *, int8_t *, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:246:30: warning: pointer targets in passing argument 3 of 'dlbindreq' differ in signedness [-Wpointer-sign] 246 | if (dlbindreq(l->fd, 0, l->err_buf) < 0 || | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:93:40: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 93 | static int dlbindreq(int, bpf_u_int32, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:247:46: warning: pointer targets in passing argument 3 of 'dlbindack' differ in signedness [-Wpointer-sign] 247 | dlbindack(l->fd, (int8_t *)buf, l->err_buf) < 0) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:92:37: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 92 | static int dlbindack(int, int8_t *, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:256:27: warning: pointer targets in passing argument 2 of 'dlinforeq' differ in signedness [-Wpointer-sign] 256 | if (dlinforeq(l->fd, l->err_buf) < 0 || | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:95:27: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 95 | static int dlinforeq(int, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:257:46: warning: pointer targets in passing argument 3 of 'dlinfoack' differ in signedness [-Wpointer-sign] 257 | dlinfoack(l->fd, (int8_t *)buf, l->err_buf) < 0) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:94:37: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 94 | static int dlinfoack(int, int8_t *, int8_t *); | ^~~~~~~~ libnet_link_dlpi.c:279:61: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=] 279 | sprintf(l->err_buf, "%s(): unknown mac type 0x%lu\n", __func__, | ~~^ | | | long unsigned int | %u 280 | (u_int32_t) infop->dl_mac_type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int libnet_link_dlpi.c: In function 'send_request': libnet_link_dlpi.c:313:13: warning: pointer targets in assignment from 'int8_t *' {aka 'signed char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 313 | ctl.buf = ptr; | ^ libnet_link_dlpi.c:317:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 317 | sprintf(ebuf, "%s(): putmsg \"%s\": %s\n", __func__, what, | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c: In function 'recv_ack': libnet_link_dlpi.c:333:13: warning: pointer targets in assignment from 'int8_t *' {aka 'signed char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 333 | ctl.buf = bufp; | ^ libnet_link_dlpi.c:338:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 338 | sprintf(ebuf, "%s(): %s getmsg: %s\n", __func__, what, strerror(errno)); | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:361:29: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 361 | sprintf(ebuf, "recv_ack: %s bad ppa (device unit)", what); | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:364:29: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 364 | sprintf(ebuf, "recv_ack: %s: %s", | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:368:29: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 368 | sprintf(ebuf, | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:372:29: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 372 | sprintf(ebuf, "recv_ack: %s error 0x%x", what, | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:379:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 379 | sprintf(ebuf, "recv_ack: %s unexpected primitive ack 0x%x ", | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c:386:17: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 386 | sprintf(ebuf, "recv_ack: %s ack too small (%d < %d)", | ^~~~ | | | int8_t * {aka signed char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'int8_t *' {aka 'signed char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ libnet_link_dlpi.c: In function 'dlattachreq': libnet_link_dlpi.c:401:59: warning: pointer targets in passing argument 4 of 'send_request' differ in signedness [-Wpointer-sign] 401 | return (send_request(fd, (int8_t *)&req, sizeof(req), "attach", ebuf, 0)); | ^~~~~~~~ | | | char * libnet_link_dlpi.c:306:52: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 306 | send_request(int fd, int8_t *ptr, int len, int8_t *what, int8_t *ebuf, | ~~~~~~~~^~~~ libnet_link_dlpi.c: In function 'dlbindreq': libnet_link_dlpi.c:425:59: warning: pointer targets in passing argument 4 of 'send_request' differ in signedness [-Wpointer-sign] 425 | return (send_request(fd, (int8_t *)&req, sizeof(req), "bind", ebuf, 0)); | ^~~~~~ | | | char * libnet_link_dlpi.c:306:52: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 306 | send_request(int fd, int8_t *ptr, int len, int8_t *what, int8_t *ebuf, | ~~~~~~~~^~~~ libnet_link_dlpi.c: In function 'dlbindack': libnet_link_dlpi.c:431:44: warning: pointer targets in passing argument 3 of 'recv_ack' differ in signedness [-Wpointer-sign] 431 | return (recv_ack(fd, DL_BIND_ACK_SIZE, "bind", bufp, ebuf)); | ^~~~~~ | | | char * libnet_link_dlpi.c:325:42: note: expected 'const int8_t *' {aka 'const signed char *'} but argument is of type 'char *' 325 | recv_ack(int fd, int size, const int8_t *what, int8_t *bufp, int8_t *ebuf) | ~~~~~~~~~~~~~~^~~~ libnet_link_dlpi.c: In function 'dlinforeq': libnet_link_dlpi.c:447:59: warning: pointer targets in passing argument 4 of 'send_request' differ in signedness [-Wpointer-sign] 447 | return (send_request(fd, (int8_t *)&req, sizeof(req), "info", ebuf, | ^~~~~~ | | | char * libnet_link_dlpi.c:306:52: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 306 | send_request(int fd, int8_t *ptr, int len, int8_t *what, int8_t *ebuf, | ~~~~~~~~^~~~ libnet_link_dlpi.c: In function 'dlinfoack': libnet_link_dlpi.c:454:44: warning: pointer targets in passing argument 3 of 'recv_ack' differ in signedness [-Wpointer-sign] 454 | return (recv_ack(fd, DL_INFO_ACK_SIZE, "info", bufp, ebuf)); | ^~~~~~ | | | char * libnet_link_dlpi.c:325:42: note: expected 'const int8_t *' {aka 'const signed char *'} but argument is of type 'char *' 325 | recv_ack(int fd, int size, const int8_t *what, int8_t *bufp, int8_t *ebuf) | ~~~~~~~~~~~~~~^~~~ libnet_link_dlpi.c: In function 'strioctl': libnet_link_dlpi.c:468:19: warning: pointer targets in assignment from 'int8_t *' {aka 'signed char *'} to 'char *' differ in signedness [-Wpointer-sign] 468 | str.ic_dp = dp; | ^ libnet_link_dlpi.c: In function 'libnet_write_link': libnet_link_dlpi.c:720:17: warning: pointer targets in assignment from 'u_int8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 720 | data.buf = packet; | ^ libnet_link_dlpi.c: In function 'libnet_get_hwaddr': libnet_link_dlpi.c:754:67: warning: pointer targets in passing argument 4 of 'send_request' differ in signedness [-Wpointer-sign] 754 | if (send_request(l->fd, (int8_t *)dlp, DL_PHYS_ADDR_REQ_SIZE, "physaddr", | ^~~~~~~~~~ | | | char * libnet_link_dlpi.c:306:52: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 306 | send_request(int fd, int8_t *ptr, int len, int8_t *what, int8_t *ebuf, | ~~~~~~~~^~~~ libnet_link_dlpi.c:755:14: warning: pointer targets in passing argument 5 of 'send_request' differ in signedness [-Wpointer-sign] 755 | l->err_buf, 0) < 0) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:306:66: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 306 | send_request(int fd, int8_t *ptr, int len, int8_t *what, int8_t *ebuf, | ~~~~~~~~^~~~ libnet_link_dlpi.c:759:48: warning: pointer targets in passing argument 3 of 'recv_ack' differ in signedness [-Wpointer-sign] 759 | if (recv_ack(l->fd, DL_PHYS_ADDR_ACK_SIZE, "physaddr", (int8_t *)dlp, | ^~~~~~~~~~ | | | char * libnet_link_dlpi.c:325:42: note: expected 'const int8_t *' {aka 'const signed char *'} but argument is of type 'char *' 325 | recv_ack(int fd, int size, const int8_t *what, int8_t *bufp, int8_t *ebuf) | ~~~~~~~~~~~~~~^~~~ libnet_link_dlpi.c:760:14: warning: pointer targets in passing argument 5 of 'recv_ack' differ in signedness [-Wpointer-sign] 760 | l->err_buf) < 0) | ~^~~~~~~~~ | | | char * libnet_link_dlpi.c:325:70: note: expected 'int8_t *' {aka 'signed char *'} but argument is of type 'char *' 325 | recv_ack(int fd, int size, const int8_t *what, int8_t *bufp, int8_t *ebuf) | ~~~~~~~~^~~~ libnet_link_dlpi.c: At top level: libnet_link_dlpi.c:110:20: warning: 'ctlbuf' defined but not used [-Wunused-variable] 110 | static bpf_u_int32 ctlbuf[MAXDLBUF]; | ^~~~~~ *** [libnet_link_dlpi.o] Error code 1 bmake[1]: stopped making "all" in /home/pbulk/build/devel/libnet11/work/libnet/src bmake[1]: 1 error bmake[1]: stopped making "all" in /home/pbulk/build/devel/libnet11/work/libnet/src *** [all-recursive] Error code 1 bmake: stopped making "all" in /home/pbulk/build/devel/libnet11/work/libnet bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/devel/libnet11/work/libnet *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/libnet11 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/libnet11