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'; ISO C99 and later do not support implicit int [-Wimplicit-int] extern ping(); ~~~~~~ ^ int dhcp.c:106:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] void report_cliid(); ^ ./dhcp.h:56:13: note: conflicting prototype is here extern void report_cliid P((int log, struct shared_bindata *cl)); ^ dhcp.c:107:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char * cliid_btoa(); ^ ./dhcp.h:57:15: note: conflicting prototype is here extern char * cliid_btoa P((struct shared_bindata *cl)); ^ dhcp.c:112:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *cctime(at) ^ 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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.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:345:16: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!use_addr(hp, tmpaddr, flag, 1)){ ^ dhcp.c:441:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char dhcp_msg_type(pkt) ^ In file included from dhcp.c:42: ./dhcpd.h:162:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern char dhcp_msg_type(); ^ dhcp.c:475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cliid_btoa(cl) ^ dhcp.c:107:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char * cliid_btoa(); ^ dhcp.c:508:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_ERR, "report_cliid(): cl is NULL"); ^ dhcp.c:502:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void report_cliid(log,cl) ^ dhcp.c:106:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void report_cliid(); ^ dhcp.c:539:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, "DHCPpkterror %s [%s]: bad address length %d != %d (IPsrc=%s)", ^ dhcp.c:559:5: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'dhcp_opts_field'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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:522:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dhcp_opts(pkt,cl) ^ dhcp.c:767:7: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " ignoring cliid option since -I option specified"); ^ dhcp.c:801:7: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_WARNING, " Client ID option (%s) doesn't correspond to chaddr (%s), (IPsrc=%s)", ^ dhcp.c:658:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dhcp_opts_field(cp, cp_size, cl, errmsg) ^ dhcp.c:846:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolean ipcmp(a, b) ^ dhcp.c:858:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolean cliidhwlookcmp(a, b) ^ dhcp.c:872:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolean cliidcmp(a,b) ^ dhcp.c:885:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolean boundcliidcmp(a,b) ^ dhcp.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inaddrcmp(d1, d2) ^ dhcp.c:922:2: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_ERR,"free_client_info(): called with NULL pointer! (will not free memory)"); ^ dhcp.c:934:2: warning: call to undeclared function 'del_bindata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] del_bindata(cl->cliid); ^ dhcp.c:909:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void free_client_info(cl) ^ In file included from dhcp.c:42: ./dhcpd.h:179:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern void free_client_info(); ^ dhcp.c:951:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_inaddr(inaddrp) ^ dhcp.c:1006:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPDISCOVER"); ^ dhcp.c:1132:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1138:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1149:17: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1167:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:1168:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1175:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1183:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:1209:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1219:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1227:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:1228:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1236:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:1237:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1246:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1255:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1264:17: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1276:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1287:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1295:17: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1309:11: warning: call to undeclared function 'access_network'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:1319:18: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1365:17: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=use_addr(hp,pkt->bp_giaddr,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS,0); ^ dhcp.c:1367:17: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=use_addr(hp,pkt->bp_giaddr,REG_ACCESS|DHCP_ACCESS,0); ^ dhcp.c:1369:17: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=use_addr(hp,pkt->bp_giaddr,UNREG_ACCESS|DHCP_ACCESS,0); ^ dhcp.c:1423:17: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=use_addr(hp,pkt->bp_giaddr,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS,0); ^ dhcp.c:1425:17: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=use_addr(hp,pkt->bp_giaddr,REG_ACCESS|DHCP_ACCESS,0); ^ dhcp.c:1427:17: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=use_addr(hp,pkt->bp_giaddr,UNREG_ACCESS|DHCP_ACCESS,0); ^ dhcp.c:1454:21: warning: passing arguments to 'get_dynamic_ip' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=get_dynamic_ip(pkt->bp_giaddr,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:1458:21: warning: passing arguments to 'get_dynamic_ip' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=get_dynamic_ip(pkt->bp_giaddr,REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:1462:21: warning: passing arguments to 'get_dynamic_ip' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hp=get_dynamic_ip(pkt->bp_giaddr,UNREG_ACCESS|DHCP_ACCESS); ^ dhcp.c:1502:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1565:5: warning: call to undeclared function 'fill_header'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(fill_header(rpkt,hp,&bootsize)){ ^ dhcp.c:1567:13: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1602:5: warning: passing 'byte[1]' (aka 'unsigned char[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:1609:13: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ 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:1628:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ 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:1641:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:982:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dhcp_discover(pkt) ^ dhcp.c:1695:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPREQUEST"); ^ dhcp.c:1817:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1829:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1841:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1858:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1871:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1878:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1879:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1887:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:1888:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1938:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2027:11: warning: call to undeclared function 'access_network'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2031:10: warning: call to undeclared function 'access_network'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rc=access_network(c->code,UNREG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2055:15: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_addr(hp, pkt->bp_giaddr, ROAMING_ACCESS|REG_ACCESS|UNREG_ACCESS|DHCP_ACCESS, 1); ^ dhcp.c:2123:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2134:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2149:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:2172:17: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:2173:17: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:2186:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:2202:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:2404:13: warning: call to undeclared function 'access_network'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2408:11: warning: call to undeclared function 'access_network'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rc=access_network(c->code,UNREG_ACCESS|DHCP_ACCESS); ^ dhcp.c:2492:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2502:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2517:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2541:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:2564:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2565:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp3); ^ dhcp.c:2586:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2638:17: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp2); ^ dhcp.c:2711:12: warning: passing arguments to 'use_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] use_addr(hp, pkt->bp_giaddr, ROAMING_ACCESS|REG_ACCESS|UNREG_ACCESS|DHCP_ACCESS, 1); ^ dhcp.c:2747:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2775:5: warning: call to undeclared function 'fill_header'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(fill_header(rpkt,hp,&bootsize)){ ^ dhcp.c:2777:13: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2816:6: warning: passing 'byte[1]' (aka 'unsigned char[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:2823:13: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ 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:2842:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ 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:2854:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:1671:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dhcp_request(pkt) ^ dhcp.c:2896:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPRELEASE"); ^ dhcp.c:2973:12: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2884:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dhcp_release(pkt) ^ dhcp.c:2992:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPDECLINE"); ^ dhcp.c:3055:13: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:2980:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dhcp_decline(pkt) ^ dhcp.c:3082:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPINFORM"); ^ dhcp.c:3113:14: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:3068:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dhcp_inform(pkt) ^ dhcp.c:3332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_opts(hp, bp, cur, f) ^ 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:3469:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int do_req_opts(hp, req_opts, bp, cur, f) ^ dhcp.c:3708:7: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_ERR, " cannot insert option %d, length of client hostname '%s' is greater than %d ", ^ dhcp.c:3731:8: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO," ignoring unknown or unexpected option (%d) in client's Parameter Request List option", req_opts[i]); ^ dhcp.c:3922:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void send_dhcpnack(pkt,cliid,msg,max_len,cliid_explicit) ^ dhcp.c:3950:45: warning: passing 'byte[1]' (aka 'unsigned char[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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO,"Sending DHCPNACK: %s",msg); ^ dhcp.c:3967:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void send_dhcp_reply(pkt,send_len,dest) ^ dhcp.c:4013:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " sending reply to specified reply address override: %s", ^ dhcp.c:4018:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " sending reply to client-specified ciaddr %s", ^ dhcp.c:4024:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " sending reply to giaddr: %s", ^ dhcp.c:4029:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr==0, sending reply to broadcast"); ^ dhcp.c:4033:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr is non-local, sending reply there: %s", ^ dhcp.c:4038:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, " yiaddr is local, sending reply there: %s", inet_ntoa(pkt->bp_yiaddr)); ^ dhcp.c:4059:4: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_ERR, " sendto: %s", get_network_errmsg()); ^ dhcp.c:4059:36: warning: call to undeclared function 'get_errmsg'; ISO C99 and later do not support implicit function declarations [-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: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO,"DHCP garbage collect begin"); ^ dhcp.c:4102:16: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:4134:15: warning: passing arguments to 'reuse_addr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reuse_addr(hp); ^ dhcp.c:4158:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct host *create_lease(hp,cliid,vend,user,secs) ^ dhcp.c:4190:3: warning: call to undeclared function 'fill_defaults2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fill_defaults2(hp,hp2); /* modify hp; info from hp2 is used to override info in hp */ ^ dhcp.c:4201:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-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:4246:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct host *create_stub(hp,cl) ^ dhcp.c:4253:3: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_ERR, "create_stub(): called with hp where hp->flags.iaddr is FALSE"); ^ dhcp.c:4286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_assignment(category, is_dhcp, is_dynamic, ipaddr, ipaddr_name, cl) ^ dhcp.c:4335:2: warning: call to undeclared function 'report'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report(LOG_INFO, message); ^ dhcp.c:4344:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_known_server_identifier(inaddr) ^ 162 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-trunk-arm64/net/cmu-dhcpd *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/cmu-dhcpd