=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for cmu-dhcpd-3.3.7.9 --- dhcp.o --- --- main.o --- --- dovend.o --- --- dhcp.o --- clang -O -DNO_SNMP -c dhcp.c --- main.o --- clang -O -DNO_SNMP -c main.c --- dovend.o --- clang -O -DNO_SNMP -c dovend.c --- dhcp.o --- In file included from dhcp.c:42: --- dovend.o --- In file included from dovend.c:19: --- main.o --- In file included from main.c:83: --- dhcp.o --- ./dhcpd.h:182:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern ping(); --- dovend.o --- ./dhcpd.h:182:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- dhcp.o --- ~~~~~~ ^ --- main.o --- ./dhcpd.h:182:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] --- dovend.o --- extern ping(); --- main.o --- extern ping(); --- dovend.o --- ~~~~~~ ^ --- main.o --- ~~~~~~ ^ --- dhcp.o --- dhcp.c:124:17: error: variable has incomplete type 'struct rtentry' struct rtentry rt; --- main.o --- main.c:259:17: error: variable has incomplete type 'struct rtentry' --- dhcp.o --- ^ --- main.o --- struct rtentry rt; ^ --- dhcp.o --- /usr/include/netinet6/in6.h:377:9: note: forward declaration of 'struct rtentry' struct rtentry *ro_rt; --- main.o --- /usr/include/netinet6/in6.h:377:9: note: forward declaration of 'struct rtentry' --- dhcp.o --- ^ --- main.o --- struct rtentry *ro_rt; ^ --- dhcp.o --- 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); --- main.o --- main.c:864:2: warning: implicit declaration of function 'init_dhcp' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- init_dhcp(); ^ --- dhcp.o --- dhcp.c:189:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] binding->replys); --- main.o --- main.c:1019:13: error: use of undeclared identifier 'SIOCADDRT' --- dhcp.o --- ^~~~~~~~~~~~~~~ --- main.o --- rc=ioctl(s,SIOCADDRT,&rt); ^ --- dhcp.o --- 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"); --- main.o --- main.c:1093:4: warning: implicit declaration of function 'readconf' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- readconf(0); ^ --- dhcp.o --- 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)); --- main.o --- main.c:1122:30: warning: implicit declaration of function 'dhcp_discover' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- case DHCPDISCOVER: dhcp_discover(bp); break; ^ --- dhcp.o --- 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)", --- main.o --- main.c:1123:30: warning: implicit declaration of function 'dhcp_request' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- case DHCPREQUEST: dhcp_request(bp); break; ^ --- dhcp.o --- 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)); --- main.o --- main.c:1124:31: warning: implicit declaration of function 'dhcp_release' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- case DHCPRELEASE: dhcp_release(bp); break; ^ --- dhcp.o --- 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)); --- main.o --- main.c:1125:31: warning: implicit declaration of function 'dhcp_decline' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- case DHCPDECLINE: dhcp_decline(bp); break; ^ --- dhcp.o --- 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) { --- main.o --- main.c:1126:30: warning: implicit declaration of function 'dhcp_inform' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- case DHCPINFORM: dhcp_inform(bp); break; ^ --- dhcp.o --- 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)); --- main.o --- main.c:1160:4: warning: implicit declaration of function 'flush_disk' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- flush_disk(); ^ --- dhcp.o --- 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)); --- main.o --- main.c:1172:4: warning: implicit declaration of function 'dumpbindings' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- dumpbindings(bootpd_dumpbind); ^ --- dhcp.o --- 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)); --- main.o --- main.c:1228:3: warning: implicit declaration of function 'flush_disk' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- flush_disk(); ^ --- dhcp.o --- dhcp.c:767:7: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] --- main.o --- main.c:1357:21: warning: unsequenced modification and access to 'i' [-Wunsequenced] --- dhcp.o --- report(LOG_INFO, " ignoring cliid option since -I option specified"); --- main.o --- i+=1+bp->bp_vend[++i]; --- dhcp.o --- ^ --- main.o --- ~~ ^ --- dhcp.o --- 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)", --- main.o --- main.c:1579:12: warning: implicit declaration of function 'access_network' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- rc=access_network(c->code,ROAMING_ACCESS|REG_ACCESS|BOOTP_ACCESS); ^ --- dhcp.o --- 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)"); --- main.o --- main.c:1823:5: warning: implicit declaration of function 'fill_header' is invalid in C99 [-Wimplicit-function-declaration] --- dhcp.o --- ^ --- main.o --- if(fill_header(bp,hp,&bootsize)) ^ --- dhcp.o --- dhcp.c:934:2: warning: implicit declaration of function 'del_bindata' is invalid in C99 [-Wimplicit-function-declaration] del_bindata(cl->cliid); ^ --- main.o --- main.c:2220:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp_addr = getif(&dst)) { ~~~~~~~~~^~~~~~~~~~~~~ --- dhcp.o --- dhcp.c:1006:3: warning: implicit declaration of function 'report' is invalid in C99 [-Wimplicit-function-declaration] report(LOG_INFO," processing DHCPDISCOVER"); ^ --- main.o --- main.c:2220:17: note: place parentheses around the assignment to silence this warning if (tmp_addr = getif(&dst)) { ^ ( ) --- dhcp.o --- 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); ^ --- main.o --- main.c:2220:17: note: use '==' to turn this assignment into an equality comparison if (tmp_addr = getif(&dst)) { ^ == --- dhcp.o --- dhcp.c:1565:5: warning: implicit declaration of function 'fill_header' is invalid in C99 [-Wimplicit-function-declaration] if(fill_header(rpkt,hp,&bootsize)){ ^ --- main.o --- 15 warnings and 2 errors generated. *** [main.o] Error code 1 bmake: stopped in /var/pkgsrc/work/net/cmu-dhcpd/work/CMU-dhcp-3.3.7+PU-9 --- dhcp.o --- dhcp.c:1602:5: warning: passing 'byte [1]' to parameter of type 'char *' converts between pointers to integer types with different sign [-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 with different sign [-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 with different sign [-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 in /var/pkgsrc/work/net/cmu-dhcpd/work/CMU-dhcp-3.3.7+PU-9 --- dovend.o --- 1 warning generated. 2 errors bmake: stopped in /var/pkgsrc/work/net/cmu-dhcpd/work/CMU-dhcp-3.3.7+PU-9 *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/net/cmu-dhcpd *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/cmu-dhcpd