+ 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include aspath.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from aspath.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from aspath.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from aspath.c:5: aspath.c: In function 'aspth_from_string': aspath.c:396:21: warning: array subscript has type 'char' [-Wchar-subscripts] 396 | while (isspace (*cp)) | ^ aspath.c:407:22: warning: array subscript has type 'char' [-Wchar-subscripts] 407 | while (isspace (*cp)) | ^ aspath.c:411:18: warning: array subscript has type 'char' [-Wchar-subscripts] 411 | while (isdigit (*cp)) { | ^ aspath.c:421:22: warning: array subscript has type 'char' [-Wchar-subscripts] 421 | while (isdigit (*cp)) | ^ aspath.c:423:22: warning: array subscript has type 'char' [-Wchar-subscripts] 423 | while (isspace (*cp)) | ^ aspath.c:439:22: warning: array subscript has type 'char' [-Wchar-subscripts] 439 | while (isspace (*cp)) | ^ a - aspath.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_attr.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_attr.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_attr.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | 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] 819 | int flags, len; | ^~~ bgp_attr.c:819:9: warning: variable 'flags' set but not used [-Wunused-but-set-variable] 819 | int flags, len; | ^~~~~ a - bgp_attr.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include as_regexp.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from as_regexp.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from as_regexp.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from as_regexp.c:5: as_regexp.c: In function 'as_regexp_scan': as_regexp.c:45:21: warning: array subscript has type 'char' [-Wchar-subscripts] 45 | while (isspace (*env->cp)) | ^ as_regexp.c:62:19: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | if (isdigit (*env->cp)) { | ^ as_regexp.c:73:33: warning: array subscript has type 'char' [-Wchar-subscripts] 73 | env->cp[1] && isdigit (env->cp[1])) { | ^ a - as_regexp.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include as_alist.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from as_alist.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from as_alist.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - as_alist.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_msg.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_msg.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_msg.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | 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] 173 | 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] 333 | int hdrtype, hdrlen; | ^~~~~~ bgp_msg.c:332:14: warning: variable 'index' set but not used [-Wunused-but-set-variable] 332 | int afi, index; | ^~~~~ bgp_msg.c:330:14: warning: variable 'das' set but not used [-Wunused-but-set-variable] 330 | int sas, das; | ^~~ bgp_msg.c:330:9: warning: variable 'sas' set but not used [-Wunused-but-set-variable] 330 | 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] 500 | 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] 551 | int afi, index; | ^~~~~ bgp_msg.c:532:14: warning: variable 'das' set but not used [-Wunused-but-set-variable] 532 | int sas, das; | ^~~ In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from bgp_msg.c:5: bgp_msg.c: In function 'bgp_scan_attr': bgp_msg.c:838:30: warning: array subscript has type 'char' [-Wchar-subscripts] 838 | if (*cp == '\0' || isspace (*cp)) { | ^ bgp_msg.c:846:33: warning: array subscript has type 'char' [-Wchar-subscripts] 846 | if (*cp != ':' && !isspace (*cp)) { | ^ bgp_msg.c:852:23: warning: array subscript has type 'char' [-Wchar-subscripts] 852 | } while (isspace (*cp)); | ^ a - bgp_msg.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include community.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from community.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from community.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from community.c:5: community.c: In function 'community_from_string': community.c:101:15: warning: array subscript has type 'char' [-Wchar-subscripts] 101 | if (isdigit (*cp)) { | ^ a - community.o cd bgp_proto; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_util.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_util.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_util.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | bgp_util.c: In function 'bgp_connect_ready': bgp_util.c:131:62: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] 131 | if (getpeername (peer->sockfd, (struct sockaddr *)&name, &namelen) < 0) { | ^~~~~~~~ | | | int * In file included from ../../include/mrt.h:39, from bgp_util.c:6: /usr/include/sys/socket.h:625:52: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 625 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ 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] 222 | 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] 361 | &namelen) < 0) { | ^~~~~~~~ | | | int * In file included from ../../include/mrt.h:39, from bgp_util.c:6: /usr/include/sys/socket.h:625:52: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 625 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ bgp_util.c:405:13: warning: variable 'authcode' set but not used [-Wunused-but-set-variable] 405 | int authcode; | ^~~~~~~~ bgp_util.c:404:16: warning: variable 'holdtime' set but not used [-Wunused-but-set-variable] 404 | u_long holdtime; | ^~~~~~~~ bgp_util.c:403:13: warning: variable 'as' set but not used [-Wunused-but-set-variable] 403 | int as; | ^~ bgp_util.c:402:13: warning: variable 'version' set but not used [-Wunused-but-set-variable] 402 | 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] 464 | int authcode; | ^~~~~~~~ bgp_util.c:463:12: warning: variable 'holdtime' set but not used [-Wunused-but-set-variable] 463 | u_long holdtime; | ^~~~~~~~ bgp_util.c:461:9: warning: variable 'version' set but not used [-Wunused-but-set-variable] 461 | int version; | ^~~~~~~ bgp_util.c: In function 'bgp_in_accept_connection': bgp_util.c:778:58: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign] 778 | if (getsockname (sockfd, (struct sockaddr *) &local, &len) < 0) { | ^~~~ | | | int * In file included from ../../include/mrt.h:39, from bgp_util.c:6: /usr/include/sys/socket.h:626:52: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 626 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ bgp_util.c: In function 'bgp_make_tail': bgp_util.c:2275:15: warning: pointer targets in initialization of 'char *' from 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 2275 | char *data = buffer->data; | ^~~~~~ bgp_util.c: In function 'bgp_put_a_line': bgp_util.c:2316:12: warning: pointer targets in passing argument 10 of 'rib_show_route_line' differ in signedness [-Wpointer-sign] 2316 | buffer->data); | ~~~~~~^~~~~~ | | | u_char * {aka unsigned char *} In file included from ../../include/bgp.h:15, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from bgp_util.c:6: ../../include/rib.h:151:32: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 151 | interface_t *interface, char *append); | ~~~~~~^~~~~~ bgp_util.c: In function 'bgp_dump_rtin': bgp_util.c:2606:23: warning: pointer targets in passing argument 10 of 'rib_show_route_line' differ in signedness [-Wpointer-sign] 2606 | NULL, buffer->data); | ~~~~~~^~~~~~ | | | u_char * {aka unsigned char *} In file included from ../../include/bgp.h:15, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from bgp_util.c:6: ../../include/rib.h:151:32: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 151 | interface_t *interface, char *append); | ~~~~~~^~~~~~ a - bgp_util.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_sm.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_sm.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_sm.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - bgp_sm.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_pdu.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_pdu.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_pdu.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | bgp_pdu.c: In function 'bgp_dump_msg': bgp_pdu.c:244:18: warning: variable 'hdrlen' set but not used [-Wunused-but-set-variable] 244 | 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] 464 | u_char *authdata; | ^~~~~~~~ a - bgp_pdu.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include view.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from view.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from view.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | view.c: In function 'view_delete_bgp_route': view.c:559:18: warning: variable 'best' set but not used [-Wunused-but-set-variable] 559 | bgp_route_t *best = NULL; | ^~~~ view.c: In function 'bgp_re_evaluate_in': view.c:1900:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1900 | if (peer->state != BGPSTATE_ESTABLISHED) | ^~ view.c:1904:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1904 | if (BIT_TEST (peer->options, BGP_PEER_TEST)) | ^~ view.c: In function 'origin_merge': view.c:2180:1: warning: type of 'o1' defaults to 'int' [-Wimplicit-int] 2180 | origin_merge (o1, o2) | ^~~~~~~~~~~~ view.c:2180:1: warning: type of 'o2' defaults to 'int' [-Wimplicit-int] In file included from /usr/include/ctype.h:100, from view.c:5: view.c: In function 'trace_bgp_view_op': view.c:3275:23: warning: array subscript has type 'char' [-Wchar-subscripts] 3275 | else if (isdigit (*s)) { | ^ a - view.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_timer.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_timer.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_timer.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - bgp_timer.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_thread.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_thread.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_thread.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - bgp_thread.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_dump.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_dump.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_dump.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | 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] 248 | int plen = 4; | ^~~~ a - bgp_dump.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_dump2.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_dump2.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_dump2.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - bgp_dump2.o cd config; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include config_file.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from config_file.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from config_file.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | config_file.c: In function 'config_del_module': config_file.c:82:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 82 | if (arg && (module->arg != arg)) | ^~ config_file.c:86:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 86 | if (strcmp (module->name, "!") == 0) | ^~ 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] 301 | (void *) num); | ^ config_file.c:314:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 314 | (void *) num); | ^ a - config_file.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include commconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from commconf.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from commconf.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - commconf.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgpconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpconf.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpconf.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | 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] 52 | get_config_aspath_filter, (void *) num); | ^ bgpconf.c:68:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 68 | 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] 129 | (void *) num); | ^ bgpconf.c:142:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 142 | (void *) num); | ^ In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from bgpconf.c:5: bgpconf.c: In function 'config_dump_bgp_common': bgpconf.c:1915:33: warning: array subscript has type 'char' [-Wchar-subscripts] 1915 | if (unit[0] && isdigit (unit[0])) { | ^ bgpconf.c:1919:59: warning: array subscript has type 'char' [-Wchar-subscripts] 1919 | for (i = 0; i < sizeof (unit) && unit[i] && isdigit (unit[i]); i++); | ^ bgpconf.c:1920:40: warning: array subscript has type 'char' [-Wchar-subscripts] 1920 | if (i < sizeof (unit) && isalpha (unit[i])) { | ^ 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] 2024 | 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] 2126 | (void *)id); | ^ bgpconf.c:2135:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 2135 | (void *)id); | ^ a - bgpconf.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rtmapconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rtmapconf.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rtmapconf.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | rtmapconf.c: In function 'config_route_map': rtmapconf.c:32:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 32 | (void *) num); | ^ rtmapconf.c:41:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 41 | (void *) num); | ^ a - rtmapconf.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include load.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from load.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from load.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | load.c: In function 'load_f_bgp_routes': load.c:41:16: warning: variable 'safi' set but not used [-Wunused-but-set-variable] 41 | int afi, safi, nhlen, bitlen; | ^~~~ load.c:40:14: warning: variable 't' set but not used [-Wunused-but-set-variable] 40 | time_t t; | ^ load.c:20:10: warning: variable 'originated' set but not used [-Wunused-but-set-variable] 20 | time_t originated; | ^~~~~~~~~~ load.c:19:17: warning: variable 'seq_num' set but not used [-Wunused-but-set-variable] 19 | int view_num, seq_num, attrlen; | ^~~~~~~ load.c:19:7: warning: variable 'view_num' set but not used [-Wunused-but-set-variable] 19 | int view_num, seq_num, attrlen; | ^~~~~~~~ load.c:18:10: warning: variable 'status' set but not used [-Wunused-but-set-variable] 18 | u_long status, mask; | ^~~~~~ a - load.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include ripconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripconf.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripconf.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - ripconf.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include multiconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from multiconf.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from multiconf.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - multiconf.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include dvmrpconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrpconf.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrpconf.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - dvmrpconf.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include pimconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pimconf.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pimconf.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - pimconf.o cd filter; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include filter.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from filter.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from filter.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - filter.o cd io; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include io.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from io.c:12: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from io.c:12: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - io.o cd kernel; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bsd.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bsd.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bsd.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | bsd.c: In function 'sys_kernel_rt_msg': bsd.c:526:17: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] 526 | if (ioctl (route_sockfd, SIOCGIFFLAGS, &ifr) < 0) { | ^~~~~ bsd.c:521:18: warning: unused variable 'tmpx' [-Wunused-variable] 521 | char tmpx[MAXLINE]; | ^~~~ bsd.c:590:5: error: 'RTF_CLONING' undeclared (first use in this function); did you mean 'RTM_LOSING'? 590 | |RTF_CLONING /* direct if */ | ^~~~~~~~~~~ | RTM_LOSING bsd.c:590:5: note: each undeclared identifier is reported only once for each function it appears in bsd.c:591:5: error: 'RTF_XRESOLVE' undeclared (first use in this function); did you mean 'MRTMSG_RESOLVE'? 591 | |RTF_XRESOLVE /* direct if for IPv6 */ | ^~~~~~~~~~~~ | MRTMSG_RESOLVE bsd.c:404:43: warning: unused variable 'src' [-Wunused-variable] 404 | u_char *addr = NULL, *broadcast = NULL, *src = NULL; | ^~~ bsd.c:395:23: warning: unused variable 'so_src' [-Wunused-variable] 395 | so_ifa, so_ifp, so_src; | ^~~~~~ *** 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include util.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from util.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from util.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from util.c:5: util.c: In function 'my_atoi': util.c:97:30: warning: array subscript has type 'char' [-Wchar-subscripts] 97 | if (!isdigit(*str)) | ^ util.c: In function 'atox': util.c:121:20: warning: array subscript has type 'char' [-Wchar-subscripts] 121 | int c = toupper (*str); | ^ util.c: In function 'uii_parse_line2': util.c:179:28: warning: array subscript has type 'char' [-Wchar-subscripts] 179 | while (*cp && isspace (*cp)) | ^ util.c:183:22: warning: array subscript has type 'char' [-Wchar-subscripts] 183 | while (!isspace (*cp) && (*cp != '\0') && (*cp != '\n')) | ^ util.c: In function 'strtoul10': util.c:249:21: warning: array subscript has type 'char' [-Wchar-subscripts] 249 | while (isdigit (*nptr)) | ^ util.c:254:25: warning: array subscript has type 'char' [-Wchar-subscripts] 254 | while (isdigit (*nptr)) | ^ a - util.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include prefix.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from prefix.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from prefix.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from prefix.c:5: prefix.c: In function 'string_toprefix': prefix.c:241:21: warning: array subscript has type 'char' [-Wchar-subscripts] 241 | if (isdigit(name[0])) { /* Numerical address */ | ^ prefix.c: In function 'prefix_toname': prefix.c:309:10: warning: unused variable 'hostbuf' [-Wunused-variable] 309 | char hostbuf[1024]; | ^~~~~~~ prefix.c:308:9: warning: unused variable 'h_errno_r' [-Wunused-variable] 308 | int h_errno_r; | ^~~~~~~~~ prefix.c:307:20: warning: unused variable 'result' [-Wunused-variable] 307 | struct hostent result; | ^~~~~~ prefix.c: In function 'ipv6_global_unicast_addr': prefix.c:1034:39: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 1034 | return ((sin6->s6_addr[0] & 0xe0) == 0x04 || | ^~ prefix.c:1035:32: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 1035 | (sin6->s6_addr[0] & 0xe0) == 0x08); | ^~ a - prefix.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include route_util.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_util.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_util.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - route_util.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include gateway.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from gateway.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from gateway.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - gateway.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include mrt.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrt.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrt.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | mrt.c: In function 'mrt_accept': mrt.c:580:30: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] 580 | int r = accept (d, addr, addrlen); | ^~~~~~~ | | | int * In file included from ../../include/mrt.h:39, from mrt.c:5: /usr/include/sys/socket.h:621:47: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 621 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ a - mrt.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include user.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | user.c: In function 'uii_accept_connection': user.c:222:14: warning: variable 'port' set but not used [-Wunused-but-set-variable] 222 | int len, port, family; | ^~~~ In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from user.c:5: user.c: In function 'uii_read_command': user.c:801:36: warning: array subscript has type 'char' [-Wchar-subscripts] 801 | while (cp >= data && isspace (*cp)) { | ^ user.c:809:29: warning: array subscript has type 'char' [-Wchar-subscripts] 809 | while (*cp && isspace (*cp)) { | ^ user.c: In function 'uii_proccess_command': user.c:949:22: warning: array subscript has type 'char' [-Wchar-subscripts] 949 | while ((isspace (*uii->cp)) && *uii->cp) | ^ user.c:1006:45: warning: array subscript has type 'char' [-Wchar-subscripts] 1006 | while (bp >= uii->cp && *bp && isspace (*bp)) | ^ 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] 1184 | args[nargs++] = (void *) atoi (utoken); | ^ user.c:1215:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1215 | args[optional_arg] = (void *) optional; | ^ In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from user.c:5: user.c: In function 'strip_spaces': user.c:1899:28: warning: array subscript has type 'char' [-Wchar-subscripts] 1899 | while (*cp && isspace (*cp)) | ^ user.c:1903:29: warning: array subscript has type 'char' [-Wchar-subscripts] 1903 | while (pp > cp && isspace (*pp)) | ^ a - user.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include schedule.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from schedule.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from schedule.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - schedule.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include alist.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from alist.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from alist.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | alist.c: In function 'access_list_toa2': cc1: warning: function may return address of local variable [-Wreturn-local-addr] alist.c:179:10: note: declared here 179 | char buff[MAXLINE]; | ^~~~ a - alist.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include trace.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from trace.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from trace.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from trace.c:6: trace.c: In function 'trace': trace.c:123:49: warning: array subscript has type 'char' [-Wchar-subscripts] 123 | if (tr->prepend && /* XXX */ !isspace(format[0])) { | ^ a - trace.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include select.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from select.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from select.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - select.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include connect.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from connect.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from connect.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | connect.c: In function 'nonblock_connect': connect.c:97:9: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness [-Wpointer-sign] 97 | &size); | ^~~~~ | | | int * In file included from ../../include/mrt.h:39, from connect.c:5: /usr/include/sys/socket.h:627:49: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 627 | int getsockopt(int, int, int, void *__restrict, socklen_t * __restrict); | ^ a - connect.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include reboot.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from reboot.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from reboot.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - reboot.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include user_old.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user_old.c:7: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user_old.c:7: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from user_old.c:7: user_old.c: In function 'parse_line': user_old.c:41:30: warning: array subscript has type 'char' [-Wchar-subscripts] 41 | while (*line && isspace (*line)) | ^ user_old.c:47:15: warning: array subscript has type 'char' [-Wchar-subscripts] 47 | if (isspace (*fcp)) { | ^ user_old.c:48:31: warning: array subscript has type 'char' [-Wchar-subscripts] 48 | while (*line && isspace (*line)) | ^ user_old.c:59:19: warning: array subscript has type 'char' [-Wchar-subscripts] 59 | if (tolower (*fcp) != tolower (*line)) | ^ user_old.c:59:37: warning: array subscript has type 'char' [-Wchar-subscripts] 59 | if (tolower (*fcp) != tolower (*line)) | ^ user_old.c:61:31: warning: array subscript has type 'char' [-Wchar-subscripts] 61 | while (*fcp && !isspace (*fcp) && | ^ user_old.c:62:13: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | tolower (*fcp) == tolower (*line)) { | ^ user_old.c:62:31: warning: array subscript has type 'char' [-Wchar-subscripts] 62 | tolower (*fcp) == tolower (*line)) { | ^ user_old.c:67:20: warning: array subscript has type 'char' [-Wchar-subscripts] 67 | if ((isspace (*line) || *line == '\n' || *line == '\0') && | ^ user_old.c:68:14: warning: array subscript has type 'char' [-Wchar-subscripts] 68 | (isspace (*fcp) || *fcp == '\0')) { | ^ user_old.c:159:22: warning: array subscript has type 'char' [-Wchar-subscripts] 159 | if (!isalpha (token[0])) | ^ user_old.c:162:26: warning: array subscript has type 'char' [-Wchar-subscripts] 162 | if (!isalnum (token[i])) | ^ user_old.c:175:26: warning: array subscript has type 'char' [-Wchar-subscripts] 175 | if (!isdigit (token[i])) | ^ user_old.c:204:31: warning: array subscript has type 'char' [-Wchar-subscripts] 204 | if (!isalpha (*token) && (*token != '/')) | ^ user_old.c:31:9: warning: variable 'state' set but not used [-Wunused-but-set-variable] 31 | int state; | ^~~~~ a - user_old.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include user_util.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user_util.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user_util.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from user_util.c:5: user_util.c: In function 'uii_token_match': user_util.c:162:31: warning: array subscript has type 'char' [-Wchar-subscripts] 162 | if (!isalpha (user_token[0])) | ^ user_util.c:165:33: warning: array subscript has type 'char' [-Wchar-subscripts] 165 | if (!isalnum (user_token[i])) | ^ user_util.c:173:33: warning: array subscript has type 'char' [-Wchar-subscripts] 173 | if (!isdigit (user_token[i])) | ^ user_util.c:182:33: warning: array subscript has type 'char' [-Wchar-subscripts] 182 | if (!isdigit (user_token[i])) | ^ user_util.c: In function 'find_matching_commands': user_util.c:215:7: warning: variable 'optional' set but not used [-Wunused-but-set-variable] 215 | int optional; | ^~~~~~~~ user_util.c:213:30: warning: variable 'last_utoken' set but not used [-Wunused-but-set-variable] 213 | char *last_ctoken = NULL, *last_utoken = NULL; | ^~~~~~~~~~~ a - user_util.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include compat.c a - compat.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include vars.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from vars.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from vars.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - vars.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include nexthop.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from nexthop.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from nexthop.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | nexthop.c: In function 'nexthop_hash_fn': nexthop.c:42:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 42 | else | ^~~~ nexthop.c:60:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 60 | return (0); | ^~~~~~ nexthop.c: In function 'is_prefix_local_on': nexthop.c:393:19: warning: unused variable 'sin6_addr' [-Wunused-variable] 393 | struct in6_addr *sin6_addr; | ^~~~~~~~~ a - nexthop.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include buffer.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from buffer.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from buffer.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/stdio.h:595, from ../../include/mrt.h:17, from buffer.c:5: buffer.c:232:1: error: expected declaration specifiers or '...' before numeric constant 232 | snprintf (char *str, size_t size, const char *format, ...) | ^~~~~~~~ In file included from /usr/include/ssp/stdio.h:34, from /usr/include/stdio.h:595, from ../../include/mrt.h:17, from buffer.c:5: buffer.c:232:1: error: expected declaration specifiers or '...' before '__builtin_object_size' 232 | snprintf (char *str, size_t size, const char *format, ...) | ^~~~~~~~ In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from buffer.c:5: buffer.c: In function 'buffer_vprintf': buffer.c:332:19: warning: array subscript has type 'char' [-Wchar-subscripts] 332 | while (isdigit (*fmt)) | ^ buffer.c:355:24: warning: array subscript has type 'char' [-Wchar-subscripts] 355 | } while (isdigit (*++fmt)); | ^ *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/lib/mrt cd pim; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include dvmrp.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrp.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrp.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | dvmrp.c:1759:1: warning: 'dvmrp_route_compare' defined but not used [-Wunused-function] 1759 | dvmrp_route_compare (dvmrp_route_t * a, dvmrp_route_t * b) | ^~~~~~~~~~~~~~~~~~~ dvmrp.c:1276:1: warning: 'dvmrp_timer_probe' defined but not used [-Wunused-function] 1276 | dvmrp_timer_probe (void) | ^~~~~~~~~~~~~~~~~ a - dvmrp.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include pim.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pim.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pim.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | pim.c: In function 'pim_receive': pim.c:293:16: warning: variable 'gateway' set but not used [-Wunused-but-set-variable] 293 | gateway_t *gateway; | ^~~~~~~ pim.c:285:18: warning: variable 'cksum' set but not used [-Wunused-but-set-variable] 285 | 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] 805 | 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] 837 | 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] 1393 | 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] 1822 | igmp_t *igmp = NULL; | ^~~~ a - pim.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include cache.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from cache.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from cache.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | cache.c:234:1: warning: 'index2vindex' defined but not used [-Wunused-function] 234 | index2vindex (int index) | ^~~~~~~~~~~~ a - cache.o cd portserver; /usr/pkg/bin/bmake cd radix; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include radix.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from radix.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from radix.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - radix.o cd rib; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rib.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | rib.c:932:1: warning: 'rib_if_call_fn' defined but not used [-Wunused-function] 932 | rib_if_call_fn (int cmd, interface_t *interface, ll_addr_t *if_addr) | ^~~~~~~~~~~~~~ a - rib.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rib_uii.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib_uii.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib_uii.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from rib_uii.c:5: rib_uii.c: In function 'rib_show_route_line': rib_uii.c:85:49: warning: array subscript has type 'char' [-Wchar-subscripts] 85 | (type >= 0)? toupper (proto2string (type)[0]): ' ', | ^ a - rib_uii.o cd rip; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rip_proto.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip_proto.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip_proto.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - rip_proto.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rip2.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip2.c:15: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip2.c:15: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | rip2.c: In function 'rip2_process_packet_request': rip2.c:101:11: warning: variable 'tag' set but not used [-Wunused-but-set-variable] 101 | int afi, tag, prefixlen, metric; | ^~~ rip2.c: In function 'rip2_send_update': rip2.c:327:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 327 | if (rip2_sendmsgto (rip_interface, buffer, cp - buffer, 0, | ^~ rip2.c:331:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 331 | if (host) { | ^~ a - rip2.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include ripng.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripng.c:23: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripng.c:23: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | ripng.c: In function 'ripng_process_packet_request': ripng.c:137:6: warning: variable 'tag' set but not used [-Wunused-but-set-variable] 137 | int tag, prefixlen, metric; | ^~~ ripng.c: In function 'ripng_receive_update': ripng.c:425:22: warning: 'buffer' is used uninitialized in this function [-Wuninitialized] 425 | u_char *buffer, *cp = buffer; | ^~ a - ripng.o cd struct; /usr/pkg/bin/bmake cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -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] 251 | (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] 253 | (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] 274 | (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] 275 | else fprintf(out, "Delete: Error freeing 0x%.8x. \"%s\"\n", (u_int)ptr, strerror(errno)); | ^ a - New.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -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] 202 | 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] 229 | 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] 229 | 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -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] 284 | while ((unsigned)tmp[0] != size-1) { | ^ array.c:285:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 285 | 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] 287 | r = (unsigned)tmp[q+1]; | ^ array.c:309:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 309 | tmp[p] = (DATA_PTR)r; | ^ array.c:330:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 330 | tmp[p] = (DATA_PTR)r; | ^ array.c:335:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 335 | tmp[p] = (DATA_PTR)p; | ^ a - array.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -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] 2033 | 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] 2250 | 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] 56 | #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' 68 | LLM_PS(ll, "LL_Intrusive", tfm(ll->attr & LL_Intrusive));\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 56 | #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' 69 | LLM_PS(ll, "LL_AutoSort", tfm(ll->attr & LL_AutoSort));\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 56 | #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' 70 | LLM_PS(ll, "LL_ReportChange", tfm(ll->attr & LL_ReportChange));\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:56:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 56 | #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' 71 | LLM_PS(ll, "LL_ReportAccess", tfm(ll->attr & LL_ReportAccess));\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:57:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 57 | #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' 72 | LLM_PD(ll, "ll->count", ll->count);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:57:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 57 | #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' 74 | LLM_PD(ll, "LL_NextOffset", ll->next_offset);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:57:84: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 57 | #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' 75 | LLM_PD(ll, "LL_PrevOffset", ll->prev_offset);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:58:88: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | #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' 77 | LLM_PH(ll, "LL_FindFunction", ll->find_fn);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:58:105: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | #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' 77 | LLM_PH(ll, "LL_FindFunction", ll->find_fn);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:58:88: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | #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' 78 | LLM_PH(ll, "LL_CompareFunction", ll->comp_fn);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:58:105: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | #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' 78 | LLM_PH(ll, "LL_CompareFunction", ll->comp_fn);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:58:88: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | #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' 79 | LLM_PH(ll, "LL_DestroyFunction", ll->destroy_fn);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | LLMacro_PrintAllAttr(ll); | ^~~~~~~~~~~~~~~~~~~~ linked_list.c:58:105: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 58 | #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' 79 | LLM_PH(ll, "LL_DestroyFunction", ll->destroy_fn);\ | ^~~~~~ linked_list.c:2251:4: note: in expansion of macro 'LLMacro_PrintAllAttr' 2251 | 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] 2265 | printf("0x%.8x\n", (u_int)data); | ^ a - linked_list.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -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] 1323 | 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] 1411 | 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] 1416 | (u_int)h, h->size, h->resize); | ^ hash.c:1417:67: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1417 | 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] 1420 | (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] 1423 | 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] 1426 | (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] 1426 | (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] 1426 | (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] 1426 | (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] 1456 | 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] 1456 | 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include timer.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from timer.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from timer.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - timer.o cc -c -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include signal.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from signal.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from signal.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | a - signal.o Making programs cd bgpsim; /usr/pkg/bin/bmake cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c bgpsim.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpsim.c:6: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpsim.c:6: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | bgpsim.c: In function 'config_network_list': bgpsim.c:106:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 106 | get_config_network_list, (void *)num); | ^ bgpsim.c:121:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 121 | (void *)num); | ^ In file included from /usr/include/ctype.h:100, from bgpsim.c:5: bgpsim.c: In function 'network_list_set': bgpsim.c:297:22: warning: array subscript has type 'char' [-Wchar-subscripts] 297 | if (!isdigit (cp[0])) { | ^ bgpsim.c: In function 'network_list_view': bgpsim.c:342:22: warning: array subscript has type 'char' [-Wchar-subscripts] 342 | if (!isdigit (cp[0])) { | ^ cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c simulate.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simulate.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simulate.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | simulate.c: In function 'simulate_add_routes': simulate.c:115:18: warning: variable 'route' set but not used [-Wunused-but-set-variable] 115 | 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 ld: bgpsim.o: in function `main': bgpsim.c:(.text.startup+0x202): undefined reference to `init_interfaces' ld: ../../lib/libcfg.a(config_file.o): in function `config_add_output': config_file.c:(.text+0xc5): undefined reference to `buffer_vprintf' ld: config_file.c:(.text+0xd8): undefined reference to `New_Buffer' ld: ../../lib/libcfg.a(config_file.o): in function `show_config': config_file.c:(.text+0x918): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_write': config_file.c:(.text+0x14ee): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_from_file2': config_file.c:(.text+0x1f19): undefined reference to `New_Buffer_Stream' ld: config_file.c:(.text+0x1f47): undefined reference to `buffer_gets' ld: config_file.c:(.text+0x1f67): undefined reference to `Delete_Buffer' ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway': commconf.c:(.text+0x21f): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_interface': commconf.c:(.text+0x2e6): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route': commconf.c:(.text+0x50c): undefined reference to `find_interface_byname' ld: commconf.c:(.text+0x6d5): undefined reference to `find_interface' ld: commconf.c:(.text+0xaaa): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes.isra.0': commconf.c:(.text+0xd25): undefined reference to `find_interface' ld: commconf.c:(.text+0xdc4): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config': commconf.c:(.text+0x1077): undefined reference to `ip_hash_fn' ld: commconf.c:(.text+0x1088): undefined reference to `ip_lookup_fn' ld: commconf.c:(.text+0x126e): undefined reference to `show_interfaces' ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x492e): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_update_source': bgpconf.c:(.text+0x6a6d): undefined reference to `find_interface_local' ld: bgpconf.c:(.text+0x6b30): undefined reference to `find_interface_byname' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_make_tail.constprop.0.isra.0': bgp_util.c:(.text+0xb16): undefined reference to `buffer_printf' ld: bgp_util.c:(.text+0xb3d): undefined reference to `buffer_putc' ld: bgp_util.c:(.text+0xb4c): undefined reference to `buffer_putc' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_put_a_line': bgp_util.c:(.text+0xb73): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_util.o): in function `peer_set_gateway': bgp_util.c:(.text+0x13ec): undefined reference to `get_socket_addr' ld: bgp_util.c:(.text+0x1405): undefined reference to `get_socket_addr' ld: bgp_util.c:(.text+0x1431): undefined reference to `find_interface_local' ld: bgp_util.c:(.text+0x159d): undefined reference to `find_interface_local' ld: bgp_util.c:(.text+0x15d5): undefined reference to `find_interface' ld: bgp_util.c:(.text+0x161a): undefined reference to `find_interface_local' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_start_transport_connection': bgp_util.c:(.text+0x16fc): undefined reference to `socket_reuse' ld: ../../lib/libbgp.a(bgp_util.o): in function `init_BGP_listen': bgp_util.c:(.text+0x20e7): undefined reference to `socket_reuse' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_in_recv_open': bgp_util.c:(.text+0x4320): undefined reference to `get_socket_addr' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_dump_rtin': bgp_util.c:(.text+0x6c07): undefined reference to `New_Buffer' ld: bgp_util.c:(.text+0x6c8a): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_make_tail.constprop.0.isra.0': bgp_util.c:(.text+0xafd): undefined reference to `buffer_putc' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_put_a_line': bgp_util.c:(.text+0xc49): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(view.o): in function `bgp_policy': view.c:(.text+0x2ba): undefined reference to `find_interface_local' ld: ../../lib/libbgp.a(view.o): in function `bgp_resolve_nexthop': view.c:(.text+0x15b6): undefined reference to `find_interface' ld: view.c:(.text+0x15cc): undefined reference to `find_interface_local' ld: view.c:(.text+0x162d): undefined reference to `ip_hash_fn' ld: view.c:(.text+0x163e): undefined reference to `ip_lookup_fn' ld: ../../lib/libbgp.a(view.o): in function `view_set_nexthop_self': view.c:(.text+0x35ac): undefined reference to `find_interface' ld: ../../lib/libbgp.a(view.o): in function `view_add_aggregate': view.c:(.text+0x5c18): undefined reference to `find_interface' ld: view.c:(.text+0x5c4a): undefined reference to `find_interface' ld: view.c:(.text+0x5c99): undefined reference to `find_interface' ld: ../../lib/libbgp.a(bgp_dump.o): in function `dump_view_bgp_routes': bgp_dump.c:(.text+0x5f5): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_attr_buffer': bgp_msg.c:(.text+0x1953): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x19d0): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x19f5): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a1a): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a83): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x1aa2): more undefined references to `buffer_printf' follow ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_uii_attr': bgp_msg.c:(.text+0x1cd9): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1be0): undefined reference to `buffer_printf' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x6d0): undefined reference to `buffer_printf' ld: rib.c:(.text+0x709): undefined reference to `buffer_printf' ld: rib.c:(.text+0x728): undefined reference to `buffer_printf' ld: rib.c:(.text+0x772): undefined reference to `buffer_printf' ld: rib.c:(.text+0x77e): undefined reference to `New_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_replace_active': rib.c:(.text+0x8f3): undefined reference to `New_Buffer' ld: rib.c:(.text+0x930): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_delete_route_node': rib.c:(.text+0xc65): undefined reference to `New_Buffer' ld: rib.c:(.text+0xca5): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_add_route': rib.c:(.text+0x1338): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1382): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1402): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1446): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1631): undefined reference to `New_Buffer' ld: rib.c:(.text+0x166f): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x75e): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_prefix_list_buffer': prefix.c:(.text+0x6ff): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_pref_prefix_list_buffer': prefix.c:(.text+0x7bb): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_accept_connection': user.c:(.text+0x71b): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_yes_no': user.c:(.text+0xc49): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_destroy_connection': user.c:(.text+0x1101): undefined reference to `Delete_Buffer' ld: user.c:(.text+0x1110): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_add_bulk_output': user.c:(.text+0x18fc): undefined reference to `buffer_vprintf' ld: user.c:(.text+0x1919): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x20d8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x2207): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_proccess_command': user.c:(.text+0x3dcc): undefined reference to `New_Buffer' ld: user.c:(.text+0x3dda): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e09): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e14): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e76): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_command_tab_complete': user.c:(.text+0x4fac): undefined reference to `buffer_adjust' ld: user.c:(.text+0x4fd0): undefined reference to `buffer_printf' ld: user.c:(.text+0x51df): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_read_command.part.0': user.c:(.text+0x5520): undefined reference to `buffer_insert' ld: user.c:(.text+0x574a): undefined reference to `buffer_adjust' ld: user.c:(.text+0x575a): undefined reference to `buffer_puts' ld: user.c:(.text+0x5866): undefined reference to `buffer_adjust' ld: user.c:(.text+0x5b86): undefined reference to `buffer_delete' ld: user.c:(.text+0x5c8d): undefined reference to `buffer_delete' ld: user.c:(.text+0x5e4c): undefined reference to `buffer_adjust' ld: user.c:(.text+0x68c8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6931): undefined reference to `buffer_peek' ld: user.c:(.text+0x69bd): undefined reference to `buffer_peek' ld: user.c:(.text+0x6a23): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6a74): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6ac1): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6b0e): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x2006): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(trace.o):trace.c:(.text+0x3b7): more undefined references to `buffer_adjust' follow ld: ../../lib/libmrt.a(trace.o): in function `trace': trace.c:(.text+0x40d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x45d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x470): undefined reference to `buffer_vprintf' ld: trace.c:(.text+0x718): undefined reference to `New_Buffer' ld: trace.c:(.text+0x864): undefined reference to `buffer_printf' ld: trace.c:(.text+0x87b): undefined reference to `buffer_printf' ld: trace.c:(.text+0x892): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `Destroy_Trace': trace.c:(.text+0xe4c): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer': user_util.c:(.text+0xdb8): undefined reference to `New_Buffer' ld: user_util.c:(.text+0xdc7): undefined reference to `buffer_puts' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer_del': user_util.c:(.text+0xff9): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_data': user_util.c:(.text+0x1084): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x10c6): undefined reference to `buffer_vprintf' ld: ../../lib/libmrt.a(user_util.o): in function `user_vnotice': user_util.c:(.text+0x1149): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x115a): undefined reference to `buffer_vprintf' ld: user_util.c:(.text+0x122d): undefined reference to `Delete_Buffer' *** 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c mrtd.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrtd.c:14: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrtd.c:14: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | mrtd.c:119:1: warning: return type of 'main' is not 'int' [-Wmain] 119 | main (int argc, char *argv[]) | ^~~~ mrtd.c: In function 'main': mrtd.c:139:12: warning: unused variable 'pp' [-Wunused-variable] 139 | 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 ld: mrtd.o: in function `main': mrtd.c:(.text.startup+0x2cd): undefined reference to `init_interfaces' ld: mrtd.c:(.text.startup+0x2ea): undefined reference to `igmp_init' ld: mrtd.c:(.text.startup+0x2f7): undefined reference to `igmp_init' ld: mrtd.c:(.text.startup+0x38d): undefined reference to `kernel_init' ld: mrtd.c:(.text.startup+0x3ad): undefined reference to `kernel_update_route' ld: mrtd.c:(.text.startup+0x3ce): undefined reference to `add_interfaces_to_rib' ld: mrtd.c:(.text.startup+0x4a3): undefined reference to `kernel_read_rt_table' ld: ../../lib/libcfg.a(config_file.o): in function `config_add_output': config_file.c:(.text+0xc5): undefined reference to `buffer_vprintf' ld: config_file.c:(.text+0xd8): undefined reference to `New_Buffer' ld: ../../lib/libcfg.a(config_file.o): in function `show_config': config_file.c:(.text+0x918): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_write': config_file.c:(.text+0x14ee): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_from_file2': config_file.c:(.text+0x1f19): undefined reference to `New_Buffer_Stream' ld: config_file.c:(.text+0x1f47): undefined reference to `buffer_gets' ld: config_file.c:(.text+0x1f67): undefined reference to `Delete_Buffer' ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway': commconf.c:(.text+0x21f): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_interface': commconf.c:(.text+0x2e6): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route': commconf.c:(.text+0x50c): undefined reference to `find_interface_byname' ld: commconf.c:(.text+0x6d5): undefined reference to `find_interface' ld: commconf.c:(.text+0xaaa): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes.isra.0': commconf.c:(.text+0xd25): undefined reference to `find_interface' ld: commconf.c:(.text+0xdc4): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config': commconf.c:(.text+0x1077): undefined reference to `ip_hash_fn' ld: commconf.c:(.text+0x1088): undefined reference to `ip_lookup_fn' ld: commconf.c:(.text+0x126e): undefined reference to `show_interfaces' ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x492e): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_update_source': bgpconf.c:(.text+0x6a6d): undefined reference to `find_interface_local' ld: bgpconf.c:(.text+0x6b30): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(ripconf.o): in function `config_distribute_list': ripconf.c:(.text+0xa8): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(multiconf.o): in function `config_interface_tunnel': multiconf.c:(.text+0x212): undefined reference to `new_interface' ld: ../../lib/libcfg.a(multiconf.o): in function `config_multicast_init': multiconf.c:(.text+0x41a): undefined reference to `IGMP' ld: multiconf.c:(.text+0x54e): undefined reference to `igmp_show_group' ld: multiconf.c:(.text+0x5aa): undefined reference to `IGMPv6' ld: multiconf.c:(.text+0x5c2): undefined reference to `igmp6_show_group' ld: ../../lib/libcfg.a(dvmrpconf.o): in function `config_dvmrp_distribute_list': dvmrpconf.c:(.text+0x5b): undefined reference to `find_interface_byname' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_make_tail.constprop.0.isra.0': bgp_util.c:(.text+0xb16): undefined reference to `buffer_printf' ld: bgp_util.c:(.text+0xb3d): undefined reference to `buffer_putc' ld: bgp_util.c:(.text+0xb4c): undefined reference to `buffer_putc' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_put_a_line': bgp_util.c:(.text+0xb73): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_util.o): in function `peer_set_gateway': bgp_util.c:(.text+0x13ec): undefined reference to `get_socket_addr' ld: bgp_util.c:(.text+0x1405): undefined reference to `get_socket_addr' ld: bgp_util.c:(.text+0x1431): undefined reference to `find_interface_local' ld: bgp_util.c:(.text+0x159d): undefined reference to `find_interface_local' ld: bgp_util.c:(.text+0x15d5): undefined reference to `find_interface' ld: bgp_util.c:(.text+0x161a): undefined reference to `find_interface_local' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_start_transport_connection': bgp_util.c:(.text+0x16fc): undefined reference to `socket_reuse' ld: ../../lib/libbgp.a(bgp_util.o): in function `init_BGP_listen': bgp_util.c:(.text+0x20e7): undefined reference to `socket_reuse' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_in_recv_open': bgp_util.c:(.text+0x4320): undefined reference to `get_socket_addr' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_dump_rtin': bgp_util.c:(.text+0x6c07): undefined reference to `New_Buffer' ld: bgp_util.c:(.text+0x6c8a): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_make_tail.constprop.0.isra.0': bgp_util.c:(.text+0xafd): undefined reference to `buffer_putc' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_put_a_line': bgp_util.c:(.text+0xc49): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(view.o): in function `bgp_policy': view.c:(.text+0x2ba): undefined reference to `find_interface_local' ld: ../../lib/libbgp.a(view.o): in function `bgp_resolve_nexthop': view.c:(.text+0x15b6): undefined reference to `find_interface' ld: view.c:(.text+0x15cc): undefined reference to `find_interface_local' ld: view.c:(.text+0x162d): undefined reference to `ip_hash_fn' ld: view.c:(.text+0x163e): undefined reference to `ip_lookup_fn' ld: ../../lib/libbgp.a(view.o): in function `view_set_nexthop_self': view.c:(.text+0x35ac): undefined reference to `find_interface' ld: ../../lib/libbgp.a(view.o): in function `view_add_aggregate': view.c:(.text+0x5c18): undefined reference to `find_interface' ld: view.c:(.text+0x5c4a): undefined reference to `find_interface' ld: view.c:(.text+0x5c99): undefined reference to `find_interface' ld: ../../lib/libbgp.a(bgp_dump.o): in function `dump_view_bgp_routes': bgp_dump.c:(.text+0x5f5): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_attr_buffer': bgp_msg.c:(.text+0x1953): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x19d0): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x19f5): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a1a): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a83): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x1aa2): more undefined references to `buffer_printf' follow ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_uii_attr': bgp_msg.c:(.text+0x1cd9): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1be0): undefined reference to `buffer_printf' ld: ../../lib/librip.a(rip_proto.o): in function `rip_show_routing_table': rip_proto.c:(.text+0x2a1a): undefined reference to `find_interface_byname' ld: ../../lib/librip.a(rip_proto.o): in function `rip_interface_recheck': rip_proto.c:(.text+0x2eb9): undefined reference to `find_network' ld: rip_proto.c:(.text+0x2f0a): undefined reference to `find_interface_byname_all' ld: ../../lib/librip.a(rip_proto.o): in function `rip_init': rip_proto.c:(.text+0x388f): undefined reference to `ip_hash_fn' ld: rip_proto.c:(.text+0x38a0): undefined reference to `ip_lookup_fn' ld: ../../lib/librip.a(rip2.o): in function `rip2_send_update': rip2.c:(.text+0x17e): undefined reference to `len2mask' ld: rip2.c:(.text+0x24b): undefined reference to `send_packet' ld: rip2.c:(.text+0x2d7): undefined reference to `send_packet' ld: rip2.c:(.text+0x372): undefined reference to `send_packet' ld: rip2.c:(.text+0x418): undefined reference to `send_packet' ld: ../../lib/librip.a(rip2.o): in function `rip2_process_packet_response': rip2.c:(.text+0x5b0): undefined reference to `mask2len' ld: ../../lib/librip.a(rip2.o): in function `rip2_process_packet_request': rip2.c:(.text+0x860): undefined reference to `mask2len' ld: ../../lib/librip.a(rip2.o): in function `rip2_receive_update': rip2.c:(.text+0x99b): undefined reference to `recvmsgfrom' ld: rip2.c:(.text+0xd26): undefined reference to `find_interface_local' ld: rip2.c:(.text+0xe04): undefined reference to `find_interface_local' ld: ../../lib/librip.a(rip2.o): in function `rip2_init_listen': rip2.c:(.text+0xf9e): undefined reference to `socket_open' ld: rip2.c:(.text+0xfb5): undefined reference to `socket_reuse' ld: rip2.c:(.text+0xfc2): undefined reference to `socket_broadcast' ld: rip2.c:(.text+0xfcc): undefined reference to `ip_multicast_loop' ld: rip2.c:(.text+0xfd9): undefined reference to `ip_recvttl' ld: rip2.c:(.text+0xfe6): undefined reference to `ip_pktinfo' ld: ../../lib/librip.a(rip2.o): in function `rip2_send_request': rip2.c:(.text+0x128f): undefined reference to `send_packet' ld: ../../lib/librip.a(rip2.o): in function `rip2_interface': rip2.c:(.text+0x132f): undefined reference to `join_leave_group' ld: ../../lib/librip.a(ripng.o): in function `ripng_send_update': ripng.c:(.text+0x2cf): undefined reference to `send_packet' ld: ../../lib/librip.a(ripng.o): in function `ripng_receive_update': ripng.c:(.text+0xb16): undefined reference to `recvmsgfrom' ld: ripng.c:(.text+0xe87): undefined reference to `find_interface_local' ld: ripng.c:(.text+0xf5c): undefined reference to `find_interface_local' ld: ../../lib/librip.a(ripng.o): in function `ripng_init_listen': ripng.c:(.text+0x13b5): undefined reference to `socket_open' ld: ripng.c:(.text+0x13cc): undefined reference to `socket_reuse' ld: ripng.c:(.text+0x13ee): undefined reference to `socket_rcvbuf' ld: ripng.c:(.text+0x13f8): undefined reference to `ipv6_multicast_loop' ld: ripng.c:(.text+0x1405): undefined reference to `ipv6_pktinfo' ld: ripng.c:(.text+0x1412): undefined reference to `ipv6_recvhops' ld: ripng.c:(.text+0x141f): undefined reference to `ipv6_multicast_hops' ld: ripng.c:(.text+0x142c): undefined reference to `ipv6_unicast_hops' ld: ../../lib/librip.a(ripng.o): in function `ripng_send_request': ripng.c:(.text+0x16c4): undefined reference to `send_packet' ld: ../../lib/librip.a(ripng.o): in function `ripng_interface': ripng.c:(.text+0x1752): undefined reference to `join_leave_group' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_send': dvmrp.c:(.text+0x159): undefined reference to `IGMP' ld: dvmrp.c:(.text+0x205): undefined reference to `igmp_send' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_update_call_fn': dvmrp.c:(.text+0xbb1): undefined reference to `igmp_test_membership' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_activate_interface': dvmrp.c:(.text+0x1008): undefined reference to `IGMP' ld: dvmrp.c:(.text+0x1100): undefined reference to `igmp_interface' ld: dvmrp.c:(.text+0x11ec): undefined reference to `igmp_interface' ld: dvmrp.c:(.text+0x1251): undefined reference to `join_leave_group' ld: ../../lib/libpim.a(dvmrp.o): in function `recv_dvmrp': dvmrp.c:(.text+0x1b51): undefined reference to `IGMP' ld: dvmrp.c:(.text+0x1b59): undefined reference to `igmp_is_querier' ld: dvmrp.c:(.text+0x1e55): undefined reference to `mask2len' ld: dvmrp.c:(.text+0x1fca): undefined reference to `find_interface_local' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_advertise_route': dvmrp.c:(.text+0x37e5): undefined reference to `len2mask' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_init': dvmrp.c:(.text+0x3f0a): undefined reference to `IGMP' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_start': dvmrp.c:(.text+0x4031): undefined reference to `IGMP' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_interface_recheck': dvmrp.c:(.text+0x42a2): undefined reference to `find_network' ld: dvmrp.c:(.text+0x4320): undefined reference to `find_interface_byname_all' ld: dvmrp.c:(.text+0x43a3): undefined reference to `find_interface_byname_all' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_stop': dvmrp.c:(.text+0x4b8a): undefined reference to `IGMP' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_show_routing_table': dvmrp.c:(.text+0x4f08): undefined reference to `find_interface_byname' ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_show_neighbors': dvmrp.c:(.text+0x4f63): undefined reference to `find_interface_byname' ld: ../../lib/libpim.a(pim.o): in function `pim_register_neighbor': pim.c:(.text+0x222): undefined reference to `find_interface_local' ld: pim.c:(.text+0x2c8): undefined reference to `find_interface_local' ld: ../../lib/libpim.a(pim.o): in function `pim_find_parent': pim.c:(.text+0x534): undefined reference to `find_interface_local' ld: ../../lib/libpim.a(pim.o): in function `pim_send': pim.c:(.text+0xa29): undefined reference to `inet6_cksum' ld: pim.c:(.text+0xa70): undefined reference to `send_packet' ld: pim.c:(.text+0xd86): undefined reference to `inet_cksum' ld: pim.c:(.text+0xef0): undefined reference to `inet_cksum' ld: pim.c:(.text+0xf05): undefined reference to `inet_cksum' ld: ../../lib/libpim.a(pim.o): in function `pim_receive': pim.c:(.text+0x2282): undefined reference to `recvmsgfrom' ld: pim.c:(.text+0x2308): undefined reference to `find_interface_local' ld: pim.c:(.text+0x2636): undefined reference to `recvmsgfrom' ld: pim.c:(.text+0x26ca): undefined reference to `inet_cksum' ld: ../../lib/libpim.a(pim.o): in function `pim_update_call_fn': pim.c:(.text+0x41ad): undefined reference to `igmp_test_membership' ld: pim.c:(.text+0x436c): undefined reference to `igmp_test_membership' ld: ../../lib/libpim.a(pim.o): in function `pim_init': pim.c:(.text+0x4756): undefined reference to `IGMPv6' ld: pim.c:(.text+0x4987): undefined reference to `IGMP' ld: ../../lib/libpim.a(pim.o): in function `pim_activate_interface': pim.c:(.text+0x4ab9): undefined reference to `igmp_interface' ld: pim.c:(.text+0x4bc6): undefined reference to `join_leave_group' ld: pim.c:(.text+0x4c43): undefined reference to `igmp_interface' ld: pim.c:(.text+0x4cdc): undefined reference to `join_leave_group' ld: pim.c:(.text+0x4dcf): undefined reference to `socket_open' ld: pim.c:(.text+0x4de2): undefined reference to `socket_reuse' ld: pim.c:(.text+0x4def): undefined reference to `socket_rcvbuf' ld: pim.c:(.text+0x4dfc): undefined reference to `ip_hdrincl' ld: pim.c:(.text+0x4e06): undefined reference to `ip_multicast_loop' ld: pim.c:(.text+0x4e13): undefined reference to `ip_pktinfo' ld: pim.c:(.text+0x4e20): undefined reference to `ip_recvttl' ld: pim.c:(.text+0x500e): undefined reference to `igmp_interface' ld: pim.c:(.text+0x519c): undefined reference to `socket_open' ld: pim.c:(.text+0x51af): undefined reference to `socket_reuse' ld: pim.c:(.text+0x51bc): undefined reference to `socket_rcvbuf' ld: pim.c:(.text+0x51c6): undefined reference to `ipv6_multicast_loop' ld: pim.c:(.text+0x51d3): undefined reference to `ipv6_pktinfo' ld: pim.c:(.text+0x51e0): undefined reference to `ipv6_recvhops' ld: pim.c:(.text+0x51ed): undefined reference to `ipv6_multicast_hops' ld: ../../lib/libpim.a(cache.o): in function `cache_timer_expire': cache.c:(.text+0x196): undefined reference to `mc6_req_mfc' ld: cache.c:(.text+0x1b2): undefined reference to `mc_req_mfc' ld: cache.c:(.text+0x27b): undefined reference to `mc6_del_mfc' ld: cache.c:(.text+0x28e): undefined reference to `mc_del_mfc' ld: ../../lib/libpim.a(cache.o): in function `cache_update_mfc': cache.c:(.text+0x643): undefined reference to `mc_add_mfc' ld: cache.c:(.text+0x674): undefined reference to `mc6_add_mfc' ld: ../../lib/libpim.a(cache.o): in function `cache_control_from_kernel': cache.c:(.text+0x8e3): undefined reference to `mc6_del_mfc' ld: cache.c:(.text+0xcd2): undefined reference to `mc_del_mfc' ld: ../../lib/libpim.a(cache.o): in function `cache_init': cache.c:(.text+0x12ec): undefined reference to `ip_pair_hash_fn' ld: cache.c:(.text+0x1300): undefined reference to `ip_pair_lookup_fn' ld: cache.c:(.text+0x13cb): undefined reference to `IGMPv6' ld: cache.c:(.text+0x1411): undefined reference to `ip_pair_hash_fn' ld: cache.c:(.text+0x1425): undefined reference to `ip_pair_lookup_fn' ld: cache.c:(.text+0x14bd): undefined reference to `mc6_kernel_read_rt_table' ld: cache.c:(.text+0x14da): undefined reference to `IGMP' ld: ../../lib/libpim.a(cache.o): in function `show_cache_entries': cache.c:(.text+0x156c): undefined reference to `find_interface_byname' ld: cache.c:(.text+0x175e): undefined reference to `find_interface_byindex' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x6d0): undefined reference to `buffer_printf' ld: rib.c:(.text+0x709): undefined reference to `buffer_printf' ld: rib.c:(.text+0x728): undefined reference to `buffer_printf' ld: rib.c:(.text+0x772): undefined reference to `buffer_printf' ld: rib.c:(.text+0x77e): undefined reference to `New_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_replace_active': rib.c:(.text+0x8f3): undefined reference to `New_Buffer' ld: rib.c:(.text+0x930): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_delete_route_node': rib.c:(.text+0xc65): undefined reference to `New_Buffer' ld: rib.c:(.text+0xca5): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_add_route': rib.c:(.text+0x1338): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1382): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1402): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1446): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1631): undefined reference to `New_Buffer' ld: rib.c:(.text+0x166f): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x75e): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_prefix_list_buffer': prefix.c:(.text+0x6ff): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_pref_prefix_list_buffer': prefix.c:(.text+0x7bb): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_accept_connection': user.c:(.text+0x71b): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_yes_no': user.c:(.text+0xc49): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_destroy_connection': user.c:(.text+0x1101): undefined reference to `Delete_Buffer' ld: user.c:(.text+0x1110): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_add_bulk_output': user.c:(.text+0x18fc): undefined reference to `buffer_vprintf' ld: user.c:(.text+0x1919): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x20d8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x2207): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_proccess_command': user.c:(.text+0x3dcc): undefined reference to `New_Buffer' ld: user.c:(.text+0x3dda): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e09): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e14): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e76): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_command_tab_complete': user.c:(.text+0x4fac): undefined reference to `buffer_adjust' ld: user.c:(.text+0x4fd0): undefined reference to `buffer_printf' ld: user.c:(.text+0x51df): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_read_command.part.0': user.c:(.text+0x5520): undefined reference to `buffer_insert' ld: user.c:(.text+0x574a): undefined reference to `buffer_adjust' ld: user.c:(.text+0x575a): undefined reference to `buffer_puts' ld: user.c:(.text+0x5866): undefined reference to `buffer_adjust' ld: user.c:(.text+0x5b86): undefined reference to `buffer_delete' ld: user.c:(.text+0x5c8d): undefined reference to `buffer_delete' ld: user.c:(.text+0x5e4c): undefined reference to `buffer_adjust' ld: user.c:(.text+0x68c8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6931): undefined reference to `buffer_peek' ld: user.c:(.text+0x69bd): undefined reference to `buffer_peek' ld: user.c:(.text+0x6a23): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6a74): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6ac1): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6b0e): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x2006): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(trace.o):trace.c:(.text+0x3b7): more undefined references to `buffer_adjust' follow ld: ../../lib/libmrt.a(trace.o): in function `trace': trace.c:(.text+0x40d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x45d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x470): undefined reference to `buffer_vprintf' ld: trace.c:(.text+0x718): undefined reference to `New_Buffer' ld: trace.c:(.text+0x864): undefined reference to `buffer_printf' ld: trace.c:(.text+0x87b): undefined reference to `buffer_printf' ld: trace.c:(.text+0x892): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `Destroy_Trace': trace.c:(.text+0xe4c): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer': user_util.c:(.text+0xdb8): undefined reference to `New_Buffer' ld: user_util.c:(.text+0xdc7): undefined reference to `buffer_puts' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer_del': user_util.c:(.text+0xff9): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_data': user_util.c:(.text+0x1084): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x10c6): undefined reference to `buffer_vprintf' ld: ../../lib/libmrt.a(user_util.o): in function `user_vnotice': user_util.c:(.text+0x1149): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x115a): undefined reference to `buffer_vprintf' ld: user_util.c:(.text+0x122d): undefined reference to `Delete_Buffer' *** 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c ricd.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from ricd.c:12: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from ricd.c:12: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from ricd.c:12: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 164 | #endif _RICD_H_ | ^~~~~~~~ ricd.c:159:1: warning: return type of 'main' is not 'int' [-Wmain] 159 | 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] 172 | int rib_install_flag = 1; | ^~~~~~~~~~~~~~~~ ricd.c:171:9: warning: variable 'kernel_install_flag6' set but not used [-Wunused-but-set-variable] 171 | int kernel_install_flag6 = 1; | ^~~~~~~~~~~~~~~~~~~~ ricd.c:170:9: warning: variable 'kernel_install_flag4' set but not used [-Wunused-but-set-variable] 170 | int kernel_install_flag4 = 1; | ^~~~~~~~~~~~~~~~~~~~ ricd.c:169:9: warning: variable 'kernel_read_flag' set but not used [-Wunused-but-set-variable] 169 | int kernel_read_flag = 1; | ^~~~~~~~~~~~~~~~ ricd.c:167:11: warning: variable 'rib_file' set but not used [-Wunused-but-set-variable] 167 | char *rib_file = NULL; | ^~~~~~~~ cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c hqlip.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from hqlip.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from hqlip.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from hqlip.c:5: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 164 | #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] 523 | u_long flags_saved = 0; | ^~~~~~~~~~~ hqlip.c: In function 'hqlip_calc_ilink': hqlip.c:651:15: warning: unused variable 'req_qos' [-Wunused-variable] 651 | req_qos_t req_qos; | ^~~~~~~ hqlip.c: In function 'spath_calc_elink': hqlip.c:725:15: warning: unused variable 'req_qos' [-Wunused-variable] 725 | req_qos_t req_qos; | ^~~~~~~ hqlip.c: In function 'hqlip_send_hello': hqlip.c:912:39: warning: pointer targets in passing argument 2 of 'send_packet' differ in signedness [-Wpointer-sign] 912 | send_packet (vif->udp_sockfd, buffer, cp - buffer, /*MSG_MULTI_LOOP*/0, | ^~~~~~ | | | char * In file included from ../../include/rib.h:13, 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:38: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 189 | int send_packet (int sockfd, u_char *msg, int len, u_long flags, | ~~~~~~~~^~~ In file included from ricd.h:8, from hqlip.c:5: hqlip.c: In function 'hqlip_put_area': ../../include/mrt.h:598:31: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 598 | #define prefix_tochar(prefix) ((char *)&(prefix)->add.sin) | ^ hqlip.c:1074:20: note: in expansion of macro 'prefix_tochar' 1074 | u_char *addr = prefix_tochar (area->id); | ^~~~~~~~~~~~~ hqlip.c: In function 'hqlip_put_addr': ../../include/mrt.h:598:31: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 598 | #define prefix_tochar(prefix) ((char *)&(prefix)->add.sin) | ^ hqlip.c:1144:20: note: in expansion of macro 'prefix_tochar' 1144 | u_char *addr = prefix_tochar (prefix); | ^~~~~~~~~~~~~ hqlip.c: In function 'hqlip_prepare_link_qos': hqlip.c:1199:49: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] 1199 | cp = hqlip_put_area (spath_link_qos->area1, cp); | ^~ | | | char * hqlip.c:1070:39: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 1070 | hqlip_put_area (area_t *area, u_char *cp) | ~~~~~~~~^~ hqlip.c:1199:8: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1199 | cp = hqlip_put_area (spath_link_qos->area1, cp); | ^ hqlip.c:1200:49: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] 1200 | cp = hqlip_put_area (spath_link_qos->area2, cp); | ^~ | | | char * hqlip.c:1070:39: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 1070 | hqlip_put_area (area_t *area, u_char *cp) | ~~~~~~~~^~ hqlip.c:1200:8: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1200 | cp = hqlip_put_area (spath_link_qos->area2, cp); | ^ hqlip.c: In function 'hqlip_send_link_qos': hqlip.c:1279:48: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] 1279 | cp - msgbuf, spath_link_qos->tstamp, msgbuf); | ^~~~~~ | | | char * hqlip.c:987:15: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 987 | u_char *data) | ~~~~~~~~^~~~ hqlip.c: In function 'hqlip_send_area_center': hqlip.c:1468:55: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] 1468 | cp = hqlip_put_area (spath_area_center->area, cp); | ^~ | | | char * hqlip.c:1070:39: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 1070 | hqlip_put_area (area_t *area, u_char *cp) | ~~~~~~~~^~ hqlip.c:1468:12: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1468 | cp = hqlip_put_area (spath_area_center->area, cp); | ^ hqlip.c:1486:51: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] 1486 | cp - msgbuf, spath_area_center->tstamp, msgbuf); | ^~~~~~ | | | char * hqlip.c:987:15: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 987 | u_char *data) | ~~~~~~~~^~~~ hqlip.c: In function 'hqlip_send_area_addr': hqlip.c:1979:53: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] 1979 | cp = hqlip_put_area (spath_area_addr->area, cp); | ^~ | | | char * hqlip.c:1070:39: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 1070 | hqlip_put_area (area_t *area, u_char *cp) | ~~~~~~~~^~ hqlip.c:1979:12: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1979 | cp = hqlip_put_area (spath_area_addr->area, cp); | ^ hqlip.c:1982:46: warning: pointer targets in passing argument 2 of 'hqlip_put_addr' differ in signedness [-Wpointer-sign] 1982 | cp = hqlip_put_addr (prefix, cp); | ^~ | | | char * hqlip.c:1139:43: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 1139 | hqlip_put_addr (prefix_t *prefix, u_char *cp) | ~~~~~~~~^~ hqlip.c:1982:20: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1982 | cp = hqlip_put_addr (prefix, cp); | ^ hqlip.c:1997:49: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] 1997 | cp - msgbuf, spath_area_addr->tstamp, msgbuf); | ^~~~~~ | | | char * hqlip.c:987:15: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 987 | u_char *data) | ~~~~~~~~^~~~ 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] 2296 | &namelen) < 0) { | ^~~~~~~~ | | | int * In file included from ../../include/mrt.h:39, from ricd.h:8, from hqlip.c:5: /usr/include/sys/socket.h:625:52: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 625 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ hqlip.c: In function 'hqlip_vif_udp_init': hqlip.c:2866:25: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 2866 | 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 of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 2934 | 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] 3625 | 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] 3625 | 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] 3624 | 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] 3624 | int a_flags, a_type, a_level, a_len, a_tstamp; | ^~~~~~~ At top level: hqlip.c:790:1: warning: 'hqlip_update_elink' defined but not used [-Wunused-function] 790 | hqlip_update_elink (hqlip_t *hqlip, my_area_t *my_area, hqlip_interface_t *vif) | ^~~~~~~~~~~~~~~~~~ hqlip.c:448:1: warning: 'list_link_qos' defined but not used [-Wunused-function] 448 | list_link_qos (hqlip_t *hqlip, my_area_t *my_area) | ^~~~~~~~~~~~~ hqlip.c:52:1: warning: 'my_area_is_center' defined but not used [-Wunused-function] 52 | my_area_is_center (my_area_t *my_area) | ^~~~~~~~~~~~~~~~~ In file included from ../../include/trace.h:11, 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': ../../include/linked_list.h:199:86: warning: 'prefix' may be used uninitialized in this function [-Wmaybe-uninitialized] 199 | #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 2035 | prefix_t *prefix; | ^~~~~~ cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c ricdconf.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from ricdconf.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from ricdconf.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from ricdconf.c:5: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 164 | #endif _RICD_H_ | ^~~~~~~~ cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c area.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from area.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from area.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from area.c:5: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 164 | #endif _RICD_H_ | ^~~~~~~~ area.c: In function 'add_area': area.c:51:10: warning: unused variable 'sbuf' [-Wunused-variable] 51 | char sbuf[128]; | ^~~~ area.c:87:27: warning: array subscript 2 is outside array bounds of 'struct in6_addr[1]' [-Warray-bounds] 87 | else if (level > 0 && (ul[2] || ul[3])) { | ~~^~~ area.c:79:18: note: while referencing 'addr6' 79 | struct in6_addr addr6; | ^~~~~ area.c:87:36: warning: array subscript 3 is outside array bounds of 'struct in6_addr[1]' [-Warray-bounds] 87 | else if (level > 0 && (ul[2] || ul[3])) { | ~~^~~ area.c:79:18: note: while referencing 'addr6' 79 | struct in6_addr addr6; | ^~~~~ area.c:88:8: warning: array subscript 2 is outside array bounds of 'struct in6_addr[1]' [-Warray-bounds] 88 | ul[2] = 0; | ~~^~~ area.c:79:18: note: while referencing 'addr6' 79 | struct in6_addr addr6; | ^~~~~ area.c:89:8: warning: array subscript 3 is outside array bounds of 'struct in6_addr[1]' [-Warray-bounds] 89 | ul[3] = 0; | ~~^~~ area.c:79:18: note: while referencing 'addr6' 79 | struct in6_addr addr6; | ^~~~~ cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c srsvp.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from srsvp.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from srsvp.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from srsvp.c:5: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 164 | #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] 399 | &namelen) < 0) { | ^~~~~~~~ | | | int * In file included from ../../include/mrt.h:39, from ricd.h:8, from srsvp.c:5: /usr/include/sys/socket.h:625:52: note: expected '__socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 625 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ srsvp.c: In function 'srsvp_vif_tcp_init': srsvp.c:910:25: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 910 | 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] 1959 | int version, hdrflags, sessionf, senderf, type, ttl, srbit, hdrlen; | ^~~~~~~~ cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c qif.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from qif.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from qif.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from qif.c:5: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 164 | #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 ld: ricd.o: in function `main': ricd.c:(.text.startup+0x1c2): undefined reference to `init_interfaces' ld: ricd.c:(.text.startup+0x22b): undefined reference to `kernel_init' ld: hqlip.o: in function `hqlip_vif_tcp_init.isra.0': hqlip.c:(.text+0x1548): undefined reference to `socket_open' ld: hqlip.c:(.text+0x155b): undefined reference to `socket_reuse' ld: hqlip.c:(.text+0x156f): undefined reference to `socket_bind_port' ld: hqlip.o: in function `hqlip_vif_udp_init.isra.0': hqlip.c:(.text+0x1601): undefined reference to `socket_open' ld: hqlip.c:(.text+0x1618): undefined reference to `socket_reuse' ld: hqlip.c:(.text+0x1633): undefined reference to `join_leave_group' ld: hqlip.c:(.text+0x1645): undefined reference to `socket_bind_port' ld: hqlip.c:(.text+0x165b): undefined reference to `ip_multicast_loop' ld: hqlip.c:(.text+0x1668): undefined reference to `ip_multicast_hops' ld: hqlip.c:(.text+0x1675): undefined reference to `ip_pktinfo' ld: hqlip.c:(.text+0x1682): undefined reference to `ip_recvttl' ld: hqlip.c:(.text+0x16d8): undefined reference to `socket_open' ld: hqlip.c:(.text+0x16eb): undefined reference to `socket_reuse' ld: hqlip.c:(.text+0x16fc): undefined reference to `socket_bind_port' ld: hqlip.c:(.text+0x170e): undefined reference to `ip_pktinfo' ld: hqlip.c:(.text+0x171b): undefined reference to `ip_recvttl' ld: hqlip.c:(.text+0x176d): undefined reference to `ipv6_pktinfo' ld: hqlip.c:(.text+0x177a): undefined reference to `ipv6_recvhops' ld: hqlip.c:(.text+0x1781): undefined reference to `ipv6_multicast_loop' ld: hqlip.c:(.text+0x178e): undefined reference to `ipv6_multicast_hops' ld: hqlip.c:(.text+0x179b): undefined reference to `ipv6_pktinfo' ld: hqlip.c:(.text+0x17a8): undefined reference to `ipv6_recvhops' ld: hqlip.o: in function `hqlip_send_hello.part.0': hqlip.c:(.text+0x569b): undefined reference to `send_packet' ld: hqlip.o: in function `hqlip_register_neighbor': hqlip.c:(.text+0x67dc): undefined reference to `socket_bind_port' ld: hqlip.o: in function `hqlip_recv_hello': hqlip.c:(.text+0x6a66): undefined reference to `recvmsgfrom' ld: hqlip.o: in function `hqlip_open_accept': hqlip.c:(.text+0x6d9a): undefined reference to `get_socket_addr' ld: hqlip.o: in function `hqlip_activate_interface': hqlip.c:(.text+0x86be): undefined reference to `join_leave_group' ld: hqlip.o: in function `hqlip_show_neighbors': hqlip.c:(.text+0x8b1f): undefined reference to `find_interface_byname' ld: ricdconf.o: in function `config_ric_network_if_qos_prefix': ricdconf.c:(.text+0x3e59): undefined reference to `find_interface_byname' ld: area.o: in function `area_hash_fn': area.c:(.text+0x11): undefined reference to `ip_hash_fn' ld: srsvp.o: in function `srsvp_flow_hash_fn': srsvp.c:(.text+0xf4): undefined reference to `ip_hash_fn' ld: srsvp.c:(.text+0x10d): undefined reference to `ip_hash_fn' ld: srsvp.o: in function `srsvp_vif_tcp_init.isra.0': srsvp.c:(.text+0x775): undefined reference to `socket_open' ld: srsvp.c:(.text+0x788): undefined reference to `socket_reuse' ld: srsvp.c:(.text+0x79c): undefined reference to `socket_bind_port' ld: srsvp.o: in function `srsvp_tcp_connect': srsvp.c:(.text+0xf2c): undefined reference to `socket_bind_port' ld: srsvp.o: in function `srsvp_open_accept': srsvp.c:(.text+0x15fe): undefined reference to `get_socket_addr' ld: srsvp.o: in function `srsvp_keep_alive': srsvp.c:(.text+0x1b06): undefined reference to `get_socket_addr' ld: srsvp.o: in function `srsvp_show_neighbors': srsvp.c:(.text+0x55ef): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(config_file.o): in function `config_add_output': config_file.c:(.text+0xc5): undefined reference to `buffer_vprintf' ld: config_file.c:(.text+0xd8): undefined reference to `New_Buffer' ld: ../../lib/libcfg.a(config_file.o): in function `show_config': config_file.c:(.text+0x918): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_write': config_file.c:(.text+0x14ee): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_from_file2': config_file.c:(.text+0x1f19): undefined reference to `New_Buffer_Stream' ld: config_file.c:(.text+0x1f47): undefined reference to `buffer_gets' ld: config_file.c:(.text+0x1f67): undefined reference to `Delete_Buffer' ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway': commconf.c:(.text+0x21f): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_interface': commconf.c:(.text+0x2e6): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route': commconf.c:(.text+0x50c): undefined reference to `find_interface_byname' ld: commconf.c:(.text+0x6d5): undefined reference to `find_interface' ld: commconf.c:(.text+0xaaa): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes.isra.0': commconf.c:(.text+0xd25): undefined reference to `find_interface' ld: commconf.c:(.text+0xdc4): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config': commconf.c:(.text+0x1077): undefined reference to `ip_hash_fn' ld: commconf.c:(.text+0x1088): undefined reference to `ip_lookup_fn' ld: commconf.c:(.text+0x126e): undefined reference to `show_interfaces' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x6d0): undefined reference to `buffer_printf' ld: rib.c:(.text+0x709): undefined reference to `buffer_printf' ld: rib.c:(.text+0x728): undefined reference to `buffer_printf' ld: rib.c:(.text+0x772): undefined reference to `buffer_printf' ld: rib.c:(.text+0x77e): undefined reference to `New_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_replace_active': rib.c:(.text+0x8f3): undefined reference to `New_Buffer' ld: rib.c:(.text+0x930): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_delete_route_node': rib.c:(.text+0xc65): undefined reference to `New_Buffer' ld: rib.c:(.text+0xca5): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_add_route': rib.c:(.text+0x1338): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1382): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1402): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1446): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1631): undefined reference to `New_Buffer' ld: rib.c:(.text+0x166f): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x75e): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_prefix_list_buffer': prefix.c:(.text+0x6ff): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_pref_prefix_list_buffer': prefix.c:(.text+0x7bb): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_accept_connection': user.c:(.text+0x71b): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_yes_no': user.c:(.text+0xc49): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_destroy_connection': user.c:(.text+0x1101): undefined reference to `Delete_Buffer' ld: user.c:(.text+0x1110): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_add_bulk_output': user.c:(.text+0x18fc): undefined reference to `buffer_vprintf' ld: user.c:(.text+0x1919): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x20d8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x2207): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_proccess_command': user.c:(.text+0x3dcc): undefined reference to `New_Buffer' ld: user.c:(.text+0x3dda): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e09): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e14): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e76): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_command_tab_complete': user.c:(.text+0x4fac): undefined reference to `buffer_adjust' ld: user.c:(.text+0x4fd0): undefined reference to `buffer_printf' ld: user.c:(.text+0x51df): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_read_command.part.0': user.c:(.text+0x5520): undefined reference to `buffer_insert' ld: user.c:(.text+0x574a): undefined reference to `buffer_adjust' ld: user.c:(.text+0x575a): undefined reference to `buffer_puts' ld: user.c:(.text+0x5866): undefined reference to `buffer_adjust' ld: user.c:(.text+0x5b86): undefined reference to `buffer_delete' ld: user.c:(.text+0x5c8d): undefined reference to `buffer_delete' ld: user.c:(.text+0x5e4c): undefined reference to `buffer_adjust' ld: user.c:(.text+0x68c8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6931): undefined reference to `buffer_peek' ld: user.c:(.text+0x69bd): undefined reference to `buffer_peek' ld: user.c:(.text+0x6a23): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6a74): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6ac1): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6b0e): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x2006): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(trace.o):trace.c:(.text+0x3b7): more undefined references to `buffer_adjust' follow ld: ../../lib/libmrt.a(trace.o): in function `trace': trace.c:(.text+0x40d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x45d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x470): undefined reference to `buffer_vprintf' ld: trace.c:(.text+0x718): undefined reference to `New_Buffer' ld: trace.c:(.text+0x864): undefined reference to `buffer_printf' ld: trace.c:(.text+0x87b): undefined reference to `buffer_printf' ld: trace.c:(.text+0x892): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `Destroy_Trace': trace.c:(.text+0xe4c): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer': user_util.c:(.text+0xdb8): undefined reference to `New_Buffer' ld: user_util.c:(.text+0xdc7): undefined reference to `buffer_puts' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer_del': user_util.c:(.text+0xff9): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_data': user_util.c:(.text+0x1084): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x10c6): undefined reference to `buffer_vprintf' ld: ../../lib/libmrt.a(user_util.o): in function `user_vnotice': user_util.c:(.text+0x1149): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x115a): undefined reference to `buffer_vprintf' ld: user_util.c:(.text+0x122d): undefined reference to `Delete_Buffer' *** 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 -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c route_atob.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_atob.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_atob.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from route_atob.c:5: route_atob.c: In function 'checkstradvance': route_atob.c:68:35: warning: array subscript has type 'char' [-Wchar-subscripts] 68 | if (cp[len] == ':' || isspace (cp[len])) { | ^ route_atob.c:71:26: warning: array subscript has type 'char' [-Wchar-subscripts] 71 | } while (isspace (cp[len])); | ^ route_atob.c: In function 'nulline': route_atob.c:83:21: warning: array subscript has type 'char' [-Wchar-subscripts] 83 | while (isspace (*cp)) | ^ route_atob.c: In function 'read_ascii': route_atob.c:315:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 315 | if (MRT->force_exit_flag) | ^~ route_atob.c:317:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 317 | bgp_deref_attr (attr); | ^~~~~~~~~~~~~~ In file included from /usr/include/ctype.h:100, from ../../include/mrt.h:42, from route_atob.c:5: route_atob.c:343:19: warning: array subscript has type 'char' [-Wchar-subscripts] 343 | if (isspace (line[0])) { | ^ route_atob.c:347:22: warning: array subscript has type 'char' [-Wchar-subscripts] 347 | while (isspace (*cp)) | ^ route_atob.c:366:23: warning: array subscript has type 'char' [-Wchar-subscripts] 366 | if (isspace (line[0]) && | ^ route_atob.c:387:28: warning: array subscript has type 'char' [-Wchar-subscripts] 387 | else if (isspace (line[0]) && | ^ route_atob.c:409:28: warning: array subscript has type 'char' [-Wchar-subscripts] 409 | else if (isspace (line[0]) && | ^ route_atob.c:167:44: warning: variable 'optlen' set but not used [-Wunused-but-set-variable] 167 | 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] 690 | 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 ld: route_atob.o: in function `read_ascii': route_atob.c:(.text+0x277): undefined reference to `New_Buffer_Stream' ld: route_atob.c:(.text+0x39d): undefined reference to `buffer_gets' ld: route_atob.c:(.text+0x5f4): undefined reference to `buffer_gets' ld: route_atob.c:(.text+0x80d): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_attr_buffer': bgp_msg.c:(.text+0x1953): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x19d0): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x19f5): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a1a): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a83): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x1aa2): more undefined references to `buffer_printf' follow ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_uii_attr': bgp_msg.c:(.text+0x1cd9): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1be0): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_prefix_list_buffer': prefix.c:(.text+0x6ff): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_pref_prefix_list_buffer': prefix.c:(.text+0x7bb): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `trace': trace.c:(.text+0x3b7): undefined reference to `buffer_adjust' ld: trace.c:(.text+0x40d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x45d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x470): undefined reference to `buffer_vprintf' ld: trace.c:(.text+0x718): undefined reference to `New_Buffer' ld: trace.c:(.text+0x864): undefined reference to `buffer_printf' ld: trace.c:(.text+0x87b): undefined reference to `buffer_printf' ld: trace.c:(.text+0x892): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `Destroy_Trace': trace.c:(.text+0xe4c): undefined reference to `Delete_Buffer' *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/route_atob cd route_btoa; /usr/pkg/bin/bmake cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c route_btoa.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_btoa.c:5: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_btoa.c:5: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | route_btoa.c:698:1: warning: return type of 'main' is not 'int' [-Wmain] 698 | main (int argc, char *argv[]) | ^~~~ cc -Wl,-zrelro -Wl,-R/usr/pkg/lib route_btoa.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_btoa -lresolv ld: route_btoa.o: in function `print_bgp_msg': route_btoa.c:(.text+0x1ec): undefined reference to `buffer_printf' ld: route_btoa.c:(.text+0x2b4): undefined reference to `buffer_printf' ld: route_btoa.c:(.text+0x308): undefined reference to `buffer_printf' ld: route_btoa.c:(.text+0x320): undefined reference to `buffer_printf' ld: route_btoa.c:(.text+0x3cc): undefined reference to `buffer_printf' ld: route_btoa.o:route_btoa.c:(.text+0x3fd): more undefined references to `buffer_printf' follow ld: route_btoa.o: in function `main': route_btoa.c:(.text.startup+0x22d): undefined reference to `New_Buffer_Stream' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_attr_buffer': bgp_msg.c:(.text+0x1953): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x19d0): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x19f5): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a1a): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a83): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x1aa2): more undefined references to `buffer_printf' follow ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_uii_attr': bgp_msg.c:(.text+0x1cd9): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1be0): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_prefix_list_buffer': prefix.c:(.text+0x6ff): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_pref_prefix_list_buffer': prefix.c:(.text+0x7bb): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `trace': trace.c:(.text+0x3b7): undefined reference to `buffer_adjust' ld: trace.c:(.text+0x40d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x45d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x470): undefined reference to `buffer_vprintf' ld: trace.c:(.text+0x718): undefined reference to `New_Buffer' ld: trace.c:(.text+0x864): undefined reference to `buffer_printf' ld: trace.c:(.text+0x87b): undefined reference to `buffer_printf' ld: trace.c:(.text+0x892): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `Destroy_Trace': trace.c:(.text+0xe4c): undefined reference to `Delete_Buffer' *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/route_btoa cd sbgp; /usr/pkg/bin/bmake cc -pipe -O2 -pipe -O2 -fPIC -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -DFUNCPROTO -I../../include -c simple_bgp.c In file included from ../../include/mrt_thread.h:11, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simple_bgp.c:10: ../../include/pthread_fake.h:40: warning: "pthread_sigmask" redefined 40 | #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) | In file included from ../../include/trace.h:9, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simple_bgp.c:10: /usr/include/signal.h:80: note: this is the location of the previous definition 80 | #define pthread_sigmask __libc_thr_sigsetmask | 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 ld: simple_bgp.o: in function `main': simple_bgp.c:(.text.startup+0x1c0): undefined reference to `init_interfaces' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_make_tail.constprop.0.isra.0': bgp_util.c:(.text+0xb16): undefined reference to `buffer_printf' ld: bgp_util.c:(.text+0xb3d): undefined reference to `buffer_putc' ld: bgp_util.c:(.text+0xb4c): undefined reference to `buffer_putc' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_put_a_line': bgp_util.c:(.text+0xb73): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_util.o): in function `peer_set_gateway': bgp_util.c:(.text+0x13ec): undefined reference to `get_socket_addr' ld: bgp_util.c:(.text+0x1405): undefined reference to `get_socket_addr' ld: bgp_util.c:(.text+0x1431): undefined reference to `find_interface_local' ld: bgp_util.c:(.text+0x159d): undefined reference to `find_interface_local' ld: bgp_util.c:(.text+0x15d5): undefined reference to `find_interface' ld: bgp_util.c:(.text+0x161a): undefined reference to `find_interface_local' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_start_transport_connection': bgp_util.c:(.text+0x16fc): undefined reference to `socket_reuse' ld: ../../lib/libbgp.a(bgp_util.o): in function `init_BGP_listen': bgp_util.c:(.text+0x20e7): undefined reference to `socket_reuse' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_in_recv_open': bgp_util.c:(.text+0x4320): undefined reference to `get_socket_addr' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_dump_rtin': bgp_util.c:(.text+0x6c07): undefined reference to `New_Buffer' ld: bgp_util.c:(.text+0x6c8a): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_make_tail.constprop.0.isra.0': bgp_util.c:(.text+0xafd): undefined reference to `buffer_putc' ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_put_a_line': bgp_util.c:(.text+0xc49): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(view.o): in function `bgp_policy': view.c:(.text+0x2ba): undefined reference to `find_interface_local' ld: ../../lib/libbgp.a(view.o): in function `bgp_resolve_nexthop': view.c:(.text+0x15b6): undefined reference to `find_interface' ld: view.c:(.text+0x15cc): undefined reference to `find_interface_local' ld: view.c:(.text+0x162d): undefined reference to `ip_hash_fn' ld: view.c:(.text+0x163e): undefined reference to `ip_lookup_fn' ld: ../../lib/libbgp.a(view.o): in function `view_set_nexthop_self': view.c:(.text+0x35ac): undefined reference to `find_interface' ld: ../../lib/libbgp.a(view.o): in function `view_add_aggregate': view.c:(.text+0x5c18): undefined reference to `find_interface' ld: view.c:(.text+0x5c4a): undefined reference to `find_interface' ld: view.c:(.text+0x5c99): undefined reference to `find_interface' ld: ../../lib/libbgp.a(bgp_dump.o): in function `dump_view_bgp_routes': bgp_dump.c:(.text+0x5f5): undefined reference to `Delete_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_attr_buffer': bgp_msg.c:(.text+0x1953): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x19d0): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x19f5): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a1a): undefined reference to `buffer_printf' ld: bgp_msg.c:(.text+0x1a83): undefined reference to `buffer_printf' ld: ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x1aa2): more undefined references to `buffer_printf' follow ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_uii_attr': bgp_msg.c:(.text+0x1cd9): undefined reference to `New_Buffer' ld: ../../lib/libbgp.a(bgp_msg.o): in function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1be0): undefined reference to `buffer_printf' ld: ../../lib/libcfg.a(config_file.o): in function `config_add_output': config_file.c:(.text+0xc5): undefined reference to `buffer_vprintf' ld: config_file.c:(.text+0xd8): undefined reference to `New_Buffer' ld: ../../lib/libcfg.a(config_file.o): in function `show_config': config_file.c:(.text+0x918): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_write': config_file.c:(.text+0x14ee): undefined reference to `buffer_adjust' ld: ../../lib/libcfg.a(config_file.o): in function `config_from_file2': config_file.c:(.text+0x1f19): undefined reference to `New_Buffer_Stream' ld: config_file.c:(.text+0x1f47): undefined reference to `buffer_gets' ld: config_file.c:(.text+0x1f67): undefined reference to `Delete_Buffer' ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway': commconf.c:(.text+0x21f): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_interface': commconf.c:(.text+0x2e6): undefined reference to `find_interface_byname' ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route': commconf.c:(.text+0x50c): undefined reference to `find_interface_byname' ld: commconf.c:(.text+0x6d5): undefined reference to `find_interface' ld: commconf.c:(.text+0xaaa): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes.isra.0': commconf.c:(.text+0xd25): undefined reference to `find_interface' ld: commconf.c:(.text+0xdc4): undefined reference to `find_interface_local' ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config': commconf.c:(.text+0x1077): undefined reference to `ip_hash_fn' ld: commconf.c:(.text+0x1088): undefined reference to `ip_lookup_fn' ld: commconf.c:(.text+0x126e): undefined reference to `show_interfaces' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x6d0): undefined reference to `buffer_printf' ld: rib.c:(.text+0x709): undefined reference to `buffer_printf' ld: rib.c:(.text+0x728): undefined reference to `buffer_printf' ld: rib.c:(.text+0x772): undefined reference to `buffer_printf' ld: rib.c:(.text+0x77e): undefined reference to `New_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_replace_active': rib.c:(.text+0x8f3): undefined reference to `New_Buffer' ld: rib.c:(.text+0x930): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_delete_route_node': rib.c:(.text+0xc65): undefined reference to `New_Buffer' ld: rib.c:(.text+0xca5): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `rib_add_route': rib.c:(.text+0x1338): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1382): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1402): undefined reference to `New_Buffer' ld: rib.c:(.text+0x1446): undefined reference to `Delete_Buffer' ld: rib.c:(.text+0x1631): undefined reference to `New_Buffer' ld: rib.c:(.text+0x166f): undefined reference to `Delete_Buffer' ld: ../../lib/librib.a(rib.o): in function `route_toa_buffer.isra.0': rib.c:(.text+0x75e): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_prefix_list_buffer': prefix.c:(.text+0x6ff): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(prefix.o): in function `print_pref_prefix_list_buffer': prefix.c:(.text+0x7bb): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_accept_connection': user.c:(.text+0x71b): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_yes_no': user.c:(.text+0xc49): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_destroy_connection': user.c:(.text+0x1101): undefined reference to `Delete_Buffer' ld: user.c:(.text+0x1110): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_add_bulk_output': user.c:(.text+0x18fc): undefined reference to `buffer_vprintf' ld: user.c:(.text+0x1919): undefined reference to `New_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x20d8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x2207): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_proccess_command': user.c:(.text+0x3dcc): undefined reference to `New_Buffer' ld: user.c:(.text+0x3dda): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e09): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e14): undefined reference to `buffer_puts' ld: user.c:(.text+0x3e76): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user.o): in function `uii_command_tab_complete': user.c:(.text+0x4fac): undefined reference to `buffer_adjust' ld: user.c:(.text+0x4fd0): undefined reference to `buffer_printf' ld: user.c:(.text+0x51df): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(user.o): in function `uii_read_command.part.0': user.c:(.text+0x5520): undefined reference to `buffer_insert' ld: user.c:(.text+0x574a): undefined reference to `buffer_adjust' ld: user.c:(.text+0x575a): undefined reference to `buffer_puts' ld: user.c:(.text+0x5866): undefined reference to `buffer_adjust' ld: user.c:(.text+0x5b86): undefined reference to `buffer_delete' ld: user.c:(.text+0x5c8d): undefined reference to `buffer_delete' ld: user.c:(.text+0x5e4c): undefined reference to `buffer_adjust' ld: user.c:(.text+0x68c8): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6931): undefined reference to `buffer_peek' ld: user.c:(.text+0x69bd): undefined reference to `buffer_peek' ld: user.c:(.text+0x6a23): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6a74): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6ac1): undefined reference to `buffer_adjust' ld: user.c:(.text+0x6b0e): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(user.o): in function `uii_send_bulk_data': user.c:(.text+0x2006): undefined reference to `buffer_adjust' ld: ../../lib/libmrt.a(trace.o):trace.c:(.text+0x3b7): more undefined references to `buffer_adjust' follow ld: ../../lib/libmrt.a(trace.o): in function `trace': trace.c:(.text+0x40d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x45d): undefined reference to `buffer_printf' ld: trace.c:(.text+0x470): undefined reference to `buffer_vprintf' ld: trace.c:(.text+0x718): undefined reference to `New_Buffer' ld: trace.c:(.text+0x864): undefined reference to `buffer_printf' ld: trace.c:(.text+0x87b): undefined reference to `buffer_printf' ld: trace.c:(.text+0x892): undefined reference to `buffer_printf' ld: ../../lib/libmrt.a(trace.o): in function `Destroy_Trace': trace.c:(.text+0xe4c): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer': user_util.c:(.text+0xdb8): undefined reference to `New_Buffer' ld: user_util.c:(.text+0xdc7): undefined reference to `buffer_puts' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_buffer_del': user_util.c:(.text+0xff9): undefined reference to `Delete_Buffer' ld: ../../lib/libmrt.a(user_util.o): in function `uii_send_data': user_util.c:(.text+0x1084): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x10c6): undefined reference to `buffer_vprintf' ld: ../../lib/libmrt.a(user_util.o): in function `user_vnotice': user_util.c:(.text+0x1149): undefined reference to `New_Buffer' ld: user_util.c:(.text+0x115a): undefined reference to `buffer_vprintf' ld: user_util.c:(.text+0x122d): undefined reference to `Delete_Buffer' *** Error code 1 Stop. bmake[3]: stopped in /home/pbulk/build/net/mrt/work/mrt/src/programs/sbgp