=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for mrt-2.2.2a.20000811nb1 Making lib cd bgp_attr; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include aspath.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from aspath.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from aspath.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - aspath.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_attr.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_attr.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int flags, len; ^ bgp_attr.c:819:9: warning: variable 'flags' set but not used [-Wunused-but-set-variable] int flags, len; ^ a - bgp_attr.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include as_regexp.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from as_regexp.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - as_regexp.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include as_alist.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from as_alist.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - as_alist.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_msg.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_msg.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int afi, index; ^ bgp_msg.c: In function 'mrt_bgp_msg_type': bgp_msg.c:333:18: warning: variable 'hdrlen' set but not used [-Wunused-but-set-variable] int hdrtype, hdrlen; ^ bgp_msg.c:332:14: warning: variable 'index' set but not used [-Wunused-but-set-variable] int afi, index; ^ bgp_msg.c:330:14: warning: variable 'das' set but not used [-Wunused-but-set-variable] int sas, das; ^ bgp_msg.c:330:9: warning: variable 'sas' set but not used [-Wunused-but-set-variable] int sas, das; ^ bgp_msg.c: In function 'bgp_create_update_msg2': bgp_msg.c:500:30: warning: variable 'end_pdu' set but not used [-Wunused-but-set-variable] u_char *cp, *start_pdu, *end_pdu; ^ bgp_msg.c: In function 'bgp_process_state_msg': bgp_msg.c:551:14: warning: variable 'index' set but not used [-Wunused-but-set-variable] int afi, index; ^ bgp_msg.c:532:14: warning: variable 'das' set but not used [-Wunused-but-set-variable] int sas, das; ^ a - bgp_msg.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include community.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from community.c:6: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from community.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - community.o cd bgp_proto; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_util.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_util.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] if (getpeername (peer->sockfd, (struct sockaddr *)&name, &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from bgp_util.c:6: /usr/include/sys/socket.h:653:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' 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] int llen; ^ bgp_util.c: In function 'bgp_schedule_recv_in': bgp_util.c:361:3: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from bgp_util.c:6: /usr/include/sys/socket.h:653:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' 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] int authcode; ^ bgp_util.c:404:16: warning: variable 'holdtime' set but not used [-Wunused-but-set-variable] u_long holdtime; ^ bgp_util.c:403:13: warning: variable 'as' set but not used [-Wunused-but-set-variable] int as; ^ bgp_util.c:402:13: warning: variable 'version' set but not used [-Wunused-but-set-variable] int version; ^ bgp_util.c: In function 'bgp_direct_in_recv_open': bgp_util.c:464:9: warning: variable 'authcode' set but not used [-Wunused-but-set-variable] int authcode; ^ bgp_util.c:463:12: warning: variable 'holdtime' set but not used [-Wunused-but-set-variable] u_long holdtime; ^ bgp_util.c:461:9: warning: variable 'version' set but not used [-Wunused-but-set-variable] int version; ^ bgp_util.c: In function 'bgp_in_accept_connection': bgp_util.c:778:58: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign] if (getsockname (sockfd, (struct sockaddr *) &local, &len) < 0) { ^ In file included from ../../include/mrt.h:39:0, from bgp_util.c:6: /usr/include/sys/socket.h:654:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' 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 differ in signedness [-Wpointer-sign] char *data = buffer->data; ^ bgp_util.c: In function 'bgp_put_a_line': bgp_util.c:2316:6: warning: pointer targets in passing argument 10 of 'rib_show_route_line' differ in signedness [-Wpointer-sign] buffer->data); ^ In file included from ../../include/bgp.h:15:0, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from bgp_util.c:6: ../../include/rib.h:149:6: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' void rib_show_route_line (uii_connection_t *uii, int c1, int c2, int type, ^ bgp_util.c: In function 'bgp_dump_rtin': bgp_util.c:2606:17: warning: pointer targets in passing argument 10 of 'rib_show_route_line' differ in signedness [-Wpointer-sign] NULL, buffer->data); ^ In file included from ../../include/bgp.h:15:0, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from bgp_util.c:6: ../../include/rib.h:149:6: note: expected 'char *' but argument is of type 'u_char * {aka unsigned char *}' void rib_show_route_line (uii_connection_t *uii, int c1, int c2, int type, ^ a - bgp_util.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_sm.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_sm.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - bgp_sm.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_pdu.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_pdu.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int hdrtype, hdrlen; ^ bgp_pdu.c: In function 'bgp_process_open': bgp_pdu.c:464:18: warning: variable 'authdata' set but not used [-Wunused-but-set-variable] u_char *authdata; ^ a - bgp_pdu.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include view.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from view.c:6: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from view.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] bgp_route_t *best = NULL; ^ view.c: In function 'origin_merge': view.c:2180:1: warning: type of 'o1' defaults to 'int' [-Wimplicit-int] origin_merge (o1, o2) ^ view.c:2180:1: warning: type of 'o2' defaults to 'int' [-Wimplicit-int] a - view.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_timer.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_timer.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - bgp_timer.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_thread.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_thread.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - bgp_thread.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_dump.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_dump.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int plen = 4; ^ a - bgp_dump.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgp_dump2.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgp_dump2.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - bgp_dump2.o cd config; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include config_file.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from config_file.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - config_file.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include commconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from commconf.c:6: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from commconf.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - commconf.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bgpconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpconf.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpconf.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from /usr/include/stdio.h:597:0, from ../../include/mrt.h:17, from bgpconf.c:5: bgpconf.c: In function 'time_to_unit': bgpconf.c:1939:17: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=] sprintf (buff, "%ldh", t / 3600); ^ bgpconf.c:1941:17: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=] sprintf (buff, "%ldm", t / 60); ^ bgpconf.c:1943:17: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=] sprintf (buff, "%ld", t); ^ a - bgpconf.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rtmapconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rtmapconf.c:6: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rtmapconf.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - rtmapconf.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include load.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from load.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from load.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int afi, safi, nhlen, bitlen; ^ load.c:40:14: warning: variable 't' set but not used [-Wunused-but-set-variable] time_t t; ^ load.c:20:10: warning: variable 'originated' set but not used [-Wunused-but-set-variable] time_t originated; ^ load.c:19:17: warning: variable 'seq_num' set but not used [-Wunused-but-set-variable] int view_num, seq_num, attrlen; ^ load.c:19:7: warning: variable 'view_num' set but not used [-Wunused-but-set-variable] int view_num, seq_num, attrlen; ^ load.c:18:10: warning: variable 'status' set but not used [-Wunused-but-set-variable] u_long status, mask; ^ a - load.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include ripconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripconf.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripconf.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - ripconf.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include multiconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from multiconf.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from multiconf.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - multiconf.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include dvmrpconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrpconf.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrpconf.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - dvmrpconf.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include pimconf.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pimconf.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pimconf.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - pimconf.o cd filter; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include filter.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from filter.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from filter.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - filter.o cd io; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include io.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from io.c:12: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from io.c:12: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - io.o cd kernel; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bsd.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bsd.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bsd.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] if (ioctl (route_sockfd, SIOCGIFFLAGS, &ifr) < 0) { ^ bsd.c:521:18: warning: unused variable 'tmpx' [-Wunused-variable] char tmpx[MAXLINE]; ^ bsd.c:590:5: error: 'RTF_CLONING' undeclared (first use in this function) |RTF_CLONING /* direct if */ ^ 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) |RTF_XRESOLVE /* direct if for IPv6 */ ^ bsd.c:404:43: warning: unused variable 'src' [-Wunused-variable] u_char *addr = NULL, *broadcast = NULL, *src = NULL; ^ bsd.c:395:23: warning: unused variable 'so_src' [-Wunused-variable] so_ifa, so_ifp, so_src; ^ *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/lib/kernel cd mrt; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include util.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from util.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from util.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ util.c: In function 'my_strftime': util.c:158:19: warning: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types] tm = localtime(&t); ^ In file included from /usr/include/sys/select.h:62:0, from /usr/include/sys/time.h:313, from ../../include/mrt.h:28, from util.c:5: /usr/include/time.h:96:12: note: expected 'const time_t * {aka const long long int *}' but argument is of type 'long int *' struct tm *localtime(const time_t *) __RENAME(__locatime50); ^ In file included from /usr/include/stdio.h:597:0, from ../../include/mrt.h:17, from util.c:5: util.c: In function 'etime2ascii': util.c:235:24: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=] sprintf (date, "%02lddy%02ldhr", ^ util.c:235:24: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t {aka long long int}' [-Wformat=] util.c:238:24: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=] sprintf (date, "%02ld:%02ld:%02ld", ^ util.c:238:24: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t {aka long long int}' [-Wformat=] util.c:238:24: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'time_t {aka long long int}' [-Wformat=] a - util.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include prefix.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from prefix.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from prefix.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ prefix.c: In function 'prefix_toname': prefix.c:309:10: warning: unused variable 'hostbuf' [-Wunused-variable] char hostbuf[1024]; ^ prefix.c:308:9: warning: unused variable 'h_errno_r' [-Wunused-variable] int h_errno_r; ^ prefix.c:307:20: warning: unused variable 'result' [-Wunused-variable] struct hostent result; ^ a - prefix.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include route_util.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_util.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - route_util.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include gateway.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from gateway.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from gateway.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - gateway.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include mrt.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrt.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrt.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int r = accept (d, addr, addrlen); ^ In file included from ../../include/mrt.h:39:0, from mrt.c:5: /usr/include/sys/socket.h:649:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ a - mrt.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include user.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int len, port, family; ^ a - user.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include schedule.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from schedule.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from schedule.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - schedule.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include alist.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from alist.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from alist.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - alist.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include trace.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from trace.c:6: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from trace.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - trace.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include select.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from select.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from select.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - select.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include connect.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from connect.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from connect.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] &size); ^ In file included from ../../include/mrt.h:39:0, from connect.c:5: /usr/include/sys/socket.h:655:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' int getsockopt(int, int, int, void *__restrict, socklen_t * __restrict); ^ a - connect.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include reboot.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from reboot.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from reboot.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - reboot.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include user_old.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user_old.c:7: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ user_old.c: In function 'parse_line': user_old.c:31:9: warning: variable 'state' set but not used [-Wunused-but-set-variable] int state; ^ a - user_old.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include user_util.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from user_util.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ user_util.c: In function 'find_matching_commands': user_util.c:215:7: warning: variable 'optional' set but not used [-Wunused-but-set-variable] int optional; ^ user_util.c:213:30: warning: variable 'last_utoken' set but not used [-Wunused-but-set-variable] char *last_ctoken = NULL, *last_utoken = NULL; ^ a - user_util.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include compat.c a - compat.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include vars.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from vars.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from vars.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - vars.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include nexthop.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from nexthop.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from nexthop.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ nexthop.c: In function 'is_prefix_local_on': nexthop.c:393:19: warning: unused variable 'sin6_addr' [-Wunused-variable] struct in6_addr *sin6_addr; ^ a - nexthop.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include buffer.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from buffer.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from buffer.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from /usr/include/stdio.h:597:0, from ../../include/mrt.h:17, from buffer.c:5: buffer.c:232:1: error: expected declaration specifiers or '...' before numeric constant snprintf (char *str, size_t size, const char *format, ...) ^ In file included from /usr/include/ssp/stdio.h:34:0, from /usr/include/stdio.h:597, from ../../include/mrt.h:17, from buffer.c:5: buffer.c:232:1: error: expected declaration specifiers or '...' before '__builtin_object_size' snprintf (char *str, size_t size, const char *format, ...) ^ *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/lib/mrt cd pim; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include dvmrp.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrp.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from dvmrp.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ dvmrp.c: In function 'dvmrp_recv_report': dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ntohl (*(u_long *)mask), source, interface->name); ^ dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] dvmrp.c:889:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] dvmrp.c:909:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (* (u_long *) origin == 0L && prefixlen == 8) { ^ dvmrp.c: At top level: dvmrp.c:1276:1: warning: 'dvmrp_timer_probe' defined but not used [-Wunused-function] dvmrp_timer_probe (void) ^ dvmrp.c:1759:1: warning: 'dvmrp_route_compare' defined but not used [-Wunused-function] dvmrp_route_compare (dvmrp_route_t * a, dvmrp_route_t * b) ^ a - dvmrp.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include pim.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pim.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from pim.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] gateway_t *gateway; ^ pim.c:285:18: warning: variable 'cksum' set but not used [-Wunused-but-set-variable] int len = 0, cksum; ^ pim.c: In function 'pim_get_enc_multi': pim.c:805:19: warning: variable 'reserved' set but not used [-Wunused-but-set-variable] int afi, enc, reserved, masklen; ^ pim.c: In function 'pim_get_enc_src': pim.c:837:19: warning: variable 'reserved' set but not used [-Wunused-but-set-variable] int afi, enc, reserved, masklen; ^ pim.c: In function 'pim_recv_join_prune_graft': pim.c:1393:19: warning: variable 'reserved' set but not used [-Wunused-but-set-variable] int holdtime, reserved, ngroups; ^ pim.c: In function 'pim_start': pim.c:1822:13: warning: variable 'igmp' set but not used [-Wunused-but-set-variable] igmp_t *igmp = NULL; ^ a - pim.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include cache.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from cache.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from cache.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from /usr/include/stdio.h:597:0, from ../../include/mrt.h:17, from cache.c:5: cache.c: In function 'show_cache_entries': cache.c:649:21: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t {aka long long int}' [-Wformat=] sprintf (stmp, "%4ld", entry->expire - now); ^ cache.c: At top level: cache.c:234:1: warning: 'index2vindex' defined but not used [-Wunused-function] index2vindex (int index) ^ a - cache.o cd portserver; /usr/bin/make cd radix; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include radix.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from radix.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from radix.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - radix.o cd rib; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rib.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ rib.c:932:1: warning: 'rib_if_call_fn' defined but not used [-Wunused-function] rib_if_call_fn (int cmd, interface_t *interface, ll_addr_t *if_addr) ^ a - rib.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rib_uii.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rib_uii.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - rib_uii.o cd rip; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rip_proto.c In file included from ../../include/mrt_thread.h:11:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip_proto.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from /usr/include/stdio.h:597:0, from ../../include/mrt.h:17, from rip_proto.c:6: rip_proto.c: In function 'rip_show_routing_table': rip_proto.c:1270:21: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t {aka long long int}' [-Wformat=] sprintf (stmp, "%4d %4ld", attr->metric, now - attr->utime); ^ rip_proto.c:1306:25: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'time_t {aka long long int}' [-Wformat=] sprintf (stmp, "%4d %4ld", attr->metric, now - attr->dtime); ^ a - rip_proto.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include rip2.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip2.c:15: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from rip2.c:15: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int afi, tag, prefixlen, metric; ^ a - rip2.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include ripng.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripng.c:23: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ripng.c:23: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] int tag, prefixlen, metric; ^ ripng.c: In function 'ripng_receive_update': ripng.c:425:22: warning: 'buffer' is used uninitialized in this function [-Wuninitialized] u_char *buffer, *cp = buffer; ^ a - ripng.o cd struct; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include New.c a - New.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include stack.c a - stack.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include array.c a - array.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include linked_list.c a - linked_list.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include hash.c a - hash.o cd timer; /usr/bin/make gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include timer.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from timer.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from timer.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - timer.o gcc -c -O2 -D_FORTIFY_SOURCE=2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include signal.c In file included from ../../include/mrt_thread.h:11:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from signal.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from signal.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ a - signal.o Making programs cd bgpsim; /usr/bin/make gcc -O2 -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:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpsim.c:6: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from bgpsim.c:6: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ gcc -O2 -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:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simulate.c:5: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simulate.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #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] bgp_route_t *route; ^ gcc -Wl,-R/usr/pkg/lib bgpsim.o simulate.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librib.a ../../lib/libmrt.a -o bgpsim -lresolv ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x2b4): undefined reference to `find_interface' commconf.c:(.text+0x2d0): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0x5b0): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x818): undefined reference to `find_interface_byname' commconf.c:(.text+0xc7c): undefined reference to `find_interface' commconf.c:(.text+0xca8): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xfe4): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x1120): undefined reference to `ip_hash_fn' commconf.c:(.text+0x1128): undefined reference to `ip_hash_fn' commconf.c:(.text+0x1154): undefined reference to `ip_lookup_fn' commconf.c:(.text+0x115c): undefined reference to `ip_lookup_fn' commconf.c:(.text+0x1360): undefined reference to `show_interfaces' commconf.c:(.text+0x1374): undefined reference to `show_interfaces' ../../lib/libcfg.a(config_file.o): In function `config_add_output': config_file.c:(.text+0x60): undefined reference to `buffer_vprintf' config_file.c:(.text+0x6c): undefined reference to `New_Buffer' ../../lib/libcfg.a(config_file.o): In function `show_config': config_file.c:(.text+0x6e8): undefined reference to `buffer_adjust' ../../lib/libcfg.a(config_file.o): In function `config_write': config_file.c:(.text+0x1600): undefined reference to `buffer_adjust' ../../lib/libcfg.a(config_file.o): In function `config_from_file2': config_file.c:(.text+0x2168): undefined reference to `New_Buffer_Stream' config_file.c:(.text+0x2198): undefined reference to `buffer_gets' config_file.c:(.text+0x21b8): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_util.o): In function `bgp_make_tail.isra.2': bgp_util.c:(.text+0xb28): undefined reference to `buffer_putc' bgp_util.c:(.text+0xb34): undefined reference to `buffer_putc' bgp_util.c:(.text+0xb54): undefined reference to `buffer_printf' bgp_util.c:(.text+0xb70): undefined reference to `buffer_putc' ../../lib/libbgp.a(bgp_util.o): In function `bgp_put_a_line': bgp_util.c:(.text+0xb9c): undefined reference to `New_Buffer' bgp_util.c:(.text+0xc6c): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_util.o): In function `bgp_dump_rtin': bgp_util.c:(.text+0xdf4): undefined reference to `New_Buffer' bgp_util.c:(.text+0xe68): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x1a10): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1a28): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1a54): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1bac): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1be4): undefined reference to `find_interface' bgp_util.c:(.text+0x1c00): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x1d20): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x26a0): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x4874): undefined reference to `get_socket_addr' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0x328): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x19a0): undefined reference to `ip_hash_fn' view.c:(.text+0x19a4): undefined reference to `ip_lookup_fn' view.c:(.text+0x19b4): undefined reference to `ip_hash_fn' view.c:(.text+0x19b8): undefined reference to `ip_lookup_fn' view.c:(.text+0x1a28): undefined reference to `find_interface' view.c:(.text+0x1a48): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x3a3c): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x5f6c): undefined reference to `find_interface' view.c:(.text+0x5f94): undefined reference to `find_interface' view.c:(.text+0x5fe0): undefined reference to `find_interface' ../../lib/libbgp.a(bgp_dump.o): In function `dump_view_bgp_routes': bgp_dump.c:(.text+0x778): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_attr_buffer': bgp_msg.c:(.text+0x13b8): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1438): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x145c): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x1480): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x14e4): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x151c): more undefined references to `buffer_printf' follow ../../lib/libbgp.a(bgp_msg.o): In function `bgp_uii_attr': bgp_msg.c:(.text+0x16f0): undefined reference to `New_Buffer' ../../lib/librib.a(rib.o): In function `route_toa_buffer': rib.c:(.text+0x124): undefined reference to `buffer_printf' rib.c:(.text+0x170): undefined reference to `buffer_printf' rib.c:(.text+0x18c): undefined reference to `buffer_printf' rib.c:(.text+0x1ac): undefined reference to `buffer_printf' rib.c:(.text+0x1c4): undefined reference to `buffer_printf' rib.c:(.text+0x1d0): undefined reference to `New_Buffer' ../../lib/librib.a(rib.o): In function `rib_replace_active': rib.c:(.text+0x8e4): undefined reference to `New_Buffer' rib.c:(.text+0x920): undefined reference to `Delete_Buffer' ../../lib/librib.a(rib.o): In function `rib_delete_route_node': rib.c:(.text+0xe08): undefined reference to `New_Buffer' rib.c:(.text+0xe44): undefined reference to `Delete_Buffer' ../../lib/librib.a(rib.o): In function `rib_add_route': rib.c:(.text+0x15f4): undefined reference to `New_Buffer' rib.c:(.text+0x1634): undefined reference to `Delete_Buffer' rib.c:(.text+0x184c): undefined reference to `New_Buffer' rib.c:(.text+0x1888): undefined reference to `Delete_Buffer' rib.c:(.text+0x18a0): undefined reference to `New_Buffer' rib.c:(.text+0x18dc): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(prefix.o): In function `print_prefix_list_buffer': prefix.c:(.text+0xaf0): undefined reference to `buffer_printf' ../../lib/libmrt.a(prefix.o): In function `print_pref_prefix_list_buffer': prefix.c:(.text+0xbcc): undefined reference to `buffer_printf' ../../lib/libmrt.a(user.o): In function `uii_accept_connection': user.c:(.text+0x8d4): undefined reference to `New_Buffer' ../../lib/libmrt.a(user.o): In function `uii_yes_no': user.c:(.text+0xd8c): undefined reference to `buffer_adjust' ../../lib/libmrt.a(user.o): In function `uii_destroy_connection': user.c:(.text+0x1310): undefined reference to `Delete_Buffer' user.c:(.text+0x1320): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user.o): In function `uii_add_bulk_output': user.c:(.text+0x1a28): undefined reference to `buffer_vprintf' user.c:(.text+0x1a38): undefined reference to `New_Buffer' ../../lib/libmrt.a(user.o): In function `uii_send_bulk_data': user.c:(.text+0x21a4): undefined reference to `buffer_adjust' user.c:(.text+0x2258): undefined reference to `buffer_adjust' user.c:(.text+0x22b8): undefined reference to `buffer_adjust' user.c:(.text+0x23f4): undefined reference to `buffer_adjust' ../../lib/libmrt.a(user.o): In function `uii_proccess_command': user.c:(.text+0x3fb8): undefined reference to `New_Buffer' user.c:(.text+0x3fc8): undefined reference to `buffer_puts' user.c:(.text+0x3fec): undefined reference to `buffer_puts' user.c:(.text+0x3ff8): undefined reference to `buffer_puts' user.c:(.text+0x4074): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user.o): In function `uii_command_tab_complete': user.c:(.text+0x4ed8): undefined reference to `buffer_adjust' user.c:(.text+0x4ef8): undefined reference to `buffer_printf' ../../lib/libmrt.a(user.o): In function `uii_read_command.part.1': user.c:(.text+0x5344): undefined reference to `buffer_insert' user.c:(.text+0x55ac): undefined reference to `buffer_adjust' user.c:(.text+0x55b8): undefined reference to `buffer_puts' user.c:(.text+0x5728): undefined reference to `buffer_adjust' user.c:(.text+0x57e4): undefined reference to `buffer_adjust' user.c:(.text+0x5800): undefined reference to `buffer_delete' user.c:(.text+0x585c): undefined reference to `buffer_delete' user.c:(.text+0x59d4): undefined reference to `buffer_adjust' user.c:(.text+0x5a40): undefined reference to `buffer_peek' user.c:(.text+0x5dd8): undefined reference to `buffer_peek' user.c:(.text+0x6364): undefined reference to `buffer_adjust' user.c:(.text+0x63d4): undefined reference to `buffer_adjust' user.c:(.text+0x63f8): undefined reference to `buffer_adjust' user.c:(.text+0x6444): undefined reference to `buffer_adjust' ../../lib/libmrt.a(trace.o): In function `trace': trace.c:(.text+0x38c): undefined reference to `buffer_adjust' trace.c:(.text+0x3e8): undefined reference to `buffer_printf' trace.c:(.text+0x440): undefined reference to `buffer_printf' trace.c:(.text+0x450): undefined reference to `buffer_vprintf' trace.c:(.text+0x748): undefined reference to `New_Buffer' trace.c:(.text+0x780): undefined reference to `buffer_printf' trace.c:(.text+0x794): undefined reference to `buffer_printf' trace.c:(.text+0x7a8): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `Destroy_Trace': trace.c:(.text+0xe38): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `uii_send_buffer': user_util.c:(.text+0xfd0): undefined reference to `New_Buffer' user_util.c:(.text+0xfe0): undefined reference to `buffer_puts' ../../lib/libmrt.a(user_util.o): In function `uii_send_buffer_del': user_util.c:(.text+0x1274): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `uii_send_data': user_util.c:(.text+0x12ac): undefined reference to `New_Buffer' user_util.c:(.text+0x12c0): undefined reference to `buffer_vprintf' user_util.c:(.text+0x12d8): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `user_vnotice': user_util.c:(.text+0x1370): undefined reference to `New_Buffer' user_util.c:(.text+0x1380): undefined reference to `buffer_vprintf' user_util.c:(.text+0x1484): undefined reference to `Delete_Buffer' *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/programs/bgpsim cd mrtd; /usr/bin/make gcc -O2 -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:0, from ../../include/trace.h:14, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrtd.c:14: ../../include/pthread_fake.h:40:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from mrtd.c:14: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ mrtd.c:119:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ mrtd.c: In function 'main': mrtd.c:139:12: warning: unused variable 'pp' [-Wunused-variable] prefix_t *pp; ^ gcc -Wl,-R/usr/pkg/lib mrtd.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librip.a ../../lib/libpim.a ../../lib/librib.a ../../lib/libmrt.a -o mrtd -lresolv mrtd.o: In function `main': mrtd.c:(.text.startup+0x3ac): undefined reference to `init_interfaces' mrtd.c:(.text.startup+0x3cc): undefined reference to `igmp_init' mrtd.c:(.text.startup+0x3dc): undefined reference to `igmp_init' mrtd.c:(.text.startup+0x460): undefined reference to `kernel_init' mrtd.c:(.text.startup+0x490): undefined reference to `add_interfaces_to_rib' mrtd.c:(.text.startup+0x508): undefined reference to `kernel_update_route' mrtd.c:(.text.startup+0x50c): undefined reference to `kernel_update_route' mrtd.c:(.text.startup+0x524): undefined reference to `kernel_read_rt_table' ../../lib/libcfg.a(config_file.o): In function `config_add_output': config_file.c:(.text+0x60): undefined reference to `buffer_vprintf' config_file.c:(.text+0x6c): undefined reference to `New_Buffer' ../../lib/libcfg.a(config_file.o): In function `show_config': config_file.c:(.text+0x6e8): undefined reference to `buffer_adjust' ../../lib/libcfg.a(config_file.o): In function `config_write': config_file.c:(.text+0x1600): undefined reference to `buffer_adjust' ../../lib/libcfg.a(config_file.o): In function `config_from_file2': config_file.c:(.text+0x2168): undefined reference to `New_Buffer_Stream' config_file.c:(.text+0x2198): undefined reference to `buffer_gets' config_file.c:(.text+0x21b8): undefined reference to `Delete_Buffer' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x2b4): undefined reference to `find_interface' commconf.c:(.text+0x2d0): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0x5b0): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x818): undefined reference to `find_interface_byname' commconf.c:(.text+0xc7c): undefined reference to `find_interface' commconf.c:(.text+0xca8): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xfe4): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x1120): undefined reference to `ip_hash_fn' commconf.c:(.text+0x1128): undefined reference to `ip_hash_fn' commconf.c:(.text+0x1154): undefined reference to `ip_lookup_fn' commconf.c:(.text+0x115c): undefined reference to `ip_lookup_fn' commconf.c:(.text+0x1360): undefined reference to `show_interfaces' commconf.c:(.text+0x1374): undefined reference to `show_interfaces' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x26cc): undefined reference to `find_interface_byname' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_update_source': bgpconf.c:(.text+0x66b8): undefined reference to `find_interface_local' bgpconf.c:(.text+0x6738): undefined reference to `find_interface_byname' ../../lib/libcfg.a(ripconf.o): In function `config_distribute_list': ripconf.c:(.text+0xac): undefined reference to `find_interface_byname' ../../lib/libcfg.a(multiconf.o): In function `config_interface_tunnel': multiconf.c:(.text+0x26c): undefined reference to `new_interface' ../../lib/libcfg.a(multiconf.o): In function `config_multicast_init': multiconf.c:(.text+0x4f0): undefined reference to `IGMP' multiconf.c:(.text+0x4f4): undefined reference to `IGMP' multiconf.c:(.text+0x564): undefined reference to `IGMPv6' multiconf.c:(.text+0x56c): undefined reference to `IGMPv6' multiconf.c:(.text+0x668): undefined reference to `igmp_show_group' multiconf.c:(.text+0x678): undefined reference to `igmp_show_group' multiconf.c:(.text+0x6f0): undefined reference to `igmp6_show_group' multiconf.c:(.text+0x700): undefined reference to `igmp6_show_group' ../../lib/libcfg.a(dvmrpconf.o): In function `config_dvmrp_distribute_list': dvmrpconf.c:(.text+0x5c): undefined reference to `find_interface_byname' ../../lib/libbgp.a(bgp_util.o): In function `bgp_make_tail.isra.2': bgp_util.c:(.text+0xb28): undefined reference to `buffer_putc' bgp_util.c:(.text+0xb34): undefined reference to `buffer_putc' bgp_util.c:(.text+0xb54): undefined reference to `buffer_printf' bgp_util.c:(.text+0xb70): undefined reference to `buffer_putc' ../../lib/libbgp.a(bgp_util.o): In function `bgp_put_a_line': bgp_util.c:(.text+0xb9c): undefined reference to `New_Buffer' bgp_util.c:(.text+0xc6c): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_util.o): In function `bgp_dump_rtin': bgp_util.c:(.text+0xdf4): undefined reference to `New_Buffer' bgp_util.c:(.text+0xe68): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x1a10): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1a28): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x1a54): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1bac): undefined reference to `find_interface_local' bgp_util.c:(.text+0x1be4): undefined reference to `find_interface' bgp_util.c:(.text+0x1c00): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x1d20): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x26a0): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x4874): undefined reference to `get_socket_addr' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0x328): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x19a0): undefined reference to `ip_hash_fn' view.c:(.text+0x19a4): undefined reference to `ip_lookup_fn' view.c:(.text+0x19b4): undefined reference to `ip_hash_fn' view.c:(.text+0x19b8): undefined reference to `ip_lookup_fn' view.c:(.text+0x1a28): undefined reference to `find_interface' view.c:(.text+0x1a48): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x3a3c): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x5f6c): undefined reference to `find_interface' view.c:(.text+0x5f94): undefined reference to `find_interface' view.c:(.text+0x5fe0): undefined reference to `find_interface' ../../lib/libbgp.a(bgp_dump.o): In function `dump_view_bgp_routes': bgp_dump.c:(.text+0x778): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_attr_buffer': bgp_msg.c:(.text+0x13b8): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1438): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x145c): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x1480): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x14e4): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x151c): more undefined references to `buffer_printf' follow ../../lib/libbgp.a(bgp_msg.o): In function `bgp_uii_attr': bgp_msg.c:(.text+0x16f0): undefined reference to `New_Buffer' ../../lib/librip.a(rip_proto.o): In function `rip_show_routing_table': rip_proto.c:(.text+0x2dec): undefined reference to `find_interface_byname' ../../lib/librip.a(rip_proto.o): In function `rip_interface_recheck': rip_proto.c:(.text+0x332c): undefined reference to `find_network' rip_proto.c:(.text+0x3410): undefined reference to `find_interface_byname_all' ../../lib/librip.a(rip_proto.o): In function `rip_init': rip_proto.c:(.text+0x3ddc): undefined reference to `ip_hash_fn' rip_proto.c:(.text+0x3df4): undefined reference to `ip_hash_fn' rip_proto.c:(.text+0x3e04): undefined reference to `ip_lookup_fn' rip_proto.c:(.text+0x3e34): undefined reference to `ip_lookup_fn' ../../lib/librip.a(rip2.o): In function `rip2_sendmsgto.isra.0': rip2.c:(.text+0x108): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_send_update': rip2.c:(.text+0x21c): undefined reference to `len2mask' ../../lib/librip.a(rip2.o): In function `rip2_process_packet_response': rip2.c:(.text+0x65c): undefined reference to `mask2len' ../../lib/librip.a(rip2.o): In function `rip2_process_packet_request': rip2.c:(.text+0x890): undefined reference to `mask2len' ../../lib/librip.a(rip2.o): In function `rip2_receive_update': rip2.c:(.text+0x9fc): undefined reference to `recvmsgfrom' rip2.c:(.text+0xd80): undefined reference to `find_interface_local' rip2.c:(.text+0xe50): undefined reference to `find_interface_local' ../../lib/librip.a(rip2.o): In function `rip2_init_listen': rip2.c:(.text+0xff8): undefined reference to `socket_open' rip2.c:(.text+0x100c): undefined reference to `socket_reuse' rip2.c:(.text+0x101c): undefined reference to `socket_broadcast' rip2.c:(.text+0x1028): undefined reference to `ip_multicast_loop' rip2.c:(.text+0x1034): undefined reference to `ip_recvttl' rip2.c:(.text+0x1040): undefined reference to `ip_pktinfo' ../../lib/librip.a(rip2.o): In function `rip2_interface': rip2.c:(.text+0x1440): undefined reference to `join_leave_group' ../../lib/librip.a(ripng.o): In function `ripng_sendmsgto.isra.0': ripng.c:(.text+0x10c): undefined reference to `send_packet' ../../lib/librip.a(ripng.o): In function `ripng_receive_update': ripng.c:(.text+0xb50): undefined reference to `recvmsgfrom' ripng.c:(.text+0xdcc): undefined reference to `find_interface_local' ripng.c:(.text+0xe9c): undefined reference to `find_interface_local' ../../lib/librip.a(ripng.o): In function `ripng_init_listen': ripng.c:(.text+0x13b8): undefined reference to `socket_open' ripng.c:(.text+0x13cc): undefined reference to `socket_reuse' ripng.c:(.text+0x13f0): undefined reference to `socket_rcvbuf' ripng.c:(.text+0x13fc): undefined reference to `ipv6_multicast_loop' ripng.c:(.text+0x1408): undefined reference to `ipv6_pktinfo' ripng.c:(.text+0x1414): undefined reference to `ipv6_recvhops' ripng.c:(.text+0x1420): undefined reference to `ipv6_multicast_hops' ripng.c:(.text+0x142c): undefined reference to `ipv6_unicast_hops' ../../lib/librip.a(ripng.o): In function `ripng_interface': ripng.c:(.text+0x17d4): undefined reference to `join_leave_group' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_send': dvmrp.c:(.text+0x278): undefined reference to `IGMP' dvmrp.c:(.text+0x27c): undefined reference to `IGMP' dvmrp.c:(.text+0x328): undefined reference to `igmp_send' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_update_call_fn': dvmrp.c:(.text+0x1104): undefined reference to `igmp_test_membership' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_activate_interface': dvmrp.c:(.text+0x12b4): undefined reference to `IGMP' dvmrp.c:(.text+0x12b8): undefined reference to `IGMP' dvmrp.c:(.text+0x13b4): undefined reference to `igmp_interface' dvmrp.c:(.text+0x14b8): undefined reference to `igmp_interface' dvmrp.c:(.text+0x14e8): undefined reference to `join_leave_group' ../../lib/libpim.a(dvmrp.o): In function `recv_dvmrp': dvmrp.c:(.text+0x1c38): undefined reference to `mask2len' dvmrp.c:(.text+0x1dd8): undefined reference to `IGMP' dvmrp.c:(.text+0x1de0): undefined reference to `IGMP' dvmrp.c:(.text+0x1e60): undefined reference to `igmp_is_querier' dvmrp.c:(.text+0x220c): undefined reference to `find_interface_local' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_advertise_route': dvmrp.c:(.text+0x4078): undefined reference to `len2mask' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_init': dvmrp.c:(.text+0x45fc): undefined reference to `IGMP' dvmrp.c:(.text+0x4600): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_start': dvmrp.c:(.text+0x4734): undefined reference to `IGMP' dvmrp.c:(.text+0x4738): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_interface_recheck': dvmrp.c:(.text+0x4974): undefined reference to `find_network' dvmrp.c:(.text+0x4a60): undefined reference to `find_interface_byname_all' dvmrp.c:(.text+0x4b50): undefined reference to `find_interface_byname_all' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_stop': dvmrp.c:(.text+0x5378): undefined reference to `IGMP' dvmrp.c:(.text+0x537c): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_show_routing_table': dvmrp.c:(.text+0x5494): undefined reference to `find_interface_byname' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_show_neighbors': dvmrp.c:(.text+0x572c): undefined reference to `find_interface_byname' ../../lib/libpim.a(pim.o): In function `pim_register_neighbor': pim.c:(.text+0xe4): undefined reference to `find_interface_local' pim.c:(.text+0x18c): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_find_parent.isra.2': pim.c:(.text+0x688): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_send': pim.c:(.text+0xac0): undefined reference to `inet_cksum' pim.c:(.text+0xb24): undefined reference to `send_packet' pim.c:(.text+0xd38): undefined reference to `inet6_cksum' pim.c:(.text+0xee8): undefined reference to `inet_cksum' pim.c:(.text+0xf00): undefined reference to `inet_cksum' ../../lib/libpim.a(pim.o): In function `pim_receive': pim.c:(.text+0x17a8): undefined reference to `find_interface_local' pim.c:(.text+0x18d0): undefined reference to `recvmsgfrom' pim.c:(.text+0x19d8): undefined reference to `recvmsgfrom' pim.c:(.text+0x1a6c): undefined reference to `inet_cksum' ../../lib/libpim.a(pim.o): In function `pim_update_call_fn': pim.c:(.text+0x449c): undefined reference to `igmp_test_membership' pim.c:(.text+0x46d4): undefined reference to `igmp_test_membership' ../../lib/libpim.a(pim.o): In function `pim_init': pim.c:(.text+0x49e0): undefined reference to `IGMPv6' pim.c:(.text+0x49e8): undefined reference to `IGMPv6' pim.c:(.text+0x4bc4): undefined reference to `IGMP' pim.c:(.text+0x4bcc): undefined reference to `IGMP' ../../lib/libpim.a(pim.o): In function `pim_activate_interface': pim.c:(.text+0x4ce8): undefined reference to `igmp_interface' pim.c:(.text+0x4df8): undefined reference to `join_leave_group' pim.c:(.text+0x4e84): undefined reference to `igmp_interface' pim.c:(.text+0x4f20): undefined reference to `join_leave_group' pim.c:(.text+0x520c): undefined reference to `igmp_interface' pim.c:(.text+0x53c0): undefined reference to `socket_open' pim.c:(.text+0x53d0): undefined reference to `socket_reuse' pim.c:(.text+0x53dc): undefined reference to `socket_rcvbuf' pim.c:(.text+0x53e8): undefined reference to `ipv6_multicast_loop' pim.c:(.text+0x53f4): undefined reference to `ipv6_pktinfo' pim.c:(.text+0x5400): undefined reference to `ipv6_recvhops' pim.c:(.text+0x540c): undefined reference to `ipv6_multicast_hops' pim.c:(.text+0x5454): undefined reference to `socket_open' pim.c:(.text+0x5464): undefined reference to `socket_reuse' pim.c:(.text+0x5470): undefined reference to `socket_rcvbuf' pim.c:(.text+0x547c): undefined reference to `ip_hdrincl' pim.c:(.text+0x5488): undefined reference to `ip_multicast_loop' pim.c:(.text+0x5494): undefined reference to `ip_pktinfo' pim.c:(.text+0x54a0): undefined reference to `ip_recvttl' ../../lib/libpim.a(cache.o): In function `cache_timer_expire': cache.c:(.text+0x184): undefined reference to `mc6_req_mfc' cache.c:(.text+0x1a0): undefined reference to `mc_req_mfc' cache.c:(.text+0x284): undefined reference to `mc_del_mfc' cache.c:(.text+0x298): undefined reference to `mc6_del_mfc' ../../lib/libpim.a(cache.o): In function `cache_update_mfc': cache.c:(.text+0x540): undefined reference to `mc6_add_mfc' cache.c:(.text+0x5d0): undefined reference to `mc_add_mfc' ../../lib/libpim.a(cache.o): In function `cache_control_from_kernel': cache.c:(.text+0xa3c): undefined reference to `mc6_del_mfc' cache.c:(.text+0xbb8): undefined reference to `mc_del_mfc' ../../lib/libpim.a(cache.o): In function `cache_init': cache.c:(.text+0x133c): undefined reference to `ip_pair_hash_fn' cache.c:(.text+0x1340): undefined reference to `ip_pair_lookup_fn' cache.c:(.text+0x134c): undefined reference to `ip_pair_hash_fn' cache.c:(.text+0x1350): undefined reference to `ip_pair_lookup_fn' cache.c:(.text+0x142c): undefined reference to `IGMPv6' cache.c:(.text+0x1434): undefined reference to `IGMPv6' cache.c:(.text+0x1460): undefined reference to `ip_pair_hash_fn' cache.c:(.text+0x1464): undefined reference to `ip_pair_lookup_fn' cache.c:(.text+0x146c): undefined reference to `ip_pair_hash_fn' cache.c:(.text+0x1470): undefined reference to `ip_pair_lookup_fn' cache.c:(.text+0x152c): undefined reference to `mc6_kernel_read_rt_table' cache.c:(.text+0x1534): undefined reference to `IGMP' cache.c:(.text+0x153c): undefined reference to `IGMP' ../../lib/libpim.a(cache.o): In function `show_cache_entries': cache.c:(.text+0x15e0): undefined reference to `find_interface_byname' cache.c:(.text+0x17cc): undefined reference to `find_interface_byindex' ../../lib/librib.a(rib.o): In function `route_toa_buffer': rib.c:(.text+0x124): undefined reference to `buffer_printf' rib.c:(.text+0x170): undefined reference to `buffer_printf' rib.c:(.text+0x18c): undefined reference to `buffer_printf' rib.c:(.text+0x1ac): undefined reference to `buffer_printf' rib.c:(.text+0x1c4): undefined reference to `buffer_printf' rib.c:(.text+0x1d0): undefined reference to `New_Buffer' ../../lib/librib.a(rib.o): In function `rib_replace_active': rib.c:(.text+0x8e4): undefined reference to `New_Buffer' rib.c:(.text+0x920): undefined reference to `Delete_Buffer' ../../lib/librib.a(rib.o): In function `rib_delete_route_node': rib.c:(.text+0xe08): undefined reference to `New_Buffer' rib.c:(.text+0xe44): undefined reference to `Delete_Buffer' ../../lib/librib.a(rib.o): In function `rib_add_route': rib.c:(.text+0x15f4): undefined reference to `New_Buffer' rib.c:(.text+0x1634): undefined reference to `Delete_Buffer' rib.c:(.text+0x184c): undefined reference to `New_Buffer' rib.c:(.text+0x1888): undefined reference to `Delete_Buffer' rib.c:(.text+0x18a0): undefined reference to `New_Buffer' rib.c:(.text+0x18dc): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(prefix.o): In function `print_prefix_list_buffer': prefix.c:(.text+0xaf0): undefined reference to `buffer_printf' ../../lib/libmrt.a(prefix.o): In function `print_pref_prefix_list_buffer': prefix.c:(.text+0xbcc): undefined reference to `buffer_printf' ../../lib/libmrt.a(user.o): In function `uii_accept_connection': user.c:(.text+0x8d4): undefined reference to `New_Buffer' ../../lib/libmrt.a(user.o): In function `uii_yes_no': user.c:(.text+0xd8c): undefined reference to `buffer_adjust' ../../lib/libmrt.a(user.o): In function `uii_destroy_connection': user.c:(.text+0x1310): undefined reference to `Delete_Buffer' user.c:(.text+0x1320): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user.o): In function `uii_add_bulk_output': user.c:(.text+0x1a28): undefined reference to `buffer_vprintf' user.c:(.text+0x1a38): undefined reference to `New_Buffer' ../../lib/libmrt.a(user.o): In function `uii_send_bulk_data': user.c:(.text+0x21a4): undefined reference to `buffer_adjust' user.c:(.text+0x2258): undefined reference to `buffer_adjust' user.c:(.text+0x22b8): undefined reference to `buffer_adjust' user.c:(.text+0x23f4): undefined reference to `buffer_adjust' ../../lib/libmrt.a(user.o): In function `uii_proccess_command': user.c:(.text+0x3fb8): undefined reference to `New_Buffer' user.c:(.text+0x3fc8): undefined reference to `buffer_puts' user.c:(.text+0x3fec): undefined reference to `buffer_puts' user.c:(.text+0x3ff8): undefined reference to `buffer_puts' user.c:(.text+0x4074): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user.o): In function `uii_command_tab_complete': user.c:(.text+0x4ed8): undefined reference to `buffer_adjust' user.c:(.text+0x4ef8): undefined reference to `buffer_printf' ../../lib/libmrt.a(user.o): In function `uii_read_command.part.1': user.c:(.text+0x5344): undefined reference to `buffer_insert' user.c:(.text+0x55ac): undefined reference to `buffer_adjust' user.c:(.text+0x55b8): undefined reference to `buffer_puts' user.c:(.text+0x5728): undefined reference to `buffer_adjust' user.c:(.text+0x57e4): undefined reference to `buffer_adjust' user.c:(.text+0x5800): undefined reference to `buffer_delete' user.c:(.text+0x585c): undefined reference to `buffer_delete' user.c:(.text+0x59d4): undefined reference to `buffer_adjust' user.c:(.text+0x5a40): undefined reference to `buffer_peek' user.c:(.text+0x5dd8): undefined reference to `buffer_peek' user.c:(.text+0x6364): undefined reference to `buffer_adjust' user.c:(.text+0x63d4): undefined reference to `buffer_adjust' user.c:(.text+0x63f8): undefined reference to `buffer_adjust' user.c:(.text+0x6444): undefined reference to `buffer_adjust' ../../lib/libmrt.a(trace.o): In function `trace': trace.c:(.text+0x38c): undefined reference to `buffer_adjust' trace.c:(.text+0x3e8): undefined reference to `buffer_printf' trace.c:(.text+0x440): undefined reference to `buffer_printf' trace.c:(.text+0x450): undefined reference to `buffer_vprintf' trace.c:(.text+0x748): undefined reference to `New_Buffer' trace.c:(.text+0x780): undefined reference to `buffer_printf' trace.c:(.text+0x794): undefined reference to `buffer_printf' trace.c:(.text+0x7a8): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `Destroy_Trace': trace.c:(.text+0xe38): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `uii_send_buffer': user_util.c:(.text+0xfd0): undefined reference to `New_Buffer' user_util.c:(.text+0xfe0): undefined reference to `buffer_puts' ../../lib/libmrt.a(user_util.o): In function `uii_send_buffer_del': user_util.c:(.text+0x1274): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `uii_send_data': user_util.c:(.text+0x12ac): undefined reference to `New_Buffer' user_util.c:(.text+0x12c0): undefined reference to `buffer_vprintf' user_util.c:(.text+0x12d8): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `user_vnotice': user_util.c:(.text+0x1370): undefined reference to `New_Buffer' user_util.c:(.text+0x1380): undefined reference to `buffer_vprintf' user_util.c:(.text+0x1484): undefined reference to `Delete_Buffer' *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/programs/mrtd cd ricd; /usr/bin/make gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from ricd.c:12: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.h:9:0, from ricd.c:12: sspec.h:9:0: warning: "uint8_t" redefined #define uint8_t u_int8_t ^ In file included from ricd.c:5:0: /usr/include/sys/types.h:60:0: note: this is the location of the previous definition #define uint8_t __uint8_t ^ In file included from ricd.h:9:0, from ricd.c:12: sspec.h:10:0: warning: "uint16_t" redefined #define uint16_t u_int16_t ^ In file included from ricd.c:5:0: /usr/include/sys/types.h:70:0: note: this is the location of the previous definition #define uint16_t __uint16_t ^ In file included from ricd.h:9:0, from ricd.c:12: sspec.h:11:0: warning: "uint32_t" redefined #define uint32_t u_int32_t ^ In file included from ricd.c:5:0: /usr/include/sys/types.h:80:0: note: this is the location of the previous definition #define uint32_t __uint32_t ^ In file included from ricd.c:12:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif _RICD_H_ ^ ricd.c:159:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ ricd.c: In function 'main': ricd.c:172:9: warning: variable 'rib_install_flag' set but not used [-Wunused-but-set-variable] int rib_install_flag = 1; ^ ricd.c:171:9: warning: variable 'kernel_install_flag6' set but not used [-Wunused-but-set-variable] int kernel_install_flag6 = 1; ^ ricd.c:170:9: warning: variable 'kernel_install_flag4' set but not used [-Wunused-but-set-variable] int kernel_install_flag4 = 1; ^ ricd.c:169:9: warning: variable 'kernel_read_flag' set but not used [-Wunused-but-set-variable] int kernel_read_flag = 1; ^ ricd.c:167:11: warning: variable 'rib_file' set but not used [-Wunused-but-set-variable] char *rib_file = NULL; ^ gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from hqlip.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.h:9:0, from hqlip.c:5: sspec.h:9:0: warning: "uint8_t" redefined #define uint8_t u_int8_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from hqlip.c:5: /usr/include/sys/types.h:60:0: note: this is the location of the previous definition #define uint8_t __uint8_t ^ In file included from ricd.h:9:0, from hqlip.c:5: sspec.h:10:0: warning: "uint16_t" redefined #define uint16_t u_int16_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from hqlip.c:5: /usr/include/sys/types.h:70:0: note: this is the location of the previous definition #define uint16_t __uint16_t ^ In file included from ricd.h:9:0, from hqlip.c:5: sspec.h:11:0: warning: "uint32_t" redefined #define uint32_t u_int32_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from hqlip.c:5: /usr/include/sys/types.h:80:0: note: this is the location of the previous definition #define uint32_t __uint32_t ^ In file included from hqlip.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif _RICD_H_ ^ hqlip.c: In function 'hqlip_inject_spath_link_qos': hqlip.c:523:12: warning: variable 'flags_saved' set but not used [-Wunused-but-set-variable] u_long flags_saved = 0; ^ hqlip.c: In function 'hqlip_calc_ilink': hqlip.c:651:15: warning: unused variable 'req_qos' [-Wunused-variable] req_qos_t req_qos; ^ hqlip.c: In function 'spath_calc_elink': hqlip.c:725:15: warning: unused variable 'req_qos' [-Wunused-variable] req_qos_t req_qos; ^ hqlip.c: In function 'hqlip_send_hello': hqlip.c:912:39: warning: pointer targets in passing argument 2 of 'send_packet' differ in signedness [-Wpointer-sign] send_packet (vif->udp_sockfd, buffer, cp - buffer, /*MSG_MULTI_LOOP*/0, ^ In file included from ../../include/rib.h:13:0, from ../../include/bgp.h:15, from ../../include/aspath.h:182, from ../../include/filter.h:8, from ../../include/mrt.h:571, from ricd.h:8, from hqlip.c:5: ../../include/interface.h:189:5: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' int send_packet (int sockfd, u_char *msg, int len, u_long flags, ^ In file included from ricd.h:8:0, from hqlip.c:5: hqlip.c: In function 'hqlip_put_area': ../../include/mrt.h:598:31: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] #define prefix_tochar(prefix) ((char *)&(prefix)->add.sin) ^ hqlip.c:1074:20: note: in expansion of macro 'prefix_tochar' u_char *addr = prefix_tochar (area->id); ^ hqlip.c: In function 'hqlip_put_addr': ../../include/mrt.h:598:31: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] #define prefix_tochar(prefix) ((char *)&(prefix)->add.sin) ^ hqlip.c:1144:20: note: in expansion of macro 'prefix_tochar' u_char *addr = prefix_tochar (prefix); ^ hqlip.c: In function 'hqlip_prepare_link_qos': hqlip.c:1199:49: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area1, cp); ^ hqlip.c:1070:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1199:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area1, cp); ^ hqlip.c:1200:49: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area2, cp); ^ hqlip.c:1070:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1200:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area2, cp); ^ hqlip.c: In function 'hqlip_send_link_qos': hqlip.c:1279:48: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] cp - msgbuf, spath_link_qos->tstamp, msgbuf); ^ hqlip.c:985:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_send_message (hqlip_t *hqlip, hqlip_neighbor_t *neighbor, ^ hqlip.c: In function 'hqlip_send_area_center': hqlip.c:1468:55: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_center->area, cp); ^ hqlip.c:1070:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1468:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_center->area, cp); ^ hqlip.c:1486:51: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] cp - msgbuf, spath_area_center->tstamp, msgbuf); ^ hqlip.c:985:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_send_message (hqlip_t *hqlip, hqlip_neighbor_t *neighbor, ^ hqlip.c: In function 'hqlip_send_area_addr': hqlip.c:1979:53: warning: pointer targets in passing argument 2 of 'hqlip_put_area' differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_addr->area, cp); ^ hqlip.c:1070:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1979:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_area (spath_area_addr->area, cp); ^ hqlip.c:1982:46: warning: pointer targets in passing argument 2 of 'hqlip_put_addr' differ in signedness [-Wpointer-sign] cp = hqlip_put_addr (prefix, cp); ^ hqlip.c:1139:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_put_addr (prefix_t *prefix, u_char *cp) ^ hqlip.c:1982:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] cp = hqlip_put_addr (prefix, cp); ^ hqlip.c:1997:49: warning: pointer targets in passing argument 8 of 'hqlip_send_message' differ in signedness [-Wpointer-sign] cp - msgbuf, spath_area_addr->tstamp, msgbuf); ^ hqlip.c:985:1: note: expected 'u_char * {aka unsigned char *}' but argument is of type 'char *' hqlip_send_message (hqlip_t *hqlip, hqlip_neighbor_t *neighbor, ^ hqlip.c: In function 'hqlip_connect_ready': hqlip.c:2296:4: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from ricd.h:8, from hqlip.c:5: /usr/include/sys/socket.h:653:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' 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 differ in signedness [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ hqlip.c: In function 'hqlip_vif_tcp_init': hqlip.c:2934:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ hqlip.c: In function 'hqlip_spath_compare': hqlip.c:3625:35: warning: variable 'b_len' set but not used [-Wunused-but-set-variable] int b_flags, b_type, b_level, b_len, b_tstamp; ^ hqlip.c:3625:26: warning: variable 'b_level' set but not used [-Wunused-but-set-variable] int b_flags, b_type, b_level, b_len, b_tstamp; ^ hqlip.c:3624:35: warning: variable 'a_len' set but not used [-Wunused-but-set-variable] int a_flags, a_type, a_level, a_len, a_tstamp; ^ hqlip.c:3624:26: warning: variable 'a_level' set but not used [-Wunused-but-set-variable] int a_flags, a_type, a_level, a_len, a_tstamp; ^ hqlip.c: At top level: hqlip.c:52:1: warning: 'my_area_is_center' defined but not used [-Wunused-function] my_area_is_center (my_area_t *my_area) ^ hqlip.c:448:1: warning: 'list_link_qos' defined but not used [-Wunused-function] list_link_qos (hqlip_t *hqlip, my_area_t *my_area) ^ hqlip.c:790:1: warning: 'hqlip_update_elink' defined but not used [-Wunused-function] hqlip_update_elink (hqlip_t *hqlip, my_area_t *my_area, hqlip_interface_t *vif) ^ In file included from ../../include/trace.h:11:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from hqlip.c:5: hqlip.c: In function 'hqlip_recv_area_addr.isra.25': ../../include/linked_list.h:199:84: warning: 'prefix' may be used uninitialized in this function [-Wmaybe-uninitialized] #define LL_Add(ll, data) ((ll->attr & LL_AutoSort) ? LL_InsertSorted(ll, data) : LL_Append(ll, data)) ^ hqlip.c:2035:16: note: 'prefix' was declared here prefix_t *prefix; ^ gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from ricdconf.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.h:9:0, from ricdconf.c:5: sspec.h:9:0: warning: "uint8_t" redefined #define uint8_t u_int8_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from ricdconf.c:5: /usr/include/sys/types.h:60:0: note: this is the location of the previous definition #define uint8_t __uint8_t ^ In file included from ricd.h:9:0, from ricdconf.c:5: sspec.h:10:0: warning: "uint16_t" redefined #define uint16_t u_int16_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from ricdconf.c:5: /usr/include/sys/types.h:70:0: note: this is the location of the previous definition #define uint16_t __uint16_t ^ In file included from ricd.h:9:0, from ricdconf.c:5: sspec.h:11:0: warning: "uint32_t" redefined #define uint32_t u_int32_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from ricdconf.c:5: /usr/include/sys/types.h:80:0: note: this is the location of the previous definition #define uint32_t __uint32_t ^ In file included from ricdconf.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif _RICD_H_ ^ gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from area.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.h:9:0, from area.c:5: sspec.h:9:0: warning: "uint8_t" redefined #define uint8_t u_int8_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from area.c:5: /usr/include/sys/types.h:60:0: note: this is the location of the previous definition #define uint8_t __uint8_t ^ In file included from ricd.h:9:0, from area.c:5: sspec.h:10:0: warning: "uint16_t" redefined #define uint16_t u_int16_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from area.c:5: /usr/include/sys/types.h:70:0: note: this is the location of the previous definition #define uint16_t __uint16_t ^ In file included from ricd.h:9:0, from area.c:5: sspec.h:11:0: warning: "uint32_t" redefined #define uint32_t u_int32_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from area.c:5: /usr/include/sys/types.h:80:0: note: this is the location of the previous definition #define uint32_t __uint32_t ^ In file included from area.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif _RICD_H_ ^ area.c: In function 'add_area': area.c:51:10: warning: unused variable 'sbuf' [-Wunused-variable] char sbuf[128]; ^ gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from srsvp.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.h:9:0, from srsvp.c:5: sspec.h:9:0: warning: "uint8_t" redefined #define uint8_t u_int8_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from srsvp.c:5: /usr/include/sys/types.h:60:0: note: this is the location of the previous definition #define uint8_t __uint8_t ^ In file included from ricd.h:9:0, from srsvp.c:5: sspec.h:10:0: warning: "uint16_t" redefined #define uint16_t u_int16_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from srsvp.c:5: /usr/include/sys/types.h:70:0: note: this is the location of the previous definition #define uint16_t __uint16_t ^ In file included from ricd.h:9:0, from srsvp.c:5: sspec.h:11:0: warning: "uint32_t" redefined #define uint32_t u_int32_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from srsvp.c:5: /usr/include/sys/types.h:80:0: note: this is the location of the previous definition #define uint32_t __uint32_t ^ In file included from srsvp.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif _RICD_H_ ^ srsvp.c: In function 'srsvp_connect_ready': srsvp.c:399:4: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] &namelen) < 0) { ^ In file included from ../../include/mrt.h:39:0, from ricd.h:8, from srsvp.c:5: /usr/include/sys/socket.h:653:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' 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 differ in signedness [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ srsvp.c: In function 'srsvp_process_pdu': srsvp.c:1959:28: warning: variable 'sessionf' set but not used [-Wunused-but-set-variable] int version, hdrflags, sessionf, senderf, type, ttl, srbit, hdrlen; ^ gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from ricd.h:8, from qif.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.h:9:0, from qif.c:5: sspec.h:9:0: warning: "uint8_t" redefined #define uint8_t u_int8_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from qif.c:5: /usr/include/sys/types.h:60:0: note: this is the location of the previous definition #define uint8_t __uint8_t ^ In file included from ricd.h:9:0, from qif.c:5: sspec.h:10:0: warning: "uint16_t" redefined #define uint16_t u_int16_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from qif.c:5: /usr/include/sys/types.h:70:0: note: this is the location of the previous definition #define uint16_t __uint16_t ^ In file included from ricd.h:9:0, from qif.c:5: sspec.h:11:0: warning: "uint32_t" redefined #define uint32_t u_int32_t ^ In file included from /usr/include/stdlib.h:41:0, from ../../include/mrt.h:14, from ricd.h:8, from qif.c:5: /usr/include/sys/types.h:80:0: note: this is the location of the previous definition #define uint32_t __uint32_t ^ In file included from qif.c:5:0: ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif _RICD_H_ ^ gcc -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 hqlip.o: In function `hqlip_vif_udp_init': hqlip.c:(.text+0x5ec): undefined reference to `socket_open' hqlip.c:(.text+0x5fc): undefined reference to `socket_reuse' hqlip.c:(.text+0x610): undefined reference to `join_leave_group' hqlip.c:(.text+0x624): undefined reference to `socket_bind_port' hqlip.c:(.text+0x63c): undefined reference to `ip_multicast_loop' hqlip.c:(.text+0x648): undefined reference to `ip_multicast_hops' hqlip.c:(.text+0x654): undefined reference to `ip_pktinfo' hqlip.c:(.text+0x660): undefined reference to `ip_recvttl' hqlip.c:(.text+0x6bc): undefined reference to `socket_open' hqlip.c:(.text+0x6d8): undefined reference to `socket_reuse' hqlip.c:(.text+0x6ec): undefined reference to `socket_bind_port' hqlip.c:(.text+0x704): undefined reference to `ip_pktinfo' hqlip.c:(.text+0x710): undefined reference to `ip_recvttl' hqlip.c:(.text+0x760): undefined reference to `ipv6_multicast_loop' hqlip.c:(.text+0x76c): undefined reference to `ipv6_multicast_hops' hqlip.c:(.text+0x778): undefined reference to `ipv6_pktinfo' hqlip.c:(.text+0x784): undefined reference to `ipv6_recvhops' hqlip.c:(.text+0x78c): undefined reference to `ipv6_pktinfo' hqlip.c:(.text+0x798): undefined reference to `ipv6_recvhops' hqlip.o: In function `hqlip_vif_tcp_init': hqlip.c:(.text+0x9e4): undefined reference to `socket_open' hqlip.c:(.text+0x9f4): undefined reference to `socket_reuse' hqlip.c:(.text+0xa08): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_send_hello.part.27': hqlip.c:(.text+0x64c8): undefined reference to `send_packet' hqlip.o: In function `hqlip_register_neighbor': hqlip.c:(.text+0x75a4): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_recv_hello': hqlip.c:(.text+0x796c): undefined reference to `recvmsgfrom' hqlip.o: In function `hqlip_open_accept': hqlip.c:(.text+0x7d68): undefined reference to `get_socket_addr' hqlip.o: In function `hqlip_activate_interface': hqlip.c:(.text+0x96ac): undefined reference to `join_leave_group' hqlip.o: In function `hqlip_show_neighbors': hqlip.c:(.text+0x9aec): undefined reference to `find_interface_byname' ricdconf.o: In function `config_ric_network_if_qos_prefix': ricdconf.c:(.text+0x4810): undefined reference to `find_interface_byname' area.o: In function `area_hash_fn': area.c:(.text+0x18): undefined reference to `ip_hash_fn' srsvp.o: In function `srsvp_flow_hash_fn': srsvp.c:(.text+0x41c): undefined reference to `ip_hash_fn' srsvp.c:(.text+0x434): undefined reference to `ip_hash_fn' srsvp.o: In function `srsvp_vif_tcp_init': srsvp.c:(.text+0x4a0): undefined reference to `socket_open' srsvp.c:(.text+0x4b0): undefined reference to `socket_reuse' srsvp.c:(.text+0x4c4): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_tcp_connect': srsvp.c:(.text+0xbac): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_open_accept': srsvp.c:(.text+0x13a0): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_keep_alive': srsvp.c:(.text+0x1838): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_show_neighbors': srsvp.c:(.text+0x55f8): undefined reference to `find_interface_byname' ../../lib/libcfg.a(config_file.o): In function `config_add_output': config_file.c:(.text+0x60): undefined reference to `buffer_vprintf' config_file.c:(.text+0x6c): undefined reference to `New_Buffer' ../../lib/libcfg.a(config_file.o): In function `show_config': config_file.c:(.text+0x6e8): undefined reference to `buffer_adjust' ../../lib/libcfg.a(config_file.o): In function `config_write': config_file.c:(.text+0x1600): undefined reference to `buffer_adjust' ../../lib/libcfg.a(config_file.o): In function `config_from_file2': config_file.c:(.text+0x2168): undefined reference to `New_Buffer_Stream' config_file.c:(.text+0x2198): undefined reference to `buffer_gets' config_file.c:(.text+0x21b8): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(prefix.o): In function `print_prefix_list_buffer': prefix.c:(.text+0xaf0): undefined reference to `buffer_printf' ../../lib/libmrt.a(prefix.o): In function `print_pref_prefix_list_buffer': prefix.c:(.text+0xbcc): undefined reference to `buffer_printf' ../../lib/libmrt.a(user.o): In function `uii_accept_connection': user.c:(.text+0x8d4): undefined reference to `New_Buffer' ../../lib/libmrt.a(user.o): In function `uii_yes_no': user.c:(.text+0xd8c): undefined reference to `buffer_adjust' ../../lib/libmrt.a(user.o): In function `uii_destroy_connection': user.c:(.text+0x1310): undefined reference to `Delete_Buffer' user.c:(.text+0x1320): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user.o): In function `uii_add_bulk_output': user.c:(.text+0x1a28): undefined reference to `buffer_vprintf' user.c:(.text+0x1a38): undefined reference to `New_Buffer' ../../lib/libmrt.a(user.o): In function `uii_send_bulk_data': user.c:(.text+0x21a4): undefined reference to `buffer_adjust' user.c:(.text+0x2258): undefined reference to `buffer_adjust' user.c:(.text+0x22b8): undefined reference to `buffer_adjust' user.c:(.text+0x23f4): undefined reference to `buffer_adjust' ../../lib/libmrt.a(user.o): In function `uii_proccess_command': user.c:(.text+0x3fb8): undefined reference to `New_Buffer' user.c:(.text+0x3fc8): undefined reference to `buffer_puts' user.c:(.text+0x3fec): undefined reference to `buffer_puts' user.c:(.text+0x3ff8): undefined reference to `buffer_puts' user.c:(.text+0x4074): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user.o): In function `uii_command_tab_complete': user.c:(.text+0x4ed8): undefined reference to `buffer_adjust' user.c:(.text+0x4ef8): undefined reference to `buffer_printf' ../../lib/libmrt.a(user.o): In function `uii_read_command.part.1': user.c:(.text+0x5344): undefined reference to `buffer_insert' user.c:(.text+0x55ac): undefined reference to `buffer_adjust' user.c:(.text+0x55b8): undefined reference to `buffer_puts' user.c:(.text+0x5728): undefined reference to `buffer_adjust' user.c:(.text+0x57e4): undefined reference to `buffer_adjust' user.c:(.text+0x5800): undefined reference to `buffer_delete' user.c:(.text+0x585c): undefined reference to `buffer_delete' user.c:(.text+0x59d4): undefined reference to `buffer_adjust' user.c:(.text+0x5a40): undefined reference to `buffer_peek' user.c:(.text+0x5dd8): undefined reference to `buffer_peek' user.c:(.text+0x6364): undefined reference to `buffer_adjust' user.c:(.text+0x63d4): undefined reference to `buffer_adjust' user.c:(.text+0x63f8): undefined reference to `buffer_adjust' user.c:(.text+0x6444): undefined reference to `buffer_adjust' ../../lib/libmrt.a(trace.o): In function `trace': trace.c:(.text+0x38c): undefined reference to `buffer_adjust' trace.c:(.text+0x3e8): undefined reference to `buffer_printf' trace.c:(.text+0x440): undefined reference to `buffer_printf' trace.c:(.text+0x450): undefined reference to `buffer_vprintf' trace.c:(.text+0x748): undefined reference to `New_Buffer' trace.c:(.text+0x780): undefined reference to `buffer_printf' trace.c:(.text+0x794): undefined reference to `buffer_printf' trace.c:(.text+0x7a8): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `Destroy_Trace': trace.c:(.text+0xe38): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `uii_send_buffer': user_util.c:(.text+0xfd0): undefined reference to `New_Buffer' user_util.c:(.text+0xfe0): undefined reference to `buffer_puts' ../../lib/libmrt.a(user_util.o): In function `uii_send_buffer_del': user_util.c:(.text+0x1274): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `uii_send_data': user_util.c:(.text+0x12ac): undefined reference to `New_Buffer' user_util.c:(.text+0x12c0): undefined reference to `buffer_vprintf' user_util.c:(.text+0x12d8): undefined reference to `Delete_Buffer' ../../lib/libmrt.a(user_util.o): In function `user_vnotice': user_util.c:(.text+0x1370): undefined reference to `New_Buffer' user_util.c:(.text+0x1380): undefined reference to `buffer_vprintf' user_util.c:(.text+0x1484): undefined reference to `Delete_Buffer' *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/programs/ricd cd route_atob; /usr/bin/make gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_atob.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ route_atob.c: In function 'read_ascii': route_atob.c:167:44: warning: variable 'optlen' set but not used [-Wunused-but-set-variable] int version = 0, as = 0, holdtime = 0, optlen = 0; ^ route_atob.c: At top level: route_atob.c:690:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ gcc -Wl,-R/usr/pkg/lib route_atob.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_atob -lresolv route_atob.o: In function `read_ascii': route_atob.c:(.text+0x340): undefined reference to `New_Buffer_Stream' route_atob.c:(.text+0x468): undefined reference to `buffer_gets' route_atob.c:(.text+0x944): undefined reference to `Delete_Buffer' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_attr_buffer': bgp_msg.c:(.text+0x13b8): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1438): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x145c): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x1480): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x14e4): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x151c): more undefined references to `buffer_printf' follow ../../lib/libbgp.a(bgp_msg.o): In function `bgp_uii_attr': bgp_msg.c:(.text+0x16f0): undefined reference to `New_Buffer' ../../lib/libmrt.a(prefix.o): In function `print_prefix_list_buffer': prefix.c:(.text+0xaf0): undefined reference to `buffer_printf' ../../lib/libmrt.a(prefix.o): In function `print_pref_prefix_list_buffer': prefix.c:(.text+0xbcc): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `trace': trace.c:(.text+0x38c): undefined reference to `buffer_adjust' trace.c:(.text+0x3e8): undefined reference to `buffer_printf' trace.c:(.text+0x440): undefined reference to `buffer_printf' trace.c:(.text+0x450): undefined reference to `buffer_vprintf' trace.c:(.text+0x748): undefined reference to `New_Buffer' trace.c:(.text+0x780): undefined reference to `buffer_printf' trace.c:(.text+0x794): undefined reference to `buffer_printf' trace.c:(.text+0x7a8): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `Destroy_Trace': trace.c:(.text+0xe38): undefined reference to `Delete_Buffer' *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/programs/route_atob cd route_btoa; /usr/bin/make gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from route_btoa.c:5: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ route_btoa.c:698:1: warning: return type of 'main' is not 'int' [-Wmain] main (int argc, char *argv[]) ^ gcc -Wl,-R/usr/pkg/lib route_btoa.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_btoa -lresolv route_btoa.o: In function `print_bgp_msg': route_btoa.c:(.text+0x160): undefined reference to `buffer_printf' route_btoa.c:(.text+0x17c): undefined reference to `buffer_printf' route_btoa.c:(.text+0x1d8): undefined reference to `buffer_printf' route_btoa.c:(.text+0x210): undefined reference to `buffer_printf' route_btoa.c:(.text+0x310): undefined reference to `buffer_printf' route_btoa.o:route_btoa.c:(.text+0x378): more undefined references to `buffer_printf' follow route_btoa.o: In function `main': route_btoa.c:(.text.startup+0x288): undefined reference to `New_Buffer_Stream' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_attr_buffer': bgp_msg.c:(.text+0x13b8): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o): In function `bgp_print_attr_buffer': bgp_msg.c:(.text+0x1438): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x145c): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x1480): undefined reference to `buffer_printf' bgp_msg.c:(.text+0x14e4): undefined reference to `buffer_printf' ../../lib/libbgp.a(bgp_msg.o):bgp_msg.c:(.text+0x151c): more undefined references to `buffer_printf' follow ../../lib/libbgp.a(bgp_msg.o): In function `bgp_uii_attr': bgp_msg.c:(.text+0x16f0): undefined reference to `New_Buffer' ../../lib/libmrt.a(prefix.o): In function `print_prefix_list_buffer': prefix.c:(.text+0xaf0): undefined reference to `buffer_printf' ../../lib/libmrt.a(prefix.o): In function `print_pref_prefix_list_buffer': prefix.c:(.text+0xbcc): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `trace': trace.c:(.text+0x38c): undefined reference to `buffer_adjust' trace.c:(.text+0x3e8): undefined reference to `buffer_printf' trace.c:(.text+0x440): undefined reference to `buffer_printf' trace.c:(.text+0x450): undefined reference to `buffer_vprintf' trace.c:(.text+0x748): undefined reference to `New_Buffer' trace.c:(.text+0x780): undefined reference to `buffer_printf' trace.c:(.text+0x794): undefined reference to `buffer_printf' trace.c:(.text+0x7a8): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `Destroy_Trace': trace.c:(.text+0xe38): undefined reference to `Delete_Buffer' *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/programs/route_btoa cd sbgp; /usr/bin/make gcc -O2 -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:0, 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:0: warning: "pthread_sigmask" redefined #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ In file included from ../../include/trace.h:9:0, from ../../include/assert.h:10, from ../../include/mrt.h:82, from simple_bgp.c:10: /usr/include/signal.h:80:0: note: this is the location of the previous definition #define pthread_sigmask __libc_thr_sigsetmask ^ gcc -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 ../../lib/libmrt.a(prefix.o): In function `print_prefix_list_buffer': prefix.c:(.text+0xaf0): undefined reference to `buffer_printf' ../../lib/libmrt.a(prefix.o): In function `print_pref_prefix_list_buffer': prefix.c:(.text+0xbcc): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `trace': trace.c:(.text+0x38c): undefined reference to `buffer_adjust' trace.c:(.text+0x3e8): undefined reference to `buffer_printf' trace.c:(.text+0x440): undefined reference to `buffer_printf' trace.c:(.text+0x450): undefined reference to `buffer_vprintf' trace.c:(.text+0x748): undefined reference to `New_Buffer' trace.c:(.text+0x780): undefined reference to `buffer_printf' trace.c:(.text+0x794): undefined reference to `buffer_printf' trace.c:(.text+0x7a8): undefined reference to `buffer_printf' ../../lib/libmrt.a(trace.o): In function `Destroy_Trace': trace.c:(.text+0xe38): undefined reference to `Delete_Buffer' *** Error code 1 Stop. make[3]: stopped in /scratch/work/net/mrt/work/mrt/src/programs/sbgp