Created
October 1, 2024 09:54
-
-
Save gtxaspec/d0260bc0cf60db725ce7f12274778421 to your computer and use it in GitHub Desktop.
dhcpcd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aag@mips-development-old:/tmp/dhcpcd$ ./configure --os=linux | |
| configure args: --os=linux | |
| Configuring dhcpcd for ... linux | |
| Found git checkout ... Adding debugging CFLAGS | |
| Enabling INET support | |
| Enabling ARP support | |
| Enabling ARPing support | |
| Enabling IPv4LL support | |
| Enabling INET6 support | |
| Enabling DHCPv6 support | |
| Enabling Authentication | |
| Enabling Privilege Separation | |
| Detecting a suitable user for dhcpcd ... | |
| No suitable user found for Priviledge Separation! | |
| Using compiler .. cc | |
| cc (Debian 13.3.0-1) 13.3.0 | |
| Testing for capsicum ... no | |
| Testing for pledge ... no | |
| dhcpcd-definitions.conf will be embedded in dhcpcd itself | |
| Testing for nl80211 ... yes | |
| Testing for IN6_ADDR_GEN_MODE_NONE ... yes | |
| Testing for getifaddrs ... yes | |
| Testing for ifaddrs.ifa_addrflags ... no | |
| Testing for clock_gettime ... yes | |
| Testing for closefrom ... yes | |
| Testing ioctl request type ... unsigned long | |
| Testing for inet_ntoa ... yes | |
| Testing for arc4random ... yes | |
| Testing for arc4random_uniform ... yes | |
| Testing for memset_explicit ... no | |
| Testing for explicit_bzero ... no | |
| Testing for memset_s ... no | |
| Testing for open_memstream ... yes | |
| Testing for pidfile_lock ... no | |
| Testing for setproctitle ... no | |
| Testing for strlcpy ... yes | |
| Testing for strtoi ... no | |
| Testing for consttime_memequal ... no | |
| Testing for dprintf ... yes | |
| Testing for TAILQ_FOREACH_SAFE ... no | |
| Testing for TAILQ_FOREACH_MUTABLE ... no | |
| Testing for TAILQ_CONCAT ...yes | |
| Testing for rb_tree_init ... no | |
| Testing for reallocarray ... yes | |
| Testing for ppoll ... yes | |
| Testing for be64enc ... no | |
| Testing for fls64 ... no | |
| Testing for MD5Init ... no | |
| Testing for sha2.h ... no | |
| Testing for SHA256_Init ... no | |
| Testing for SHA256Init ... no | |
| Testing for hmac ... no | |
| Checking for libudev ... no | |
| Checking for ntpd ... not found | |
| Checking for chronyd ... not found | |
| Checking for timesyncd ... /usr/lib/systemd/systemd-timesyncd | |
| Checking for ypbind ... not found | |
| Assuming ypbind is Linux | |
| SYSCONFDIR = /etc | |
| SBINDIR = /sbin | |
| LIBDIR = /lib | |
| LIBEXECDIR = /libexec | |
| DBDIR = /var/db/dhcpcd | |
| RUNDIR = /var/run/dhcpcd | |
| MANDIR = /usr/share/man | |
| DATADIR = /usr/share | |
| HOOKSCRIPTS = 50-timesyncd.conf | |
| EGHOOKSCRIPTS = 50-yp.conf | |
| STATUSARG = | |
| PRIVSEPUSER = dhcpcd | |
| aag@mips-development-old:/tmp/dhcpcd$ CC=mipsel-linux-gcc make -j16 | |
| for x in src hooks; do cd $x; make all || exit $?; cd ..; done | |
| make[1]: Entering directory '/tmp/dhcpcd/src' | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c common.c -o common.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c control.c -o control.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c dhcpcd.c -o dhcpcd.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c duid.c -o duid.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c eloop.c -o eloop.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c logerr.c -o logerr.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c if.c -o if.o | |
| /bin/sh genembedh dhcpcd-definitions.conf dhcpcd-definitions-small.conf dhcpcd-embedded.h.in > dhcpcd-embedded.h | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c sa.c -o sa.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c route.c -o route.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c dhcp-common.c -o dhcp-common.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c script.c -o script.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c auth.c -o auth.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c if-linux.c -o if-linux.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c dhcp.c -o dhcp.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c ipv4.c -o ipv4.o | |
| mipsel-linux-gcc -O2 -g -Wall -Wextra -Wundef -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Winline -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Wredundant-decls -Wconversion -Wstrict-overflow -std=c99 -DHAVE_CONFIG_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c bpf.c -o bpf.o | |
| if.c: In function ‘if_ioctl’: | |
| if.c:157:39: warning: conversion to ‘int’ from ‘ioctl_request_t’ {aka ‘long unsigned int’} may change the sign of the result [-Wsign-conversion] | |
| 157 | return ioctl(ctx->pf_inet_fd, req, data, len); | |
| | ^~~ | |
| if.c: In function ‘if_randomisemac’: | |
| if.c:226:35: error: implicit declaration of function ‘arc4random’; did you mean ‘srandom’? [-Wimplicit-function-declaration] | |
| 226 | randnum = arc4random(); | |
| | ^~~~~~~~~~ | |
| | srandom | |
| if.c:226:35: warning: nested extern declaration of ‘arc4random’ [-Wnested-externs] | |
| if.c:226:35: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| if.c: In function ‘if_findifpfromcmsg’: | |
| if.c:901:37: warning: unsigned conversion from ‘long int’ to ‘long unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 901 | cm = (struct cmsghdr *)CMSG_NXTHDR(msg, cm)) | |
| | ^~~~~~~~~~~ | |
| if.c:901:37: warning: unsigned conversion from ‘long int’ to ‘long unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| In file included from /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/linux/netdevice.h:28, | |
| from /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/linux/if_arp.h:26, | |
| from if-linux.c:60: | |
| /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/linux/if.h:142:8: error: redefinition of ‘struct ifmap’ | |
| 142 | struct ifmap { | |
| | ^~~~~ | |
| In file included from if-linux.c:49: | |
| /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/net/if.h:64:8: note: originally defined here | |
| 64 | struct ifmap { | |
| | ^~~~~ | |
| make[1]: *** [Makefile:55: if.o] Error 1 | |
| make[1]: *** Waiting for unfinished jobs.... | |
| /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/linux/if.h:176:8: error: redefinition of ‘struct ifreq’ | |
| 176 | struct ifreq { | |
| | ^~~~~ | |
| /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/net/if.h:76:8: note: originally defined here | |
| 76 | struct ifreq { | |
| | ^~~~~ | |
| /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/linux/if.h:225:8: error: redefinition of ‘struct ifconf’ | |
| 225 | struct ifconf { | |
| | ^~~~~~ | |
| /home/aag/toolchain/mipsel-thingino-linux-musl_sdk-buildroot/mipsel-thingino-linux-musl/sysroot/usr/include/net/if.h:116:8: note: originally defined here | |
| 116 | struct ifconf { | |
| | ^~~~~~ | |
| dhcpcd.c: In function ‘main’: | |
| dhcpcd.c:1984:9: error: implicit declaration of function ‘closefrom’; did you mean ‘closelog’? [-Wimplicit-function-declaration] | |
| 1984 | closefrom(STDERR_FILENO + 1); | |
| | ^~~~~~~~~ | |
| | closelog | |
| dhcpcd.c:1984:9: warning: nested extern declaration of ‘closefrom’ [-Wnested-externs] | |
| make[1]: *** [Makefile:55: dhcpcd.o] Error 1 | |
| if-linux.c: In function ‘if_copyrt’: | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:683:40: note: in expansion of macro ‘RTA_NEXT’ | |
| 683 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| if-linux.c:696:52: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 696 | ifindex = *(unsigned int *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c:700:58: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 700 | rt->rt_metric = *(unsigned int *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c:708:47: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 708 | r2 = (struct rtattr *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:709:53: note: in expansion of macro ‘RTA_NEXT’ | |
| 709 | for (; RTA_OK(r2, l2); r2 = RTA_NEXT(r2, l2)) { | |
| | ^~~~~~~~ | |
| if-linux.c:712:71: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 712 | rt->rt_mtu = *(unsigned int *)RTA_DATA(r2); | |
| | ^~~~~~~~ | |
| if-linux.c:727:64: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 727 | memcpy((char *)sa + sa_addroffset(sa), RTA_DATA(rta), | |
| | ^~~~~~~~ | |
| if-linux.c:728:29: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 728 | MIN(salen, RTA_PAYLOAD(rta))); | |
| | ^~~ | |
| if-linux.c:728:29: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| if-linux.c: In function ‘link_addr’: | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:853:48: note: in expansion of macro ‘RTA_NEXT’ | |
| 853 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| if-linux.c:857:61: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 857 | memcpy(&brd.s_addr, RTA_DATA(rta), | |
| | ^~~~~~~~ | |
| if-linux.c:862:53: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 862 | memcpy(&brd.s_addr, RTA_DATA(rta), | |
| | ^~~~~~~~ | |
| if-linux.c:866:54: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 866 | memcpy(&addr.s_addr, RTA_DATA(rta), | |
| | ^~~~~~~~ | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:892:48: note: in expansion of macro ‘RTA_NEXT’ | |
| 892 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| if-linux.c:895:63: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 895 | address6 = (struct in6_addr *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c:898:61: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 898 | local6 = (struct in6_addr *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c: In function ‘link_neigh’: | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:970:48: note: in expansion of macro ‘RTA_NEXT’ | |
| 970 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| if-linux.c:973:56: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 973 | memcpy(&addr6.s6_addr, RTA_DATA(rta), | |
| | ^~~~~~~~ | |
| if-linux.c: In function ‘link_netlink’: | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:1022:40: note: in expansion of macro ‘RTA_NEXT’ | |
| 1022 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| if-linux.c:1031:46: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1031 | strlcpy(ifn, (char *)RTA_DATA(rta), sizeof(ifn)); | |
| | ^~~~~~~~ | |
| if-linux.c:1079:46: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1079 | void *hwa = hwaddr != NULL ? RTA_DATA(hwaddr) : NULL; | |
| | ^~~~~~~~ | |
| if-linux.c:1082:58: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1082 | if (hwaddr != NULL && hwaddr->rta_len != RTA_LENGTH(hwl)) | |
| | ^~~~~~~~~~ | |
| if-linux.c: In function ‘add_attr_l’: | |
| if-linux.c:1193:46: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1193 | unsigned short len = (unsigned short)RTA_LENGTH(alen); | |
| | ^~~~~~~~~~ | |
| if-linux.c:1196:39: warning: conversion to ‘__u32’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 1196 | if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { | |
| | ^ | |
| if-linux.c:1205:24: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1205 | memcpy(RTA_DATA(rta), data, alen); | |
| | ^~~~~~~~ | |
| if-linux.c:1206:50: warning: conversion to ‘__u32’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 1206 | n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); | |
| | ^ | |
| if-linux.c: In function ‘add_attr_32’: | |
| if-linux.c:1223:30: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1223 | unsigned short len = RTA_LENGTH(sizeof(data)); | |
| | ^~~~~~~~~~ | |
| dhcp.c: In function ‘dhcp_new_xid’: | |
| dhcp.c:1491:30: error: implicit declaration of function ‘arc4random’; did you mean ‘srandom’? [-Wimplicit-function-declaration] | |
| 1491 | state->xid = arc4random(); | |
| | ^~~~~~~~~~ | |
| | srandom | |
| dhcp.c:1491:30: warning: nested extern declaration of ‘arc4random’ [-Wnested-externs] | |
| dhcp.c:1491:30: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| if-linux.c:1234:16: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1234 | memcpy(RTA_DATA(rta), &data, sizeof(data)); | |
| | ^~~~~~~~ | |
| if-linux.c: In function ‘rta_add_attr_32’: | |
| if-linux.c:1244:30: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1244 | unsigned short len = RTA_LENGTH(sizeof(data)); | |
| | ^~~~~~~~~~ | |
| if-linux.c:1255:16: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1255 | memcpy(RTA_DATA(subrta), &data, sizeof(data)); | |
| | ^~~~~~~~ | |
| bpf.c: In function ‘bpf_bootp’: | |
| bpf.c:709:2: warning: #warning A compromised PF_PACKET socket can be used as a raw socket [-Wcpp] | |
| 709 | #warning A compromised PF_PACKET socket can be used as a raw socket | |
| | ^~~~~~~ | |
| if-linux.c: In function ‘_if_addressexists’: | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:1537:40: note: in expansion of macro ‘RTA_NEXT’ | |
| 1537 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| dhcp.c: In function ‘dhcp_makeudppacket’: | |
| if-linux.c:1540:44: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1540 | memcpy(&this_addr, RTA_DATA(rta), sizeof(this_addr)); | |
| | ^~~~~~~~ | |
| dhcp.c:1676:31: error: implicit declaration of function ‘arc4random_uniform’ [-Wimplicit-function-declaration] | |
| 1676 | ip->ip_id = (uint16_t)arc4random_uniform(UINT16_MAX); | |
| | ^~~~~~~~~~~~~~~~~~ | |
| dhcp.c:1676:31: warning: nested extern declaration of ‘arc4random_uniform’ [-Wnested-externs] | |
| dhcp.c: In function ‘send_message’: | |
| dhcp.c:1752:55: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 1752 | RT = (state->interval * MSEC_PER_SEC) + | |
| | ^ | |
| if-linux.c: In function ‘if_route’: | |
| if-linux.c:1665:44: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1665 | metrics->rta_len = RTA_LENGTH(0); | |
| | ^~~~~~~~~~ | |
| if-linux.c:1669:29: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1669 | RTA_DATA(metrics), | |
| | ^~~~~~~~ | |
| if-linux.c:1670:45: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1670 | (unsigned short)RTA_PAYLOAD(metrics)); | |
| | ^~~~~~~~~~~ | |
| if-linux.c: In function ‘bpf_read’: | |
| if-linux.c:1860:29: warning: unsigned conversion from ‘long int’ to ‘long unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 1860 | cmsg = CMSG_NXTHDR(&msg, cmsg)) | |
| | ^~~~~~~~~~~ | |
| if-linux.c:1860:29: warning: unsigned conversion from ‘long int’ to ‘long unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| if-linux.c: In function ‘if_address6’: | |
| if-linux.c:2000:7: warning: "IFA_F_MANAGETEMPADDR" is not defined, evaluates to 0 [-Wundef] | |
| 2000 | #elif IFA_F_MANAGETEMPADDR | |
| | ^~~~~~~~~~~~~~~~~~~~ | |
| if-linux.c: In function ‘_if_addrflags6’: | |
| if-linux.c:138:44: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 138 | #define RTA_NEXT(rta, attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ | |
| | ^~ | |
| if-linux.c:2048:40: note: in expansion of macro ‘RTA_NEXT’ | |
| 2048 | for (; RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) { | |
| | ^~~~~~~~ | |
| if-linux.c:2051:54: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 2051 | address = (struct in6_addr *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c:2054:52: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 2054 | local = (struct in6_addr *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c:2056:22: error: ‘IFA_FLAGS’ undeclared (first use in this function) | |
| 2056 | case IFA_FLAGS: | |
| | ^~~~~~~~~ | |
| if-linux.c:2056:22: note: each undeclared identifier is reported only once for each function it appears in | |
| if-linux.c:2057:45: warning: unsigned conversion from ‘int’ to ‘unsigned int’ changes value from ‘-4’ to ‘4294967292’ [-Wsign-conversion] | |
| 2057 | flags = (uint32_t *)RTA_DATA(rta); | |
| | ^~~~~~~~ | |
| if-linux.c: In function ‘if_disable_autolinklocal’: | |
| if-linux.c:2152:43: error: ‘IFLA_INET6_ADDR_GEN_MODE’ undeclared (first use in this function) | |
| 2152 | add_attr_8(&nlm.hdr, sizeof(nlm), IFLA_INET6_ADDR_GEN_MODE, | |
| | ^~~~~~~~~~~~~~~~~~~~~~~~ | |
| In file included from dhcp.c:69: | |
| dhcp.c: In function ‘dhcp_start’: | |
| eloop.h:36:33: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] | |
| 36 | #define MSEC_PER_SEC 1000 | |
| | ^~~~ | |
| dhcp.c:4213:17: note: in expansion of macro ‘MSEC_PER_SEC’ | |
| 4213 | delay = MSEC_PER_SEC + | |
| | ^~~~~~~~~~~~ | |
| if-linux.c:2153:13: error: ‘IN6_ADDR_GEN_MODE_NONE’ undeclared (first use in this function); did you mean ‘HAVE_IN6_ADDR_GEN_MODE_NONE’? | |
| 2153 | IN6_ADDR_GEN_MODE_NONE); | |
| | ^~~~~~~~~~~~~~~~~~~~~~ | |
| | HAVE_IN6_ADDR_GEN_MODE_NONE | |
| make[1]: *** [Makefile:55: if-linux.o] Error 1 | |
| make[1]: *** [Makefile:55: dhcp.o] Error 1 | |
| make[1]: Leaving directory '/tmp/dhcpcd/src' | |
| make: *** [Makefile:25: all] Error 2 | |
| aag@mips-development-old:/tmp/dhcpcd$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment