+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mrt-2.2.2a.20000811nb1/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mrt-2.2.2a.20000811nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for mrt-2.2.2a.20000811nb1 Making lib cd bgp_attr; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include aspath.c a - aspath.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_attr.c bgp_attr.c: In function 'bgp_unknown_attr_compare': bgp_attr.c:819:16: warning: variable 'len' set but not used [-Wunused-but-set-variable] int flags, len; ^ bgp_attr.c:819:9: warning: variable 'flags' set but not used [-Wunused-but-set-variable] int flags, len; ^ a - bgp_attr.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include as_regexp.c a - as_regexp.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include as_alist.c a - as_alist.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_msg.c bgp_msg.c: In function 'bgp_process_mrt_msg': bgp_msg.c:173:14: warning: variable 'index' set but not used [-Wunused-but-set-variable] int afi, index; ^ bgp_msg.c: In function 'mrt_bgp_msg_type': bgp_msg.c:333:18: warning: variable 'hdrlen' set but not used [-Wunused-but-set-variable] int hdrtype, hdrlen; ^ bgp_msg.c:332:14: warning: variable 'index' set but not used [-Wunused-but-set-variable] int afi, index; ^ bgp_msg.c:330:14: warning: variable 'das' set but not used [-Wunused-but-set-variable] int sas, das; ^ bgp_msg.c:330:9: warning: variable 'sas' set but not used [-Wunused-but-set-variable] int sas, das; ^ bgp_msg.c: In function 'bgp_create_update_msg2': bgp_msg.c:500:30: warning: variable 'end_pdu' set but not used [-Wunused-but-set-variable] u_char *cp, *start_pdu, *end_pdu; ^ bgp_msg.c: In function 'bgp_process_state_msg': bgp_msg.c:551:14: warning: variable 'index' set but not used [-Wunused-but-set-variable] int afi, index; ^ bgp_msg.c:532:14: warning: variable 'das' set but not used [-Wunused-but-set-variable] int sas, das; ^ a - bgp_msg.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include community.c a - community.o cd bgp_proto; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_util.c bgp_util.c: In function 'bgp_connect_ready': bgp_util.c:131:44: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] if (getpeername (peer->sockfd, (struct sockaddr *)&name, &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from bgp_util.c:6: /usr/include/sys/socket.h:142:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ bgp_util.c: In function 'bgp_start_transport_connection': bgp_util.c:222:10: warning: variable 'llen' set but not used [-Wunused-but-set-variable] int llen; ^ bgp_util.c: In function 'bgp_schedule_recv_in': bgp_util.c:361:3: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from bgp_util.c:6: /usr/include/sys/socket.h:142:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ bgp_util.c:405:13: warning: variable 'authcode' set but not used [-Wunused-but-set-variable] int authcode; ^ bgp_util.c:404:16: warning: variable 'holdtime' set but not used [-Wunused-but-set-variable] u_long holdtime; ^ bgp_util.c:403:13: warning: variable 'as' set but not used [-Wunused-but-set-variable] int as; ^ bgp_util.c:402:13: warning: variable 'version' set but not used [-Wunused-but-set-variable] int version; ^ bgp_util.c: In function 'bgp_direct_in_recv_open': bgp_util.c:464:9: warning: variable 'authcode' set but not used [-Wunused-but-set-variable] int authcode; ^ bgp_util.c:463:12: warning: variable 'holdtime' set but not used [-Wunused-but-set-variable] u_long holdtime; ^ bgp_util.c:461:9: warning: variable 'version' set but not used [-Wunused-but-set-variable] int version; ^ bgp_util.c: In function 'bgp_in_accept_connection': bgp_util.c:778:38: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign] if (getsockname (sockfd, (struct sockaddr *) &local, &len) < 0) { ^ In file included from ../../include/mrt.h:39:0, from bgp_util.c:6: /usr/include/sys/socket.h:128:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^ bgp_util.c: In function 'bgp_make_tail': bgp_util.c:2275:15: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *data = buffer->data; ^ bgp_util.c: In function 'bgp_put_a_line': bgp_util.c:2316:6: warning: pointer targets in passing argument 10 of 'rib_show_route_line' differ in signedness [-Wpointer-sign] buffer->data); ^ In file included from ../../include/bgp.h:15:0, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from bgp_util.c:6: ../../include/rib.h:149:6: note: expected 'char *' but argument is of type 'u_char *' void rib_show_route_line (uii_connection_t *uii, int c1, int c2, int type, ^ bgp_util.c: In function 'bgp_dump_rtin': bgp_util.c:2606:11: warning: pointer targets in passing argument 10 of 'rib_show_route_line' differ in signedness [-Wpointer-sign] NULL, buffer->data); ^ In file included from ../../include/bgp.h:15:0, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from bgp_util.c:6: ../../include/rib.h:149:6: note: expected 'char *' but argument is of type 'u_char *' void rib_show_route_line (uii_connection_t *uii, int c1, int c2, int type, ^ a - bgp_util.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_sm.c a - bgp_sm.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_pdu.c bgp_pdu.c: In function 'bgp_dump_msg': bgp_pdu.c:244:18: warning: variable 'hdrlen' set but not used [-Wunused-but-set-variable] int hdrtype, hdrlen; ^ bgp_pdu.c: In function 'bgp_process_open': bgp_pdu.c:464:18: warning: variable 'authdata' set but not used [-Wunused-but-set-variable] u_char *authdata; ^ a - bgp_pdu.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include view.c view.c: In function 'view_delete_bgp_route': view.c:559:18: warning: variable 'best' set but not used [-Wunused-but-set-variable] bgp_route_t *best = NULL; ^ a - view.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_timer.c a - bgp_timer.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_thread.c a - bgp_thread.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_dump.c bgp_dump.c: In function 'dump_binary_bgp_view': bgp_dump.c:248:7: warning: variable 'plen' set but not used [-Wunused-but-set-variable] int plen = 4; ^ bgp_dump.c: In function 'dump_view_bgp_routes': bgp_dump.c:407:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (fd, buffer_data (uii.answer), buffer_data_len (uii.answer)); ^ a - bgp_dump.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_dump2.c a - bgp_dump2.o cd config; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include config_file.c config_file.c: In function 'config_access_list': config_file.c:301:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ config_file.c:314:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ a - config_file.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include commconf.c a - commconf.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgpconf.c bgpconf.c: In function 'config_ip_as_filter': bgpconf.c:52:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] get_config_aspath_filter, (void *) num); ^ bgpconf.c:68:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] get_config_aspath_filter, (void *) num); ^ bgpconf.c: In function 'config_community_list': bgpconf.c:129:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ bgpconf.c:142:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ bgpconf.c: In function 'config_dump_bgp_view': bgpconf.c:2024:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] config_add_module (0, "dump bgp", get_config_dump_bgp_view, (void *)id); ^ bgpconf.c: In function 'config_dump_f_bgp_routes': bgpconf.c:2126:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)id); ^ bgpconf.c:2135:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)id); ^ a - bgpconf.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rtmapconf.c rtmapconf.c: In function 'config_route_map': rtmapconf.c:32:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ rtmapconf.c:41:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *) num); ^ a - rtmapconf.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include load.c load.c: In function 'load_f_bgp_routes': load.c:41:16: warning: variable 'safi' set but not used [-Wunused-but-set-variable] int afi, safi, nhlen, bitlen; ^ load.c:40:14: warning: variable 't' set but not used [-Wunused-but-set-variable] time_t t; ^ load.c:20:10: warning: variable 'originated' set but not used [-Wunused-but-set-variable] time_t originated; ^ load.c:19:17: warning: variable 'seq_num' set but not used [-Wunused-but-set-variable] int view_num, seq_num, attrlen; ^ load.c:19:7: warning: variable 'view_num' set but not used [-Wunused-but-set-variable] int view_num, seq_num, attrlen; ^ load.c:18:10: warning: variable 'status' set but not used [-Wunused-but-set-variable] u_long status, mask; ^ a - load.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include ripconf.c a - ripconf.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include multiconf.c In file included from multiconf.c:11:0: ../../include/pim.h:20:0: warning: "IPPROTO_PIM" redefined [enabled by default] #define IPPROTO_PIM 103 ^ In file included from ../../include/mrt.h:71:0, from multiconf.c:5: /usr/include/netinet/in.h:82:0: note: this is the location of the previous definition #define IPPROTO_PIM IPPROTO_PIM ^ a - multiconf.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include dvmrpconf.c a - dvmrpconf.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include pimconf.c In file included from pimconf.c:11:0: ../../include/pim.h:20:0: warning: "IPPROTO_PIM" redefined [enabled by default] #define IPPROTO_PIM 103 ^ In file included from ../../include/mrt.h:71:0, from pimconf.c:5: /usr/include/netinet/in.h:82:0: note: this is the location of the previous definition #define IPPROTO_PIM IPPROTO_PIM ^ a - pimconf.o cd filter; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include filter.c a - filter.o cd io; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include io.c a - io.o cd kernel; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include linux.c linux.c:31:0: warning: "MSG_TRUNC" redefined [enabled by default] #define MSG_TRUNC 0x20 ^ In file included from /usr/include/sys/socket.h:39:0, from ../../include/mrt.h:39, from linux.c:8: /usr/include/bits/socket.h:194:0: note: this is the location of the previous definition #define MSG_TRUNC MSG_TRUNC ^ linux.c:66:28: fatal error: linux/autoconf.h: No such file or directory #include ^ compilation terminated. *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/lib/kernel cd mrt; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include util.c a - util.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include prefix.c prefix.c: In function 'prefix_toname': prefix.c:309:10: warning: unused variable 'hostbuf' [-Wunused-variable] char hostbuf[1024]; ^ prefix.c:308:9: warning: unused variable 'h_errno_r' [-Wunused-variable] int h_errno_r; ^ prefix.c:307:20: warning: unused variable 'result' [-Wunused-variable] struct hostent result; ^ a - prefix.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include route_util.c a - route_util.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include gateway.c a - gateway.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include mrt.c mrt.c: In function 'mrt_accept': mrt.c:580:5: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] int r = accept (d, addr, addrlen); ^ In file included from ../../include/mrt.h:39:0, from mrt.c:5: /usr/include/sys/socket.h:244:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ a - mrt.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include user.c user.c: In function 'uii_accept_connection': user.c:222:14: warning: variable 'port' set but not used [-Wunused-but-set-variable] int len, port, family; ^ user.c: In function 'uii_call_callback_fn': user.c:1184:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] args[nargs++] = (void *) atoi (utoken); ^ user.c:1215:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] args[optional_arg] = (void *) optional; ^ a - user.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include schedule.c a - schedule.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include alist.c a - alist.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include trace.c a - trace.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include select.c select.c: In function 'init_select': select.c:54:10: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (fd); ^ select.c: In function 'select_add_fd_event_timed_vp': select.c:163:15: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^ select.c: In function 'select_delete_fd_mask': select.c:273:15: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^ select.c: In function 'mrt_select2': select.c:404:8: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (SELECT_MASTER->interrupt_fd[0], &c, 1); ^ select.c: In function 'select_disable_fd_mask': select.c:535:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^ select.c: In function 'select_enable_fd_mask': select.c:591:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write (SELECT_MASTER->interrupt_fd[1], "", 1); ^ a - select.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include connect.c connect.c: In function 'nonblock_connect': connect.c:97:9: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] &size); ^ In file included from ../../include/mrt.h:39:0, from connect.c:5: /usr/include/sys/socket.h:220:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getsockopt (int __fd, int __level, int __optname, ^ a - connect.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include reboot.c reboot.c: In function 'init_mrt_reboot': reboot.c:14:10: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd (tmp, MAXLINE); ^ a - reboot.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include user_old.c user_old.c: In function 'parse_line': user_old.c:31:9: warning: variable 'state' set but not used [-Wunused-but-set-variable] int state; ^ a - user_old.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include user_util.c user_util.c: In function 'find_matching_commands': user_util.c:215:7: warning: variable 'optional' set but not used [-Wunused-but-set-variable] int optional; ^ user_util.c:213:30: warning: variable 'last_utoken' set but not used [-Wunused-but-set-variable] char *last_ctoken = NULL, *last_utoken = NULL; ^ a - user_util.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include compat.c a - compat.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include vars.c a - vars.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include nexthop.c nexthop.c: In function 'is_prefix_local_on': nexthop.c:393:19: warning: unused variable 'sin6_addr' [-Wunused-variable] struct in6_addr *sin6_addr; ^ a - nexthop.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include buffer.c a - buffer.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include hashfn.c a - hashfn.o cd pim; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include dvmrp.c dvmrp.c: In function 'dvmrp_recv_report': dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ntohl (*(u_long *)mask), source, interface->name); ^ dvmrp.c:909:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (* (u_long *) origin == 0L && prefixlen == 8) { ^ dvmrp.c: At top level: dvmrp.c:1276:1: warning: 'dvmrp_timer_probe' defined but not used [-Wunused-function] dvmrp_timer_probe (void) ^ dvmrp.c:1759:1: warning: 'dvmrp_route_compare' defined but not used [-Wunused-function] dvmrp_route_compare (dvmrp_route_t * a, dvmrp_route_t * b) ^ a - dvmrp.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include pim.c In file included from pim.c:12:0: ../../include/pim.h:20:0: warning: "IPPROTO_PIM" redefined [enabled by default] #define IPPROTO_PIM 103 ^ In file included from ../../include/mrt.h:71:0, from pim.c:5: /usr/include/netinet/in.h:82:0: note: this is the location of the previous definition #define IPPROTO_PIM IPPROTO_PIM ^ pim.c: In function 'pim_receive': pim.c:293:16: warning: variable 'gateway' set but not used [-Wunused-but-set-variable] gateway_t *gateway; ^ pim.c:285:18: warning: variable 'cksum' set but not used [-Wunused-but-set-variable] int len = 0, cksum; ^ pim.c: In function 'pim_get_enc_multi': pim.c:805:19: warning: variable 'reserved' set but not used [-Wunused-but-set-variable] int afi, enc, reserved, masklen; ^ pim.c: In function 'pim_get_enc_src': pim.c:837:19: warning: variable 'reserved' set but not used [-Wunused-but-set-variable] int afi, enc, reserved, masklen; ^ pim.c: In function 'pim_recv_join_prune_graft': pim.c:1393:19: warning: variable 'reserved' set but not used [-Wunused-but-set-variable] int holdtime, reserved, ngroups; ^ pim.c: In function 'pim_start': pim.c:1822:13: warning: variable 'igmp' set but not used [-Wunused-but-set-variable] igmp_t *igmp = NULL; ^ a - pim.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include cache.c In file included from cache.c:10:0: ../../include/pim.h:20:0: warning: "IPPROTO_PIM" redefined [enabled by default] #define IPPROTO_PIM 103 ^ In file included from ../../include/mrt.h:71:0, from cache.c:5: /usr/include/netinet/in.h:82:0: note: this is the location of the previous definition #define IPPROTO_PIM IPPROTO_PIM ^ cache.c:234:1: warning: 'index2vindex' defined but not used [-Wunused-function] index2vindex (int index) ^ a - cache.o cd portserver; /usr/pkg/bin/bmake cd radix; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include radix.c a - radix.o cd rib; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rib.c rib.c:932:1: warning: 'rib_if_call_fn' defined but not used [-Wunused-function] rib_if_call_fn (int cmd, interface_t *interface, ll_addr_t *if_addr) ^ a - rib.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rib_uii.c a - rib_uii.o cd rip; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rip_proto.c a - rip_proto.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rip2.c rip2.c: In function 'rip2_process_packet_request': rip2.c:101:11: warning: variable 'tag' set but not used [-Wunused-but-set-variable] int afi, tag, prefixlen, metric; ^ a - rip2.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include ripng.c ripng.c: In function 'ripng_process_packet_request': ripng.c:137:6: warning: variable 'tag' set but not used [-Wunused-but-set-variable] int tag, prefixlen, metric; ^ ripng.c: In function 'ripng_receive_update': ripng.c:425:22: warning: 'buffer' is used uninitialized in this function [-Wuninitialized] u_char *buffer, *cp = buffer; ^ a - ripng.o cd struct; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include New.c New.c: In function 'Reallocate_DefaultHandler': New.c:251:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)ptr, ptr_name, size, name, strerror(errno), file, line); ^ New.c:253:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)ptr, size, strerror(errno)); ^ New.c: In function 'Delete_DefaultHandler': New.c:274:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)ptr, name, strerror(errno), file, line); ^ New.c:275:69: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] else fprintf(out, "Delete: Error freeing 0x%.8x. \"%s\"\n", (u_int)ptr, strerror(errno)); ^ a - New.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include stack.c stack.c: In function 'STACK_DefaultHandler': stack.c:202:73: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf(out, "STACK: 0x%.8x Error in function %s. \"%s\" {%u/%u}\n", (u_int)stack, name, ^ stack.c: In function 'STACK_Print': stack.c:229:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("STACK: 0x%.8x Print(0x%.8x) {%u/%u}\n", (u_int)stack, (u_int)print, (u_int)stack->top, (u_int)stack->size); ^ stack.c:229:66: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("STACK: 0x%.8x Print(0x%.8x) {%u/%u}\n", (u_int)stack, (u_int)print, (u_int)stack->top, (u_int)stack->size); ^ a - stack.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include array.c array.c: In function 'ARRAY_MergeSort': array.c:284:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] while ((unsigned)tmp[0] != size-1) { ^ array.c:285:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if ((unsigned)tmp[p] == r) { /* AUTO-MERGE, all sub-arrays processed */ ^ array.c:287:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] r = (unsigned)tmp[q+1]; ^ array.c:309:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tmp[p] = (DATA_PTR)r; ^ array.c:330:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tmp[p] = (DATA_PTR)r; ^ array.c:335:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] tmp[p] = (DATA_PTR)p; ^ a - array.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include linked_list.c linked_list.c: In function 'LL_DefaultHandler': linked_list.c:2033:71: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf(out, "LINKED LIST: 0x%.8x Error in function %s: \"%s\"\n", (u_int)ll, name, LL_errlist[num]); ^ linked_list.c: In function 'LL_Print': linked_list.c:2250:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("LINKED LIST: 0x%.8x Printing..\n", (u_int)ll); ^ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val) ^ linked_list.c:68:4: note: in expansion of macro 'LLM_PS' LLM_PS(ll, "LL_Intrusive", tfm(ll->attr & LL_Intrusive));\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val) ^ linked_list.c:69:4: note: in expansion of macro 'LLM_PS' LLM_PS(ll, "LL_AutoSort", tfm(ll->attr & LL_AutoSort));\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val) ^ linked_list.c:70:4: note: in expansion of macro 'LLM_PS' LLM_PS(ll, "LL_ReportChange", tfm(ll->attr & LL_ReportChange));\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val) ^ linked_list.c:71:4: note: in expansion of macro 'LLM_PS' LLM_PS(ll, "LL_ReportAccess", tfm(ll->attr & LL_ReportAccess));\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:57:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PD(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %d\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:72:4: note: in expansion of macro 'LLM_PD' LLM_PD(ll, "ll->count", ll->count);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:57:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PD(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %d\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:74:7: note: in expansion of macro 'LLM_PD' LLM_PD(ll, "LL_NextOffset", ll->next_offset);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:57:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PD(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %d\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:75:7: note: in expansion of macro 'LLM_PD' LLM_PD(ll, "LL_PrevOffset", ll->prev_offset);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:58:88: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:77:4: note: in expansion of macro 'LLM_PH' LLM_PH(ll, "LL_FindFunction", ll->find_fn);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:58:105: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:77:4: note: in expansion of macro 'LLM_PH' LLM_PH(ll, "LL_FindFunction", ll->find_fn);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:58:88: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:78:4: note: in expansion of macro 'LLM_PH' LLM_PH(ll, "LL_CompareFunction", ll->comp_fn);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:58:105: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:78:4: note: in expansion of macro 'LLM_PH' LLM_PH(ll, "LL_CompareFunction", ll->comp_fn);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:58:88: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:79:4: note: in expansion of macro 'LLM_PH' LLM_PH(ll, "LL_DestroyFunction", ll->destroy_fn);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c:58:105: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val) ^ linked_list.c:79:4: note: in expansion of macro 'LLM_PH' LLM_PH(ll, "LL_DestroyFunction", ll->destroy_fn);\ ^ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' LLMacro_PrintAllAttr(ll); ^ linked_list.c: In function 'LL_DefaultPrinter': linked_list.c:2265:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("0x%.8x\n", (u_int)data); ^ a - linked_list.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include hash.c hash.c: In function 'HASH_DefaultHandler': hash.c:1323:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] fprintf(out, "HASH TABLE: 0x%.8x Error in function %s: \"%s\"\n", (u_int)h, fn, HASH_errlist[num]); ^ hash.c: In function 'HASH_Print': hash.c:1411:58: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("HASH TABLE: 0x%.8x attributes: %s, %s, %s\n", (u_int)h, ^ hash.c:1416:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, h->size, h->resize); ^ hash.c:1417:67: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] else printf("HASH TABLE: 0x%.8x static size = %u\n", (u_int)h, h->size); ^ hash.c:1420:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, h->key_offset, h->next_offset); ^ hash.c:1423:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("HASH TABLE: 0x%.8x key offset = %u\n", (u_int)h, h->key_offset); ^ hash.c:1426:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c:1426:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c:1426:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c:1426:48: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy); ^ hash.c: In function 'HASH_DefaultPrinter': hash.c:1456:57: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("%3d: 0x%.8x key = 0x%.8x = \"%s\"\n", index, (u_int)data, (u_int)key, (char *)key); ^ hash.c:1456:70: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] printf("%3d: 0x%.8x key = 0x%.8x = \"%s\"\n", index, (u_int)data, (u_int)key, (char *)key); ^ a - hash.o cd timer; /usr/pkg/bin/bmake cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include timer.c a - timer.o cc -c -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include signal.c a - signal.o Making programs cd bgpsim; /usr/pkg/bin/bmake cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c bgpsim.c bgpsim.c: In function 'config_network_list': bgpsim.c:106:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] get_config_network_list, (void *)num); ^ bgpsim.c:121:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)num); ^ cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c simulate.c simulate.c: In function 'simulate_add_routes': simulate.c:115:18: warning: variable 'route' set but not used [-Wunused-but-set-variable] bgp_route_t *route; ^ cc -Wl,-zrelro -Wl,-R/usr/pkg/lib bgpsim.o simulate.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librib.a ../../lib/libmrt.a -o bgpsim -lresolv bgpsim.o: In function `main': bgpsim.c:(.text.startup+0x248): undefined reference to `init_interfaces' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x237): undefined reference to `find_interface' commconf.c:(.text+0x24d): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0x52e): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x749): undefined reference to `find_interface_byname' commconf.c:(.text+0xc65): undefined reference to `find_interface' commconf.c:(.text+0xc7e): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xea7): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x11dd): undefined reference to `show_interfaces' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x22d6): undefined reference to `find_interface_byname' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_update_source': bgpconf.c:(.text+0x6549): undefined reference to `find_interface_local' bgpconf.c:(.text+0x6634): undefined reference to `find_interface_byname' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x18dd): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x18f7): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1924): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1a75): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1ab6): undefined reference to `find_interface' bgp_util.c:(.text+0x1ae5): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x1c08): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x2527): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x47dd): undefined reference to `get_socket_addr' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0x2c8): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x182b): undefined reference to `find_interface' view.c:(.text+0x1841): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x3693): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x5bcd): undefined reference to `find_interface' view.c:(.text+0x5bfd): undefined reference to `find_interface' view.c:(.text+0x5c4a): undefined reference to `find_interface' collect2: error: ld returned 1 exit status *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/bgpsim cd mrtd; /usr/pkg/bin/bmake cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c mrtd.c In file included from mrtd.c:17:0: ../../include/pim.h:20:0: warning: "IPPROTO_PIM" redefined [enabled by default] #define IPPROTO_PIM 103 ^ In file included from ../../include/mrt.h:71:0, from mrtd.c:14: /usr/include/netinet/in.h:82:0: note: this is the location of the previous definition #define IPPROTO_PIM IPPROTO_PIM ^ mrtd.c:119:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ mrtd.c: In function 'main': mrtd.c:139:12: warning: unused variable 'pp' [-Wunused-variable] prefix_t *pp; ^ cc -Wl,-zrelro -Wl,-R/usr/pkg/lib mrtd.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librip.a ../../lib/libpim.a ../../lib/librib.a ../../lib/libmrt.a -o mrtd -lresolv mrtd.o: In function `main': mrtd.c:(.text.startup+0x2ef): undefined reference to `init_interfaces' mrtd.c:(.text.startup+0x30c): undefined reference to `igmp_init' mrtd.c:(.text.startup+0x319): undefined reference to `igmp_init' mrtd.c:(.text.startup+0x39c): undefined reference to `kernel_init' mrtd.c:(.text.startup+0x3bf): undefined reference to `add_interfaces_to_rib' mrtd.c:(.text.startup+0x441): undefined reference to `kernel_update_route' mrtd.c:(.text.startup+0x456): undefined reference to `kernel_read_rt_table' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x237): undefined reference to `find_interface' commconf.c:(.text+0x24d): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0x52e): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x749): undefined reference to `find_interface_byname' commconf.c:(.text+0xc65): undefined reference to `find_interface' commconf.c:(.text+0xc7e): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xea7): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x11dd): undefined reference to `show_interfaces' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x22d6): undefined reference to `find_interface_byname' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_update_source': bgpconf.c:(.text+0x6549): undefined reference to `find_interface_local' bgpconf.c:(.text+0x6634): undefined reference to `find_interface_byname' ../../lib/libcfg.a(ripconf.o): In function `config_distribute_list': ripconf.c:(.text+0x8e): undefined reference to `find_interface_byname' ../../lib/libcfg.a(multiconf.o): In function `config_interface_tunnel': multiconf.c:(.text+0x22c): undefined reference to `new_interface' ../../lib/libcfg.a(multiconf.o): In function `config_multicast_init': multiconf.c:(.text+0x417): undefined reference to `IGMP' multiconf.c:(.text+0x441): undefined reference to `IGMP' multiconf.c:(.text+0x513): undefined reference to `IGMP' multiconf.c:(.text+0x51e): undefined reference to `igmp_show_group' multiconf.c:(.text+0x575): undefined reference to `IGMPv6' multiconf.c:(.text+0x580): undefined reference to `igmp6_show_group' ../../lib/libcfg.a(dvmrpconf.o): In function `config_dvmrp_distribute_list': dvmrpconf.c:(.text+0x4f): undefined reference to `find_interface_byname' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x18dd): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x18f7): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1924): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1a75): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1ab6): undefined reference to `find_interface' bgp_util.c:(.text+0x1ae5): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x1c08): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x2527): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x47dd): undefined reference to `get_socket_addr' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0x2c8): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x182b): undefined reference to `find_interface' view.c:(.text+0x1841): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x3693): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x5bcd): undefined reference to `find_interface' view.c:(.text+0x5bfd): undefined reference to `find_interface' view.c:(.text+0x5c4a): undefined reference to `find_interface' ../../lib/librip.a(rip_proto.o): In function `rip_show_routing_table': rip_proto.c:(.text+0x2a34): undefined reference to `find_interface_byname' ../../lib/librip.a(rip_proto.o): In function `rip_interface_recheck': rip_proto.c:(.text+0x2f25): undefined reference to `find_network' rip_proto.c:(.text+0x2fdd): undefined reference to `find_interface_byname_all' ../../lib/librip.a(rip2.o): In function `rip2_sendmsgto.isra.0': rip2.c:(.text+0xa6): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_send_update': rip2.c:(.text+0x1b2): undefined reference to `len2mask' ../../lib/librip.a(rip2.o): In function `rip2_process_packet_response': rip2.c:(.text+0x579): undefined reference to `mask2len' ../../lib/librip.a(rip2.o): In function `rip2_process_packet_request': rip2.c:(.text+0x7c7): undefined reference to `mask2len' ../../lib/librip.a(rip2.o): In function `rip2_receive_update': rip2.c:(.text+0x929): undefined reference to `recvmsgfrom' rip2.c:(.text+0xcc5): undefined reference to `find_interface_local' rip2.c:(.text+0xd9a): undefined reference to `find_interface_local' ../../lib/librip.a(rip2.o): In function `rip2_init_listen': rip2.c:(.text+0xf28): undefined reference to `socket_open' rip2.c:(.text+0xf3e): undefined reference to `socket_reuse' rip2.c:(.text+0xf4a): undefined reference to `socket_broadcast' rip2.c:(.text+0xf53): undefined reference to `ip_multicast_loop' rip2.c:(.text+0xf5f): undefined reference to `ip_recvttl' rip2.c:(.text+0xf6b): undefined reference to `ip_pktinfo' ../../lib/librip.a(rip2.o): In function `rip2_interface': rip2.c:(.text+0x12d0): undefined reference to `join_leave_group' ../../lib/librip.a(ripng.o): In function `ripng_sendmsgto.isra.0': ripng.c:(.text+0xa6): undefined reference to `send_packet' ../../lib/librip.a(ripng.o): In function `ripng_receive_update': ripng.c:(.text+0xac5): undefined reference to `recvmsgfrom' ripng.c:(.text+0xd4d): undefined reference to `find_interface_local' ripng.c:(.text+0xe2a): undefined reference to `find_interface_local' ../../lib/librip.a(ripng.o): In function `ripng_init_listen': ripng.c:(.text+0x11f8): undefined reference to `socket_open' ripng.c:(.text+0x120e): undefined reference to `socket_reuse' ripng.c:(.text+0x122c): undefined reference to `socket_rcvbuf' ripng.c:(.text+0x1235): undefined reference to `ipv6_multicast_loop' ripng.c:(.text+0x1241): undefined reference to `ipv6_pktinfo' ripng.c:(.text+0x124d): undefined reference to `ipv6_recvhops' ripng.c:(.text+0x1259): undefined reference to `ipv6_multicast_hops' ripng.c:(.text+0x1265): undefined reference to `ipv6_unicast_hops' ../../lib/librip.a(ripng.o): In function `ripng_interface': ripng.c:(.text+0x1560): undefined reference to `join_leave_group' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_send': dvmrp.c:(.text+0x21a): undefined reference to `IGMP' dvmrp.c:(.text+0x2ad): undefined reference to `igmp_send' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_update_call_fn': dvmrp.c:(.text+0xfa5): undefined reference to `igmp_test_membership' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_activate_interface': dvmrp.c:(.text+0x1144): undefined reference to `igmp_interface' dvmrp.c:(.text+0x1160): undefined reference to `IGMP' dvmrp.c:(.text+0x1239): undefined reference to `igmp_interface' dvmrp.c:(.text+0x1323): undefined reference to `IGMP' dvmrp.c:(.text+0x133a): undefined reference to `join_leave_group' ../../lib/libpim.a(dvmrp.o): In function `recv_dvmrp': dvmrp.c:(.text+0x1936): undefined reference to `find_interface_local' dvmrp.c:(.text+0x1a3b): undefined reference to `mask2len' dvmrp.c:(.text+0x1be3): undefined reference to `IGMP' dvmrp.c:(.text+0x1bf3): undefined reference to `igmp_is_querier' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_advertise_route': dvmrp.c:(.text+0x371a): undefined reference to `len2mask' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_init': dvmrp.c:(.text+0x3cd5): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_start': dvmrp.c:(.text+0x3de7): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_interface_recheck': dvmrp.c:(.text+0x4044): undefined reference to `find_network' dvmrp.c:(.text+0x4114): undefined reference to `find_interface_byname_all' dvmrp.c:(.text+0x41e4): undefined reference to `find_interface_byname_all' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_stop': dvmrp.c:(.text+0x4a4b): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_show_routing_table': dvmrp.c:(.text+0x4b95): undefined reference to `find_interface_byname' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_show_neighbors': dvmrp.c:(.text+0x4dd0): undefined reference to `find_interface_byname' ../../lib/libpim.a(pim.o): In function `pim_register_neighbor': pim.c:(.text+0xd7): undefined reference to `find_interface_local' pim.c:(.text+0x12c): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_find_parent.isra.2': pim.c:(.text+0x5c1): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_send': pim.c:(.text+0x90a): undefined reference to `inet_cksum' pim.c:(.text+0x95c): undefined reference to `send_packet' pim.c:(.text+0xb2f): undefined reference to `inet6_cksum' pim.c:(.text+0xc80): undefined reference to `inet_cksum' pim.c:(.text+0xc95): undefined reference to `inet_cksum' ../../lib/libpim.a(pim.o): In function `pim_receive': pim.c:(.text+0x13d1): undefined reference to `find_interface_local' pim.c:(.text+0x14d3): undefined reference to `recvmsgfrom' pim.c:(.text+0x156e): undefined reference to `inet_cksum' ../../lib/libpim.a(pim.o): In function `pim_update_call_fn': pim.c:(.text+0x3bb1): undefined reference to `igmp_test_membership' pim.c:(.text+0x3d84): undefined reference to `igmp_test_membership' ../../lib/libpim.a(pim.o): In function `pim_init': pim.c:(.text+0x429b): undefined reference to `IGMP' ../../lib/libpim.a(pim.o): In function `pim_activate_interface': pim.c:(.text+0x4373): undefined reference to `igmp_interface' pim.c:(.text+0x44d5): undefined reference to `igmp_interface' pim.c:(.text+0x46dc): undefined reference to `join_leave_group' pim.c:(.text+0x4846): undefined reference to `igmp_interface' pim.c:(.text+0x4a26): undefined reference to `socket_open' pim.c:(.text+0x4a39): undefined reference to `socket_reuse' pim.c:(.text+0x4a46): undefined reference to `socket_rcvbuf' pim.c:(.text+0x4a53): undefined reference to `ip_hdrincl' pim.c:(.text+0x4a5d): undefined reference to `ip_multicast_loop' pim.c:(.text+0x4a6a): undefined reference to `ip_pktinfo' pim.c:(.text+0x4a77): undefined reference to `ip_recvttl' pim.c:(.text+0x4aef): undefined reference to `join_leave_group' ../../lib/libpim.a(cache.o): In function `cache_timer_expire': cache.c:(.text+0x188): undefined reference to `mc_req_mfc' cache.c:(.text+0x244): undefined reference to `mc_del_mfc' ../../lib/libpim.a(cache.o): In function `cache_update_mfc': cache.c:(.text+0x497): undefined reference to `mc_add_mfc' ../../lib/libpim.a(cache.o): In function `cache_control_from_kernel': cache.c:(.text+0x6de): undefined reference to `mc_del_mfc' ../../lib/libpim.a(cache.o): In function `cache_init': cache.c:(.text+0x119a): undefined reference to `IGMP' ../../lib/libpim.a(cache.o): In function `show_cache_entries': cache.c:(.text+0x1217): undefined reference to `find_interface_byname' cache.c:(.text+0x14a3): undefined reference to `find_interface_byindex' collect2: error: ld returned 1 exit status *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/mrtd cd ricd; /usr/pkg/bin/bmake cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c ricd.c In file included from ricd.c:12:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [enabled by default] #endif _RICD_H_ ^ ricd.c:159:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ ricd.c: In function 'main': ricd.c:172:9: warning: variable 'rib_install_flag' set but not used [-Wunused-but-set-variable] int rib_install_flag = 1; ^ ricd.c:171:9: warning: variable 'kernel_install_flag6' set but not used [-Wunused-but-set-variable] int kernel_install_flag6 = 1; ^ ricd.c:170:9: warning: variable 'kernel_install_flag4' set but not used [-Wunused-but-set-variable] int kernel_install_flag4 = 1; ^ ricd.c:169:9: warning: variable 'kernel_read_flag' set but not used [-Wunused-but-set-variable] int kernel_read_flag = 1; ^ ricd.c:167:11: warning: variable 'rib_file' set but not used [-Wunused-but-set-variable] char *rib_file = NULL; ^ cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c hqlip.c In file included from hqlip.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [enabled by default] #endif _RICD_H_ ^ hqlip.c: In function 'hqlip_inject_spath_link_qos': hqlip.c:523:12: warning: variable 'flags_saved' set but not used [-Wunused-but-set-variable] u_long flags_saved = 0; ^ hqlip.c: In function 'hqlip_calc_ilink': hqlip.c:651:15: warning: unused variable 'req_qos' [-Wunused-variable] req_qos_t req_qos; ^ hqlip.c: In function 'spath_calc_elink': hqlip.c:725:15: warning: unused variable 'req_qos' [-Wunused-variable] req_qos_t req_qos; ^ hqlip.c: In function 'hqlip_send_hello': hqlip.c:913:22: warning: pointer targets in passing argument 2 of 'send_packet' differ in signedness [-Wpointer-sign] hqlip->all_hosts, HQLIP_UDP_PORT, vif->interface, 0); ^ In file included from ../../include/rib.h:13:0, from ../../include/bgp.h:15, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from ricd.h:8, from hqlip.c:5: ../../include/interface.h:189:5: note: expected 'u_char *' but argument is of type 'char *' int send_packet (int sockfd, u_char *msg, int len, u_long flags, ^ In file included from ricd.h:8:0, from hqlip.c:5: hqlip.c: In function 'hqlip_put_area': ../../include/mrt.h:598:31: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] #define prefix_tochar(prefix) ((char *)&(prefix)->add.sin) ^ hqlip.c:1074:20: note: in expansion of macro 'prefix_tochar' u_char *addr = prefix_tochar (area->id); ^ hqlip.c: In function 'hqlip_put_addr': ../../include/mrt.h:598:31: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] #define prefix_tochar(prefix) ((char *)&(prefix)->add.sin) ^ hqlip.c:1144:20: note: in expansion of macro 'prefix_tochar' u_char *addr = prefix_tochar (prefix); ^ hqlip.c: In function 'hqlip_prepare_link_qos': hqlip.c:1199:5: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area1, cp); ^ hqlip.c:1070:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1199:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area1, cp); ^ hqlip.c:1200:5: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area2, cp); ^ hqlip.c:1070:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1200:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area2, cp); ^ hqlip.c: In function 'hqlip_send_link_qos': hqlip.c:1279:11: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] cp - msgbuf, spath_link_qos->tstamp, msgbuf); ^ hqlip.c:985:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_send_message (hqlip_t *hqlip, hqlip_neighbor_t *neighbor, ^ hqlip.c: In function 'hqlip_send_area_center': hqlip.c:1468:9: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_center->area, cp); ^ hqlip.c:1070:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1468:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_center->area, cp); ^ hqlip.c:1486:11: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] cp - msgbuf, spath_area_center->tstamp, msgbuf); ^ hqlip.c:985:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_send_message (hqlip_t *hqlip, hqlip_neighbor_t *neighbor, ^ hqlip.c: In function 'hqlip_send_area_addr': hqlip.c:1979:9: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_addr->area, cp); ^ hqlip.c:1070:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1979:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_addr->area, cp); ^ hqlip.c:1982:17: warning: pointer targets in passing argument 2 of 'hqlip_put_addr' differ in signedness [-Wpointer-sign] cp = hqlip_put_addr (prefix, cp); ^ hqlip.c:1139:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_put_addr (prefix_t *prefix, u_char *cp) ^ hqlip.c:1982:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_addr (prefix, cp); ^ hqlip.c:1997:11: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] cp - msgbuf, spath_area_addr->tstamp, msgbuf); ^ hqlip.c:985:1: note: expected 'u_char *' but argument is of type 'char *' hqlip_send_message (hqlip_t *hqlip, hqlip_neighbor_t *neighbor, ^ hqlip.c: In function 'hqlip_connect_ready': hqlip.c:2296:4: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from ricd.h:8, from hqlip.c:5: /usr/include/sys/socket.h:142:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ hqlip.c: In function 'hqlip_vif_udp_init': hqlip.c:2866:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ hqlip.c: In function 'hqlip_vif_tcp_init': hqlip.c:2934:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ hqlip.c: In function 'hqlip_spath_compare': hqlip.c:3625:35: warning: variable 'b_len' set but not used [-Wunused-but-set-variable] int b_flags, b_type, b_level, b_len, b_tstamp; ^ hqlip.c:3625:26: warning: variable 'b_level' set but not used [-Wunused-but-set-variable] int b_flags, b_type, b_level, b_len, b_tstamp; ^ hqlip.c:3624:35: warning: variable 'a_len' set but not used [-Wunused-but-set-variable] int a_flags, a_type, a_level, a_len, a_tstamp; ^ hqlip.c:3624:26: warning: variable 'a_level' set but not used [-Wunused-but-set-variable] int a_flags, a_type, a_level, a_len, a_tstamp; ^ hqlip.c: At top level: hqlip.c:52:1: warning: 'my_area_is_center' defined but not used [-Wunused-function] my_area_is_center (my_area_t *my_area) ^ hqlip.c:448:1: warning: 'list_link_qos' defined but not used [-Wunused-function] list_link_qos (hqlip_t *hqlip, my_area_t *my_area) ^ hqlip.c:790:1: warning: 'hqlip_update_elink' defined but not used [-Wunused-function] hqlip_update_elink (hqlip_t *hqlip, my_area_t *my_area, hqlip_interface_t *vif) ^ In file included from ../../include/trace.h:11:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from hqlip.c:5: hqlip.c: In function 'hqlip_recv_area_addr.isra.25': ../../include/linked_list.h:199:84: warning: 'prefix' may be used uninitialized in this function [-Wmaybe-uninitialized] #define LL_Add(ll, data) ((ll->attr & LL_AutoSort) ? LL_InsertSorted(ll, data) : LL_Append(ll, data)) ^ hqlip.c:2035:16: note: 'prefix' was declared here prefix_t *prefix; ^ cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c ricdconf.c In file included from ricdconf.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [enabled by default] #endif _RICD_H_ ^ cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c area.c In file included from area.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [enabled by default] #endif _RICD_H_ ^ area.c: In function 'add_area': area.c:51:10: warning: unused variable 'sbuf' [-Wunused-variable] char sbuf[128]; ^ cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c srsvp.c In file included from srsvp.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [enabled by default] #endif _RICD_H_ ^ srsvp.c: In function 'srsvp_connect_ready': srsvp.c:399:4: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from ricd.h:8, from srsvp.c:5: /usr/include/sys/socket.h:142:12: note: expected 'socklen_t * __restrict__' but argument is of type 'int *' extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ srsvp.c: In function 'srsvp_vif_tcp_init': srsvp.c:910:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ srsvp.c: In function 'srsvp_process_pdu': srsvp.c:1959:28: warning: variable 'sessionf' set but not used [-Wunused-but-set-variable] int version, hdrflags, sessionf, senderf, type, ttl, srbit, hdrlen; ^ cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c qif.c In file included from qif.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [enabled by default] #endif _RICD_H_ ^ cc -Wl,-zrelro -Wl,-R/usr/pkg/lib ricd.o hqlip.o ricdconf.o area.o srsvp.o qif.o ../../lib/libcfg.a ../../lib/librib.a ../../lib/libmrt.a -o ricd -lresolv ricd.o: In function `main': ricd.c:(.text.startup+0x1ec): undefined reference to `init_interfaces' ricd.c:(.text.startup+0x250): undefined reference to `kernel_init' hqlip.o: In function `hqlip_vif_udp_init': hqlip.c:(.text+0x4fa): undefined reference to `socket_open' hqlip.c:(.text+0x510): undefined reference to `socket_reuse' hqlip.c:(.text+0x52b): undefined reference to `join_leave_group' hqlip.c:(.text+0x53d): undefined reference to `socket_bind_port' hqlip.c:(.text+0x553): undefined reference to `ip_multicast_loop' hqlip.c:(.text+0x55f): undefined reference to `ip_multicast_hops' hqlip.c:(.text+0x56b): undefined reference to `ip_pktinfo' hqlip.c:(.text+0x577): undefined reference to `ip_recvttl' hqlip.c:(.text+0x5ca): undefined reference to `socket_open' hqlip.c:(.text+0x5dc): undefined reference to `socket_reuse' hqlip.c:(.text+0x5ed): undefined reference to `socket_bind_port' hqlip.c:(.text+0x603): undefined reference to `ip_pktinfo' hqlip.c:(.text+0x60f): undefined reference to `ip_recvttl' hqlip.c:(.text+0x661): undefined reference to `ipv6_multicast_loop' hqlip.c:(.text+0x66d): undefined reference to `ipv6_multicast_hops' hqlip.c:(.text+0x679): undefined reference to `ipv6_pktinfo' hqlip.c:(.text+0x685): undefined reference to `ipv6_recvhops' hqlip.c:(.text+0x691): undefined reference to `ipv6_pktinfo' hqlip.c:(.text+0x69d): undefined reference to `ipv6_recvhops' hqlip.o: In function `hqlip_vif_tcp_init': hqlip.c:(.text+0x8f0): undefined reference to `socket_open' hqlip.c:(.text+0x902): undefined reference to `socket_reuse' hqlip.c:(.text+0x915): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_send_hello.part.27': hqlip.c:(.text+0x5bf9): undefined reference to `send_packet' hqlip.o: In function `hqlip_register_neighbor': hqlip.c:(.text+0x6cf2): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_recv_hello': hqlip.c:(.text+0x6f72): undefined reference to `recvmsgfrom' hqlip.o: In function `hqlip_open_accept': hqlip.c:(.text+0x7342): undefined reference to `get_socket_addr' hqlip.o: In function `hqlip_activate_interface': hqlip.c:(.text+0x8b20): undefined reference to `join_leave_group' hqlip.o: In function `hqlip_show_neighbors': hqlip.c:(.text+0x8f1b): undefined reference to `find_interface_byname' ricdconf.o: In function `config_ric_network_if_qos_prefix': ricdconf.c:(.text+0x44bd): undefined reference to `find_interface_byname' srsvp.o: In function `srsvp_vif_tcp_init': srsvp.c:(.text+0x380): undefined reference to `socket_open' srsvp.c:(.text+0x392): undefined reference to `socket_reuse' srsvp.c:(.text+0x3a5): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_keep_alive': srsvp.c:(.text+0x95e): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_tcp_connect': srsvp.c:(.text+0xa3e): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_open_accept': srsvp.c:(.text+0x11b2): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_show_neighbors': srsvp.c:(.text+0x51ab): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x237): undefined reference to `find_interface' commconf.c:(.text+0x24d): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0x52e): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x749): undefined reference to `find_interface_byname' commconf.c:(.text+0xc65): undefined reference to `find_interface' commconf.c:(.text+0xc7e): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xea7): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x11dd): undefined reference to `show_interfaces' collect2: error: ld returned 1 exit status *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/ricd cd route_atob; /usr/pkg/bin/bmake cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c route_atob.c route_atob.c: In function 'read_ascii': route_atob.c:428:6: warning: implicit declaration of function 'strptime' [-Wimplicit-function-declaration] if (strptime (ret, "%D %T", &tm)) { ^ route_atob.c:167:44: warning: variable 'optlen' set but not used [-Wunused-but-set-variable] int version = 0, as = 0, holdtime = 0, optlen = 0; ^ route_atob.c: At top level: route_atob.c:690:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ cc -Wl,-zrelro -Wl,-R/usr/pkg/lib route_atob.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_atob -lresolv cd route_btoa; /usr/pkg/bin/bmake cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c route_btoa.c route_btoa.c:698:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ route_btoa.c: In function 'print_routing_table_msg': route_btoa.c:628:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (IO->in.fd, end_cp, 4); ^ cc -Wl,-zrelro -Wl,-R/usr/pkg/lib route_btoa.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_btoa -lresolv cd sbgp; /usr/pkg/bin/bmake cc -O2 -pipe -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c simple_bgp.c cc -Wl,-zrelro -Wl,-R/usr/pkg/lib simple_bgp.o ../../lib/libbgp.a ../../lib/libcfg.a ../../lib/librib.a ../../lib/libmrt.a ../../lib/libbgp.a -o sbgp -lresolv simple_bgp.o: In function `main': simple_bgp.c:(.text.startup+0x209): undefined reference to `init_interfaces' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x18dd): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x18f7): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1924): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1a75): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1ab6): undefined reference to `find_interface' bgp_util.c:(.text+0x1ae5): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x1c08): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x2527): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x47dd): undefined reference to `get_socket_addr' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0x2c8): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x182b): undefined reference to `find_interface' view.c:(.text+0x1841): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x3693): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x5bcd): undefined reference to `find_interface' view.c:(.text+0x5bfd): undefined reference to `find_interface' view.c:(.text+0x5c4a): undefined reference to `find_interface' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x237): undefined reference to `find_interface' commconf.c:(.text+0x24d): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0x52e): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x749): undefined reference to `find_interface_byname' commconf.c:(.text+0xc65): undefined reference to `find_interface' commconf.c:(.text+0xc7e): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xea7): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x11dd): undefined reference to `show_interfaces' collect2: error: ld returned 1 exit status *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/sbgp