WARNING: [license.mk] Every package should define a LICENSE. ===> Building for cmu-dhcpd-3.3.7.9 clang -O -DNO_SNMP -c dhcp.c In file included from dhcp.c:42: ./dhcpd.h:182:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern ping(); ~~~~~~ ^ dhcp.c:124:17: error: variable has incomplete type 'struct rtentry' struct rtentry rt; ^ dhcp.c:124:9: note: forward declaration of 'struct rtentry' struct rtentry rt; ^ dhcp.c:144:2: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO,"using last binds dir %s",bindingsdir); ^ dhcp.c:189:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] binding->replys); ^~~~~~~~~~~~~~~ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ dhcp.c:508:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, "report_cliid(): cl is NULL"); ^ dhcp.c:539:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_NOTICE, " unknown hardware type: %d, ignoring DHCP client (hlen=%d, chaddr=%s, IPsrc=%s)", pkt->bp_htype, pkt->bp_hlen, haddrtoa(pkt->bp_chaddr,BP_CHADDR_LEN), inet_ntoa(recv_addr.sin_addr)); ^ dhcp.c:547:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, "DHCPpkterror %s [%s]: bad address length %d != %d (IPsrc=%s)", ^ dhcp.c:559:5: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_NOTICE, " bad Ethernet chaddr (all zeros), ignoring DHCP client, (IPsrc=%s)", inet_ntoa(recv_addr.sin_addr)); ^ dhcp.c:565:5: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_NOTICE, " bad Ethernet chaddr %s (broadcast or multicast), ignoring DHCP client (IPsrc=%s)", haddrtoa(pkt->bp_chaddr, pkt->bp_hlen), inet_ntoa(recv_addr.sin_addr)); ^ dhcp.c:588:28: warning: implicit declaration of function 'dhcp_opts_field' is invalid in C99 [-Wimplicit-function-declaration] if ((dhcp_opts_field_rc = dhcp_opts_field(cp + VEND_OFFSET, pktlen - VEND_OFFSET, cl, &errstr)) >= 0) { ^ dhcp.c:637:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " %s; ignoring DHCP client (cliid=%s, but may be inaccurate), (IPsrc=%s)", errstr, cliid_btoa(cl->cliid), inet_ntoa(recv_addr.sin_addr)); ^ dhcp.c:639:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " %s; ignoring DHCP client (chaddr=%s, but may be inaccurate), (IPsrc=%s)", errstr, cliid_btoa(cl->cliidhw), inet_ntoa(recv_addr.sin_addr)); ^ dhcp.c:641:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " %s; ignoring DHCP client (no cliid nor chaddr available to report), (IPsrc=%s)", errstr, inet_ntoa(recv_addr.sin_addr)); ^ dhcp.c:767:7: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " ignoring cliid option since -I option specified"); ^ dhcp.c:801:7: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_WARNING, " Client ID option (%s) doesn't correspond to chaddr (%s), (IPsrc=%s)", ^ dhcp.c:922:2: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR,"free_client_info(): called with NULL pointer! (will not free memory)"); ^ dhcp.c:934:2: warning: implicit declaration of function 'del_bindata' is invalid in C99 [-Wimplicit-function-declaration] del_bindata(cl->cliid); ^ dhcp.c:1006:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPDISCOVER"); ^ dhcp.c:1309:11: warning: implicit declaration of function 'access_network' is invalid in C99 [-Wimplicit-function-declaration] rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:1565:5: warning: implicit declaration of function 'fill_header' is invalid in C99 [-Wimplicit-function-declaration] if(fill_header(rpkt,hp,&bootsize)){ ^ dhcp.c:1602:5: warning: passing 'byte [1]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] cl.user->data,cl.user->length); ^~~~~~~~~~~~~ ./utils.h:12:88: note: passing argument to parameter 'value' here int insert_string_opt P_((struct bootp *bp, struct opts *opt, unsigned char tag, char *value, int len)); ^ dhcp.c:1606:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc=do_req_opts(hp, cl.req_opts, (u_char *) rpkt, &opt, &sent_options)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1606:11: note: place parentheses around the assignment to silence this warning if (rc=do_req_opts(hp, cl.req_opts, (u_char *) rpkt, &opt, &sent_options)) { ^ ( ) dhcp.c:1606:11: note: use '==' to turn this assignment into an equality comparison if (rc=do_req_opts(hp, cl.req_opts, (u_char *) rpkt, &opt, &sent_options)) { ^ == dhcp.c:1625:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc=do_req_opts(hp, (u_char *) &request_client_fqdn_option, (u_char *) rpkt, &opt, &sent_options)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1625:9: note: place parentheses around the assignment to silence this warning if (rc=do_req_opts(hp, (u_char *) &request_client_fqdn_option, (u_char *) rpkt, &opt, &sent_options)) { ^ ( ) dhcp.c:1625:9: note: use '==' to turn this assignment into an equality comparison if (rc=do_req_opts(hp, (u_char *) &request_client_fqdn_option, (u_char *) rpkt, &opt, &sent_options)) { ^ == dhcp.c:1638:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc=do_opts(hp, (u_char *) rpkt, &opt, &sent_options)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1638:9: note: place parentheses around the assignment to silence this warning if (rc=do_opts(hp, (u_char *) rpkt, &opt, &sent_options)) { ^ ( ) dhcp.c:1638:9: note: use '==' to turn this assignment into an equality comparison if (rc=do_opts(hp, (u_char *) rpkt, &opt, &sent_options)) { ^ == dhcp.c:1695:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPREQUEST"); ^ dhcp.c:2027:11: warning: implicit declaration of function 'access_network' is invalid in C99 [-Wimplicit-function-declaration] rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2031:10: warning: implicit declaration of function 'access_network' is invalid in C99 [-Wimplicit-function-declaration] rc=access_network(c->code,UNREG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2404:13: warning: implicit declaration of function 'access_network' is invalid in C99 [-Wimplicit-function-declaration] rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2408:11: warning: implicit declaration of function 'access_network' is invalid in C99 [-Wimplicit-function-declaration] rc=access_network(c->code,UNREG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2775:5: warning: implicit declaration of function 'fill_header' is invalid in C99 [-Wimplicit-function-declaration] if(fill_header(rpkt,hp,&bootsize)){ ^ dhcp.c:2816:6: warning: passing 'byte [1]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] cl.user->data,cl.user->length); ^~~~~~~~~~~~~ ./utils.h:12:88: note: passing argument to parameter 'value' here int insert_string_opt P_((struct bootp *bp, struct opts *opt, unsigned char tag, char *value, int len)); ^ dhcp.c:2820:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc=do_req_opts(hp, cl.req_opts, (u_char *) rpkt, &opt, &sent_options)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:2820:11: note: place parentheses around the assignment to silence this warning if (rc=do_req_opts(hp, cl.req_opts, (u_char *) rpkt, &opt, &sent_options)) { ^ ( ) dhcp.c:2820:11: note: use '==' to turn this assignment into an equality comparison if (rc=do_req_opts(hp, cl.req_opts, (u_char *) rpkt, &opt, &sent_options)) { ^ == dhcp.c:2839:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc=do_req_opts(hp, (u_char *) &request_client_fqdn_option, (u_char *) rpkt, &opt, &sent_options)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:2839:9: note: place parentheses around the assignment to silence this warning if (rc=do_req_opts(hp, (u_char *) &request_client_fqdn_option, (u_char *) rpkt, &opt, &sent_options)) { ^ ( ) dhcp.c:2839:9: note: use '==' to turn this assignment into an equality comparison if (rc=do_req_opts(hp, (u_char *) &request_client_fqdn_option, (u_char *) rpkt, &opt, &sent_options)) { ^ == dhcp.c:2851:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc=do_opts(hp, (u_char *) rpkt, &opt, &sent_options)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:2851:9: note: place parentheses around the assignment to silence this warning if (rc=do_opts(hp, (u_char *) rpkt, &opt, &sent_options)) { ^ ( ) dhcp.c:2851:9: note: use '==' to turn this assignment into an equality comparison if (rc=do_opts(hp, (u_char *) rpkt, &opt, &sent_options)) { ^ == dhcp.c:2896:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPRELEASE"); ^ dhcp.c:2992:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPDECLINE"); ^ dhcp.c:3082:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPINFORM"); ^ dhcp.c:3411:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc = do_req_opts(hp, req_opts, bp, cur, f)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:3411:9: note: place parentheses around the assignment to silence this warning if (rc = do_req_opts(hp, req_opts, bp, cur, f)) { ^ ( ) dhcp.c:3411:9: note: use '==' to turn this assignment into an equality comparison if (rc = do_req_opts(hp, req_opts, bp, cur, f)) { ^ == dhcp.c:3444:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (rc = insert_generic_opt((struct bootp *) bp, cur, tag_code, tag_data, (int) tag_datalen)) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:3444:11: note: place parentheses around the assignment to silence this warning if (rc = insert_generic_opt((struct bootp *) bp, cur, tag_code, tag_data, (int) tag_datalen)) ^ ( ) dhcp.c:3444:11: note: use '==' to turn this assignment into an equality comparison if (rc = insert_generic_opt((struct bootp *) bp, cur, tag_code, tag_data, (int) tag_datalen)) ^ == dhcp.c:3708:7: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " cannot insert option %d, length of client hostname '%s' is greater than %d ", ^ dhcp.c:3731:8: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " cannot insert option %d, 'cf' value 0X%02X is not valid for bootptab entry '%s'", ^ dhcp.c:3912:6: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," ignoring unknown or unexpected option (%d) in client's Parameter Request List option", req_opts[i]); ^ dhcp.c:3950:45: warning: passing 'byte [1]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] insert_string_opt(tmp,&opt,TAG_DHCP_CLIID,cliid->data,cliid->length); ^~~~~~~~~~~ ./utils.h:12:88: note: passing argument to parameter 'value' here int insert_string_opt P_((struct bootp *bp, struct opts *opt, unsigned char tag, char *value, int len)); ^ dhcp.c:3954:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO,"Sending DHCPNACK: %s",msg); ^ dhcp.c:4013:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " sending reply to specified reply address override: %s", ^ dhcp.c:4018:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " sending reply to client-specified ciaddr %s", ^ dhcp.c:4024:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " sending reply to giaddr: %s", ^ dhcp.c:4029:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr==0, sending reply to broadcast"); ^ dhcp.c:4033:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr is non-local, sending reply there: %s", ^ dhcp.c:4038:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr (%s) is local and bootp broadcast bit is set, sending reply to broadcast", ^ dhcp.c:4042:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr is local, sending reply there: %s", inet_ntoa(pkt->bp_yiaddr)); ^ dhcp.c:4059:4: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " sendto: %s", get_network_errmsg()); ^ dhcp.c:4059:36: warning: implicit declaration of function 'get_errmsg' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, " sendto: %s", get_network_errmsg()); ^ ./bootpd.h:64:28: note: expanded from macro 'get_network_errmsg' #define get_network_errmsg get_errmsg ^ dhcp.c:4074:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO,"DHCP garbage collect begin"); ^ dhcp.c:4190:3: warning: implicit declaration of function 'fill_defaults2' is invalid in C99 [-Wimplicit-function-declaration] fill_defaults2(hp,hp2); /* modify hp; info from hp2 is used to override info in hp */ ^ dhcp.c:4201:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, "create_lease(): called with hp where hp->flags.iaddr is FALSE"); ^ dhcp.c:4216:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ dhcp.c:4253:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_ERR, "create_stub(): called with hp where hp->flags.iaddr is FALSE"); ^ dhcp.c:4335:2: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO, message); ^ 58 warnings and 1 error generated. *** [dhcp.o] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/net/cmu-dhcpd/work/CMU-dhcp-3.3.7+PU-9 bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/net/cmu-dhcpd/work/CMU-dhcp-3.3.7+PU-9 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/cmu-dhcpd *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/cmu-dhcpd