=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for mrt-2.2.2a.20000811nb1 Making lib cd bgp_attr; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include aspath.c In file included from aspath.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ aspath.c:396:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ aspath.c:407:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ aspath.c:411:9: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isdigit (*cp)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ aspath.c:421:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isdigit (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ aspath.c:423:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ aspath.c:439:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ 7 warnings generated. a - aspath.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_attr.c In file included from bgp_attr.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_attr.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include as_regexp.c In file included from as_regexp.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ as_regexp.c:45:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*env->cp)) ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ as_regexp.c:62:10: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit (*env->cp)) { ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ as_regexp.c:73:17: warning: array subscript is of type 'char' [-Wchar-subscripts] env->cp[1] && isdigit (env->cp[1])) { ^~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 4 warnings generated. a - as_regexp.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include as_alist.c In file included from as_alist.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - as_alist.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_msg.c In file included from bgp_msg.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgp_msg.c:838:21: warning: array subscript is of type 'char' [-Wchar-subscripts] if (*cp == '\0' || isspace (*cp)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ bgp_msg.c:846:24: warning: array subscript is of type 'char' [-Wchar-subscripts] if (*cp != ':' && !isspace (*cp)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ bgp_msg.c:852:14: warning: array subscript is of type 'char' [-Wchar-subscripts] } while (isspace (*cp)); ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ 4 warnings generated. a - bgp_msg.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include community.c In file included from community.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ community.c:101:6: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit (*cp)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 2 warnings generated. a - community.o cd bgp_proto; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_util.c In file included from bgp_util.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgp_util.c:131:62: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername (peer->sockfd, (struct sockaddr *)&name, &namelen) < 0) { ^~~~~~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ bgp_util.c:361:3: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &namelen) < 0) { ^~~~~~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ bgp_util.c:778:58: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname (sockfd, (struct sockaddr *) &local, &len) < 0) { ^~~~ /usr/include/sys/socket.h:646:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ bgp_util.c:2275:8: warning: initializing 'char *' with an expression of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] char *data = buffer->data; ^ ~~~~~~~~~~~~ bgp_util.c:2316:6: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buffer->data); ^~~~~~~~~~~~ ../../include/rib.h:151:32: note: passing argument to parameter 'append' here interface_t *interface, char *append); ^ bgp_util.c:2305:63: warning: variable 'c2' is uninitialized when used here [-Wuninitialized] c2 = BIT_TEST (route->attr->options, BGP_PEER_SELF)? 'l': c2; ^~ bgp_util.c:2296:15: note: initialize the variable 'c2' to silence this warning int c1, c2; ^ = 0 bgp_util.c:2606:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] NULL, buffer->data); ^~~~~~~~~~~~ ../../include/rib.h:151:32: note: passing argument to parameter 'append' here interface_t *interface, char *append); ^ 8 warnings generated. a - bgp_util.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_sm.c In file included from bgp_sm.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_sm.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_pdu.c In file included from bgp_pdu.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_pdu.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include view.c In file included from view.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ view.c:3275:14: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (isdigit (*s)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 2 warnings generated. a - view.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_timer.c In file included from bgp_timer.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_timer.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_thread.c In file included from bgp_thread.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_thread.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_dump.c In file included from bgp_dump.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgp_dump.c:248:7: warning: unused variable 'plen' [-Wunused-variable] int plen = 4; ^ 2 warnings generated. a - bgp_dump.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgp_dump2.c In file included from bgp_dump2.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_dump2.o cd config; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include config_file.c In file included from config_file.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - config_file.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include commconf.c In file included from commconf.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - commconf.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include bgpconf.c In file included from bgpconf.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgpconf.c:1915:20: warning: array subscript is of type 'char' [-Wchar-subscripts] if (unit[0] && isdigit (unit[0])) { ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ bgpconf.c:1919:46: warning: array subscript is of type 'char' [-Wchar-subscripts] for (i = 0; i < sizeof (unit) && unit[i] && isdigit (unit[i]); i++); ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ bgpconf.c:1920:27: warning: array subscript is of type 'char' [-Wchar-subscripts] if (i < sizeof (unit) && isalpha (unit[i])) { ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ bgpconf.c:1939:25: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] sprintf (buff, "%ldh", t / 3600); ~~~ ^~~~~~~~ %lld bgpconf.c:1941:25: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] sprintf (buff, "%ldm", t / 60); ~~~ ^~~~~~ %lld bgpconf.c:1943:24: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat] sprintf (buff, "%ld", t); ~~~ ^ %lld bgpconf.c:637:1: warning: unused function 'config_router_bgp_copy_view' [-Wunused-function] config_router_bgp_copy_view (view_t *view0, view_t *view1) ^ 8 warnings generated. a - bgpconf.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rtmapconf.c In file included from rtmapconf.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - rtmapconf.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include load.c In file included from load.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - load.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include ripconf.c In file included from ripconf.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - ripconf.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include multiconf.c In file included from multiconf.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - multiconf.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include dvmrpconf.c In file included from dvmrpconf.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - dvmrpconf.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include pimconf.c In file included from pimconf.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - pimconf.o cd filter; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include filter.c In file included from filter.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - filter.o cd io; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include io.c In file included from io.c:12: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ io.c:271:22: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((tmp->length < 0) || (tmp->length > MAX_MSG_SIZE)) { ~~~~~~~~~~~ ^ ~ 2 warnings generated. a - io.o cd kernel; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include none.c In file included from none.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - none.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include common.c In file included from common.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ common.c:610:10: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit (name[len - 1])) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ common.c:625:7: warning: array subscript is of type 'char' [-Wchar-subscripts] isdigit (interface->name [len]))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 3 warnings generated. a - common.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include kernel_uii.c In file included from kernel_uii.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - kernel_uii.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include socket.c In file included from socket.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ socket.c:144:12: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &value, &len) < 0) { ^~~~ /usr/include/sys/socket.h:647:71: note: passing argument to parameter here int getsockopt(int, int, int, void *__restrict, socklen_t * __restrict); ^ socket.c:986:43: error: no member named 'ipi_spec_dst' in 'struct in_pktinfo' dstaddr.sin.sin_addr.s_addr = info->ipi_spec_dst.s_addr; ~~~~ ^ socket.c:1305:66: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] ret = getpeername (sockfd, (struct sockaddr *) &anyaddr, &len); ^~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ socket.c:1307:66: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] ret = getsockname (sockfd, (struct sockaddr *) &anyaddr, &len); ^~~~ /usr/include/sys/socket.h:646:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 4 warnings and 1 error generated. *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/lib/kernel cd mrt; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include util.c In file included from util.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ util.c:97:22: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit(*str)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ util.c:121:11: warning: array subscript is of type 'char' [-Wchar-subscripts] int c = toupper (*str); ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ util.c:158:19: warning: incompatible pointer types passing 'long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] tm = localtime(&t); ^~ /usr/include/time.h:96:36: note: passing argument to parameter here struct tm *localtime(const time_t *) __RENAME(__locatime50); ^ util.c:179:19: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*cp && isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ util.c:183:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (!isspace (*cp) && (*cp != '\0') && (*cp != '\n')) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ util.c:236:18: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] elapsed/(3600*24), (elapsed%(3600*24))/3600); ^~~~~~~~~~~~~~~~~ util.c:236:37: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] elapsed/(3600*24), (elapsed%(3600*24))/3600); ^~~~~~~~~~~~~~~~~~~~~~~~ util.c:239:18: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] elapsed/3600, (elapsed/60)%60, elapsed%60); ^~~~~~~~~~~~ util.c:239:32: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] elapsed/3600, (elapsed/60)%60, elapsed%60); ^~~~~~~~~~~~~~~ util.c:239:49: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] elapsed/3600, (elapsed/60)%60, elapsed%60); ^~~~~~~~~~ util.c:249:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isdigit (*nptr)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ util.c:254:16: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isdigit (*nptr)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 13 warnings generated. a - util.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include prefix.c In file included from prefix.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ prefix.c:241:9: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(name[0])) { /* Numerical address */ ^~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ prefix.c:307:20: warning: unused variable 'result' [-Wunused-variable] struct hostent result; ^ prefix.c:308:9: warning: unused variable 'h_errno_r' [-Wunused-variable] int h_errno_r; ^ prefix.c:309:10: warning: unused variable 'hostbuf' [-Wunused-variable] char hostbuf[1024]; ^ prefix.c:462:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (bitlen < 0 || bitlen > maxbitlen) ~~~~~~ ^ ~ 6 warnings generated. a - prefix.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include route_util.c In file included from route_util.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - route_util.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include gateway.c In file included from gateway.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - gateway.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include mrt.c In file included from mrt.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ mrt.c:580:30: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] int r = accept (d, addr, addrlen); ^~~~~~~ /usr/include/sys/socket.h:642:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 2 warnings generated. a - mrt.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include user.c In file included from user.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ user.c:801:27: warning: array subscript is of type 'char' [-Wchar-subscripts] while (cp >= data && isspace (*cp)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user.c:809:20: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*cp && isspace (*cp)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user.c:949:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while ((isspace (*uii->cp)) && *uii->cp) ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user.c:1006:36: warning: array subscript is of type 'char' [-Wchar-subscripts] while (bp >= uii->cp && *bp && isspace (*bp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user.c:1899:19: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*cp && isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user.c:1903:20: warning: array subscript is of type 'char' [-Wchar-subscripts] while (pp > cp && isspace (*pp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user.c:2372:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] sprintf (cp, token + 2); ^~~~~~~~~ 8 warnings generated. a - user.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include schedule.c In file included from schedule.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - schedule.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include alist.c In file included from alist.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - alist.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include trace.c In file included from trace.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ trace.c:123:35: warning: array subscript is of type 'char' [-Wchar-subscripts] if (tr->prepend && /* XXX */ !isspace(format[0])) { ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ trace.c:139:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] syslog (LOG_INFO, buffer_data (tr->buffer) + strlen (ptime) + 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../include/buffer.h:21:29: note: expanded from macro 'buffer_data' #define buffer_data(buffer) ((char *)(buffer)->data) ^ trace.c:395:44: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (error[0]) fprintf(tr->logfile->logfd, error); ^~~~~ trace.c:410:48: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (error[0]) fprintf(tr->logfile->logfd, error); ^~~~~ 5 warnings generated. a - trace.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include select.c In file included from select.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - select.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include connect.c In file included from connect.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ connect.c:97:9: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &size); ^~~~~ /usr/include/sys/socket.h:647:71: note: passing argument to parameter here int getsockopt(int, int, int, void *__restrict, socklen_t * __restrict); ^ 2 warnings generated. a - connect.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include reboot.c In file included from reboot.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - reboot.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include user_old.c In file included from user_old.c:7: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ user_old.c:41:21: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*line && isspace (*line)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user_old.c:47:6: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isspace (*fcp)) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user_old.c:48:22: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*line && isspace (*line)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user_old.c:59:10: warning: array subscript is of type 'char' [-Wchar-subscripts] if (tolower (*fcp) != tolower (*line)) ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ user_old.c:59:28: warning: array subscript is of type 'char' [-Wchar-subscripts] if (tolower (*fcp) != tolower (*line)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ user_old.c:61:22: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*fcp && !isspace (*fcp) && ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user_old.c:62:4: warning: array subscript is of type 'char' [-Wchar-subscripts] tolower (*fcp) == tolower (*line)) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ user_old.c:62:22: warning: array subscript is of type 'char' [-Wchar-subscripts] tolower (*fcp) == tolower (*line)) { ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ user_old.c:67:11: warning: array subscript is of type 'char' [-Wchar-subscripts] if ((isspace (*line) || *line == '\n' || *line == '\0') && ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user_old.c:68:5: warning: array subscript is of type 'char' [-Wchar-subscripts] (isspace (*fcp) || *fcp == '\0')) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ user_old.c:159:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalpha (token[0])) ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ user_old.c:162:12: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalnum (token[i])) ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum' #define isalnum(c) ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D))) ^~~~ user_old.c:175:12: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit (token[i])) ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ user_old.c:204:22: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalpha (*token) && (*token != '/')) ^~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ 15 warnings generated. a - user_old.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include user_util.c In file included from user_util.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ user_util.c:162:12: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalpha (user_token[0])) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ user_util.c:165:14: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalnum (user_token[i])) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum' #define isalnum(c) ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D))) ^~~~ user_util.c:173:14: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit (user_token[i])) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ user_util.c:182:14: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit (user_token[i])) ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 5 warnings generated. a - user_util.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include compat.c a - compat.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include vars.c In file included from vars.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - vars.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include nexthop.c In file included from nexthop.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ nexthop.c:393:19: warning: unused variable 'sin6_addr' [-Wunused-variable] struct in6_addr *sin6_addr; ^ 2 warnings generated. a - nexthop.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include buffer.c In file included from buffer.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ buffer.c:332:10: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isdigit (*fmt)) ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ buffer.c:355:15: warning: array subscript is of type 'char' [-Wchar-subscripts] } while (isdigit (*++fmt)); ^~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 3 warnings generated. a - buffer.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include hashfn.c In file included from hashfn.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - hashfn.o cd pim; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include dvmrp.c In file included from dvmrp.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ dvmrp.c:1276:1: warning: unused function 'dvmrp_timer_probe' [-Wunused-function] dvmrp_timer_probe (void) ^ dvmrp.c:1759:1: warning: unused function 'dvmrp_route_compare' [-Wunused-function] dvmrp_route_compare (dvmrp_route_t * a, dvmrp_route_t * b) ^ 3 warnings generated. a - dvmrp.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include pim.c In file included from pim.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - pim.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include cache.c In file included from cache.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ cache.c:649:29: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] sprintf (stmp, "%4ld", entry->expire - now); ~~~~ ^~~~~~~~~~~~~~~~~~~ %4lld cache.c:234:1: warning: unused function 'index2vindex' [-Wunused-function] index2vindex (int index) ^ 3 warnings generated. a - cache.o cd portserver; /usr/pkg/bin/bmake cd radix; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include radix.c In file included from radix.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - radix.o cd rib; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rib.c In file included from rib.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ rib.c:932:1: warning: unused function 'rib_if_call_fn' [-Wunused-function] rib_if_call_fn (int cmd, interface_t *interface, ll_addr_t *if_addr) ^ 2 warnings generated. a - rib.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rib_uii.c In file included from rib_uii.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ rib_uii.c:85:21: warning: array subscript is of type 'char' [-Wchar-subscripts] (type >= 0)? toupper (proto2string (type)[0]): ' ', ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ 2 warnings generated. a - rib_uii.o cd rip; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rip_proto.c In file included from rip_proto.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ rip_proto.c:1270:47: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] sprintf (stmp, "%4d %4ld", attr->metric, now - attr->utime); ~~~~ ^~~~~~~~~~~~~~~~~ %4lld rip_proto.c:1306:51: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat] sprintf (stmp, "%4d %4ld", attr->metric, now - attr->dtime); ~~~~ ^~~~~~~~~~~~~~~~~ %4lld 3 warnings generated. a - rip_proto.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include rip2.c In file included from rip2.c:15: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - rip2.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include ripng.c a - ripng.o cd struct; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include New.c a - New.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include stack.c a - stack.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include array.c a - array.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include linked_list.c a - linked_list.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include hash.c a - hash.o cd timer; /usr/pkg/bin/bmake cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include timer.c In file included from timer.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - timer.o cc -c -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include signal.c In file included from signal.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - signal.o Making programs cd bgpsim; /usr/pkg/bin/bmake cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c bgpsim.c In file included from bgpsim.c:6: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgpsim.c:297:11: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit (cp[0])) { ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ bgpsim.c:342:11: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit (cp[0])) { ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ bgpsim.c:579:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ 4 warnings generated. cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c simulate.c In file included from simulate.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. cc -Wl,-R/usr/pkg/lib bgpsim.o simulate.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librib.a ../../lib/libmrt.a -o bgpsim ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x30): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x4e): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x32c): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x79b): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x1960): undefined reference to `socket_reuse' ../../lib/libmrt.a(io.o): In function `io_set': io.c:(.text+0x2f1): undefined reference to `msgget' io.c:(.text+0x30f): undefined reference to `msgget' io.c:(.text+0x384): undefined reference to `msgsnd' io.c:(.text+0x53b): undefined reference to `msgget' io.c:(.text+0x62b): undefined reference to `msgget' io.c:(.text+0x651): undefined reference to `msgget' io.c:(.text+0x6c0): undefined reference to `msgsnd' io.c:(.text+0x6f0): undefined reference to `msgrcv' io.c:(.text+0x717): undefined reference to `__msgctl50' io.c:(.text+0x72e): undefined reference to `msgget' ../../lib/libmrt.a(io.o): In function `io_read': io.c:(.text+0x8cb): undefined reference to `msgrcv' ../../lib/libmrt.a(io.o): In function `io_write': io.c:(.text+0xcce): undefined reference to `msgsnd' ../../lib/libmrt.a(io.o): In function `close_input': io.c:(.text+0xea8): undefined reference to `msgget' io.c:(.text+0xf21): undefined reference to `msgsnd' io.c:(.text+0xf41): undefined reference to `__msgctl50' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/programs/bgpsim cd mrtd; /usr/pkg/bin/bmake cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c mrtd.c In file included from mrtd.c:14: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ mrtd.c:118:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ mrtd.c:118:1: note: change return type to 'int' void ^~~~ int mrtd.c:139:12: warning: unused variable 'pp' [-Wunused-variable] prefix_t *pp; ^ 3 warnings generated. cc -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 mrtd.o: In function `main': mrtd.c:(.text+0x3d7): undefined reference to `igmp_init' ../../lib/libcfg.a(multiconf.o): In function `config_multicast_init': multiconf.c:(.text+0x7): undefined reference to `IGMP' multiconf.c:(.text+0x42): undefined reference to `IGMP' multiconf.c:(.text+0x185): undefined reference to `IGMP' multiconf.c:(.text+0x19f): undefined reference to `igmp_show_group' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x30): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x4e): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x32c): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x79b): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x1960): undefined reference to `socket_reuse' ../../lib/librip.a(rip2.o): In function `rip2_init_listen': rip2.c:(.text+0x504): undefined reference to `socket_open' rip2.c:(.text+0x521): undefined reference to `socket_reuse' rip2.c:(.text+0x531): undefined reference to `socket_broadcast' rip2.c:(.text+0x541): undefined reference to `ip_multicast_loop' rip2.c:(.text+0x551): undefined reference to `ip_recvttl' rip2.c:(.text+0x561): undefined reference to `ip_pktinfo' ../../lib/librip.a(rip2.o): In function `rip2_send_request': rip2.c:(.text+0x849): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_interface': rip2.c:(.text+0x918): undefined reference to `join_leave_group' rip2.c:(.text+0x9d5): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_send_update': rip2.c:(.text+0xb8f): undefined reference to `send_packet' rip2.c:(.text+0xcee): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_receive_update': rip2.c:(.text+0xe31): undefined reference to `recvmsgfrom' ../../lib/libpim.a(dvmrp.o): In function `recv_dvmrp': dvmrp.c:(.text+0x535): undefined reference to `IGMP' dvmrp.c:(.text+0x541): undefined reference to `igmp_is_querier' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_send': dvmrp.c:(.text+0x1c9e): undefined reference to `IGMP' dvmrp.c:(.text+0x1d58): undefined reference to `igmp_send' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_advertise_route': dvmrp.c:(.text+0x227f): undefined reference to `IGMP' dvmrp.c:(.text+0x2353): undefined reference to `igmp_send' dvmrp.c:(.text+0x2557): undefined reference to `IGMP' dvmrp.c:(.text+0x2614): undefined reference to `igmp_send' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_init': dvmrp.c:(.text+0x28f1): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_start': dvmrp.c:(.text+0x3158): undefined reference to `IGMP' dvmrp.c:(.text+0x3170): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_update_call_fn': dvmrp.c:(.text+0x3598): undefined reference to `igmp_test_membership' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_stop': dvmrp.c:(.text+0x3809): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_activate_interface': dvmrp.c:(.text+0x4364): undefined reference to `igmp_interface' dvmrp.c:(.text+0x46a9): undefined reference to `IGMP' dvmrp.c:(.text+0x474c): undefined reference to `IGMP' dvmrp.c:(.text+0x476c): undefined reference to `join_leave_group' dvmrp.c:(.text+0x4813): undefined reference to `igmp_interface' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_send_probe': dvmrp.c:(.text+0x4f7f): undefined reference to `IGMP' dvmrp.c:(.text+0x503c): undefined reference to `igmp_send' ../../lib/libpim.a(pim.o): In function `pim_receive': pim.c:(.text+0xf1): undefined reference to `recvmsgfrom' pim.c:(.text+0x398): undefined reference to `inet_cksum' ../../lib/libpim.a(pim.o): In function `pim_send': pim.c:(.text+0x2068): undefined reference to `inet_cksum' pim.c:(.text+0x2081): undefined reference to `inet_cksum' pim.c:(.text+0x21c0): undefined reference to `inet_cksum' pim.c:(.text+0x221f): undefined reference to `send_packet' ../../lib/libpim.a(pim.o): In function `pim_init': pim.c:(.text+0x22d0): undefined reference to `IGMP' ../../lib/libpim.a(pim.o): In function `pim_activate_interface': pim.c:(.text+0x3427): undefined reference to `igmp_interface' pim.c:(.text+0x347a): undefined reference to `socket_open' pim.c:(.text+0x3490): undefined reference to `socket_reuse' pim.c:(.text+0x34a0): undefined reference to `socket_rcvbuf' pim.c:(.text+0x34b0): undefined reference to `ip_hdrincl' pim.c:(.text+0x34c0): undefined reference to `ip_multicast_loop' pim.c:(.text+0x34d0): undefined reference to `ip_pktinfo' pim.c:(.text+0x34e0): undefined reference to `ip_recvttl' pim.c:(.text+0x372a): undefined reference to `join_leave_group' pim.c:(.text+0x380b): undefined reference to `igmp_interface' pim.c:(.text+0x3ae2): undefined reference to `igmp_interface' ../../lib/libpim.a(pim.o): In function `pim_update_call_fn': pim.c:(.text+0x4361): undefined reference to `igmp_test_membership' pim.c:(.text+0x44b4): undefined reference to `igmp_test_membership' ../../lib/libpim.a(cache.o): In function `cache_update_mfc': cache.c:(.text+0x1a9): undefined reference to `mc_add_mfc' ../../lib/libpim.a(cache.o): In function `cache_control_from_kernel': cache.c:(.text+0xc6c): undefined reference to `mc_del_mfc' ../../lib/libpim.a(cache.o): In function `cache_init': cache.c:(.text+0xf6e): undefined reference to `IGMP' ../../lib/libpim.a(cache.o): In function `cache_timer_expire': cache.c:(.text+0x1359): undefined reference to `mc_del_mfc' cache.c:(.text+0x13ee): undefined reference to `mc_req_mfc' ../../lib/libmrt.a(io.o): In function `io_set': io.c:(.text+0x2f1): undefined reference to `msgget' io.c:(.text+0x30f): undefined reference to `msgget' io.c:(.text+0x384): undefined reference to `msgsnd' io.c:(.text+0x53b): undefined reference to `msgget' io.c:(.text+0x62b): undefined reference to `msgget' io.c:(.text+0x651): undefined reference to `msgget' io.c:(.text+0x6c0): undefined reference to `msgsnd' io.c:(.text+0x6f0): undefined reference to `msgrcv' io.c:(.text+0x717): undefined reference to `__msgctl50' io.c:(.text+0x72e): undefined reference to `msgget' ../../lib/libmrt.a(io.o): In function `io_read': io.c:(.text+0x8cb): undefined reference to `msgrcv' ../../lib/libmrt.a(io.o): In function `io_write': io.c:(.text+0xcce): undefined reference to `msgsnd' ../../lib/libmrt.a(io.o): In function `close_input': io.c:(.text+0xea8): undefined reference to `msgget' io.c:(.text+0xf21): undefined reference to `msgsnd' io.c:(.text+0xf41): undefined reference to `__msgctl50' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/programs/mrtd cd ricd; /usr/pkg/bin/bmake cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c ricd.c In file included from ricd.c:12: In file included from ./ricd.h:8: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.c:12: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // ricd.c:158:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ ricd.c:158:1: note: change return type to 'int' void ^~~~ int 3 warnings generated. cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c hqlip.c In file included from hqlip.c:5: In file included from ./ricd.h:8: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from hqlip.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // hqlip.c:651:15: warning: unused variable 'req_qos' [-Wunused-variable] req_qos_t req_qos; ^ hqlip.c:725:15: warning: unused variable 'req_qos' [-Wunused-variable] req_qos_t req_qos; ^ hqlip.c:912:39: warning: passing 'char [512]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] send_packet (vif->udp_sockfd, buffer, cp - buffer, /*MSG_MULTI_LOOP*/0, ^~~~~~ ../../include/interface.h:189:38: note: passing argument to parameter 'msg' here int send_packet (int sockfd, u_char *msg, int len, u_long flags, ^ hqlip.c:1074:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u_char *addr = prefix_tochar (area->id); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1144:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u_char *addr = prefix_tochar (prefix); ^ ~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1199:49: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area1, cp); ^~ hqlip.c:1070:39: note: passing argument to parameter 'cp' here hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1199:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area1, cp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1200:49: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area2, cp); ^~ hqlip.c:1070:39: note: passing argument to parameter 'cp' here hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1200:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_link_qos->area2, cp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1279:48: warning: passing 'char [65535]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp - msgbuf, spath_link_qos->tstamp, msgbuf); ^~~~~~ hqlip.c:987:15: note: passing argument to parameter 'data' here u_char *data) ^ hqlip.c:1468:55: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_area_center->area, cp); ^~ hqlip.c:1070:39: note: passing argument to parameter 'cp' here hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1468:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_area_center->area, cp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1486:51: warning: passing 'char [65535]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp - msgbuf, spath_area_center->tstamp, msgbuf); ^~~~~~ hqlip.c:987:15: note: passing argument to parameter 'data' here u_char *data) ^ hqlip.c:1979:53: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_area_addr->area, cp); ^~ hqlip.c:1070:39: note: passing argument to parameter 'cp' here hqlip_put_area (area_t *area, u_char *cp) ^ hqlip.c:1979:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_area (spath_area_addr->area, cp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1982:46: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_addr (prefix, cp); ^~ hqlip.c:1139:43: note: passing argument to parameter 'cp' here hqlip_put_addr (prefix_t *prefix, u_char *cp) ^ hqlip.c:1982:20: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp = hqlip_put_addr (prefix, cp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:1997:49: warning: passing 'char [65535]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] cp - msgbuf, spath_area_addr->tstamp, msgbuf); ^~~~~~ hqlip.c:987:15: note: passing argument to parameter 'data' here u_char *data) ^ hqlip.c:2296:4: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &namelen) < 0) { ^~~~~~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ hqlip.c:2866:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:2934:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hqlip.c:52:1: warning: unused function 'my_area_is_center' [-Wunused-function] my_area_is_center (my_area_t *my_area) ^ hqlip.c:448:1: warning: unused function 'list_link_qos' [-Wunused-function] list_link_qos (hqlip_t *hqlip, my_area_t *my_area) ^ hqlip.c:790:1: warning: unused function 'hqlip_update_elink' [-Wunused-function] hqlip_update_elink (hqlip_t *hqlip, my_area_t *my_area, hqlip_interface_t *vif) ^ 26 warnings generated. cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c ricdconf.c In file included from ricdconf.c:5: In file included from ./ricd.h:8: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricdconf.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // 2 warnings generated. cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c area.c In file included from area.c:5: In file included from ./ricd.h:8: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from area.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // area.c:52:14: warning: unused variable 'sprefix' [-Wunused-variable] prefix_t sprefix; ^ area.c:51:10: warning: unused variable 'sbuf' [-Wunused-variable] char sbuf[128]; ^ 4 warnings generated. cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c srsvp.c In file included from srsvp.c:5: In file included from ./ricd.h:8: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from srsvp.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // srsvp.c:399:4: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] &namelen) < 0) { ^~~~~~~~ /usr/include/sys/socket.h:645:74: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ srsvp.c:910:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c qif.c In file included from qif.c:5: In file included from ./ricd.h:8: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from qif.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // 2 warnings generated. cc -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 hqlip.o: In function `hqlip_activate_interface': hqlip.c:(.text+0xd6c): undefined reference to `join_leave_group' hqlip.o: In function `hqlip_vif_udp_init': hqlip.c:(.text+0xfc0): undefined reference to `socket_open' hqlip.c:(.text+0xfda): undefined reference to `socket_reuse' hqlip.c:(.text+0xff8): undefined reference to `socket_bind_port' hqlip.c:(.text+0x1008): undefined reference to `ip_pktinfo' hqlip.c:(.text+0x1018): undefined reference to `ip_recvttl' hqlip.c:(.text+0x1081): undefined reference to `socket_open' hqlip.c:(.text+0x109b): undefined reference to `socket_reuse' hqlip.c:(.text+0x10c2): undefined reference to `join_leave_group' hqlip.c:(.text+0x10df): undefined reference to `socket_bind_port' hqlip.c:(.text+0x10ef): undefined reference to `ip_multicast_loop' hqlip.c:(.text+0x10ff): undefined reference to `ip_multicast_hops' hqlip.c:(.text+0x110f): undefined reference to `ip_pktinfo' hqlip.c:(.text+0x111f): undefined reference to `ip_recvttl' hqlip.o: In function `hqlip_vif_tcp_init': hqlip.c:(.text+0x11b9): undefined reference to `socket_open' hqlip.c:(.text+0x11cf): undefined reference to `socket_reuse' hqlip.c:(.text+0x11ec): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_send_hello': hqlip.c:(.text+0x19fe): undefined reference to `send_packet' hqlip.o: In function `hqlip_open_accept': hqlip.c:(.text+0x5dec): undefined reference to `get_socket_addr' hqlip.o: In function `hqlip_register_neighbor': hqlip.c:(.text+0x670c): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_recv_hello': hqlip.c:(.text+0x9ffe): undefined reference to `recvmsgfrom' srsvp.o: In function `srsvp_vif_tcp_init': srsvp.c:(.text+0xbd9): undefined reference to `socket_open' srsvp.c:(.text+0xbef): undefined reference to `socket_reuse' srsvp.c:(.text+0xc0c): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_open_accept': srsvp.c:(.text+0x41ce): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_keep_alive': srsvp.c:(.text+0x75eb): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_tcp_connect': srsvp.c:(.text+0x76cc): undefined reference to `socket_bind_port' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/programs/ricd cd route_atob; /usr/pkg/bin/bmake cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c route_atob.c In file included from route_atob.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ route_atob.c:68:24: warning: array subscript is of type 'char' [-Wchar-subscripts] if (cp[len] == ':' || isspace (cp[len])) { ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:71:15: warning: array subscript is of type 'char' [-Wchar-subscripts] } while (isspace (cp[len])); ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:83:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:343:6: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isspace (line[0])) { ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:347:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*cp)) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:366:10: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isspace (line[0]) && ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:387:15: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (isspace (line[0]) && ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:409:15: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (isspace (line[0]) && ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ route_atob.c:689:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ route_atob.c:689:1: note: change return type to 'int' void ^~~~ int route_atob.c:743:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ 11 warnings generated. cc -Wl,-R/usr/pkg/lib route_atob.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_atob ../../lib/libmrt.a(io.o): In function `io_set': io.c:(.text+0x2f1): undefined reference to `msgget' io.c:(.text+0x30f): undefined reference to `msgget' io.c:(.text+0x384): undefined reference to `msgsnd' io.c:(.text+0x53b): undefined reference to `msgget' io.c:(.text+0x62b): undefined reference to `msgget' io.c:(.text+0x651): undefined reference to `msgget' io.c:(.text+0x6c0): undefined reference to `msgsnd' io.c:(.text+0x6f0): undefined reference to `msgrcv' io.c:(.text+0x717): undefined reference to `__msgctl50' io.c:(.text+0x72e): undefined reference to `msgget' ../../lib/libmrt.a(io.o): In function `io_read': io.c:(.text+0x8cb): undefined reference to `msgrcv' ../../lib/libmrt.a(io.o): In function `io_write': io.c:(.text+0xcce): undefined reference to `msgsnd' ../../lib/libmrt.a(io.o): In function `close_input': io.c:(.text+0xea8): undefined reference to `msgget' io.c:(.text+0xf21): undefined reference to `msgsnd' io.c:(.text+0xf41): undefined reference to `__msgctl50' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/programs/route_atob cd route_btoa; /usr/pkg/bin/bmake cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c route_btoa.c In file included from route_btoa.c:5: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ route_btoa.c:697:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ route_btoa.c:697:1: note: change return type to 'int' void ^~~~ int route_btoa.c:747:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ route_btoa.c:754:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ route_btoa.c:738:4: warning: variable 'errs' is uninitialized when used here [-Wuninitialized] errs++; ^~~~ route_btoa.c:704:13: note: initialize the variable 'errs' to silence this warning int errs; ^ = 0 5 warnings generated. cc -Wl,-R/usr/pkg/lib route_btoa.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_btoa ../../lib/libmrt.a(io.o): In function `io_set': io.c:(.text+0x2f1): undefined reference to `msgget' io.c:(.text+0x30f): undefined reference to `msgget' io.c:(.text+0x384): undefined reference to `msgsnd' io.c:(.text+0x53b): undefined reference to `msgget' io.c:(.text+0x62b): undefined reference to `msgget' io.c:(.text+0x651): undefined reference to `msgget' io.c:(.text+0x6c0): undefined reference to `msgsnd' io.c:(.text+0x6f0): undefined reference to `msgrcv' io.c:(.text+0x717): undefined reference to `__msgctl50' io.c:(.text+0x72e): undefined reference to `msgget' ../../lib/libmrt.a(io.o): In function `io_read': io.c:(.text+0x8cb): undefined reference to `msgrcv' ../../lib/libmrt.a(io.o): In function `io_write': io.c:(.text+0xcce): undefined reference to `msgsnd' ../../lib/libmrt.a(io.o): In function `close_input': io.c:(.text+0xea8): undefined reference to `msgget' io.c:(.text+0xf21): undefined reference to `msgsnd' io.c:(.text+0xf41): undefined reference to `__msgctl50' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/programs/route_btoa cd sbgp; /usr/pkg/bin/bmake cc -O2 -march=i586 -Wall -DHAVE_CONFIG_H -DFUNCPROTO -I../../include -DFUNCPROTO -I../../include -c simple_bgp.c In file included from simple_bgp.c:10: In file included from ../../include/mrt.h:82: In file included from ../../include/assert.h:10: In file included from ../../include/trace.h:14: In file included from ../../include/mrt_thread.h:11: ../../include/pthread_fake.h:40:9: warning: 'pthread_sigmask' macro redefined [-Wmacro-redefined] #define pthread_sigmask(a,b,c) sigprocmask(a,b,c) ^ /usr/include/signal.h:75:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ simple_bgp.c:277:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ simple_bgp.c:373:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ 3 warnings generated. cc -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 ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x30): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x4e): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x32c): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x79b): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x1960): undefined reference to `socket_reuse' ../../lib/libmrt.a(io.o): In function `io_set': io.c:(.text+0x2f1): undefined reference to `msgget' io.c:(.text+0x30f): undefined reference to `msgget' io.c:(.text+0x384): undefined reference to `msgsnd' io.c:(.text+0x53b): undefined reference to `msgget' io.c:(.text+0x62b): undefined reference to `msgget' io.c:(.text+0x651): undefined reference to `msgget' io.c:(.text+0x6c0): undefined reference to `msgsnd' io.c:(.text+0x6f0): undefined reference to `msgrcv' io.c:(.text+0x717): undefined reference to `__msgctl50' io.c:(.text+0x72e): undefined reference to `msgget' ../../lib/libmrt.a(io.o): In function `io_read': io.c:(.text+0x8cb): undefined reference to `msgrcv' ../../lib/libmrt.a(io.o): In function `io_write': io.c:(.text+0xcce): undefined reference to `msgsnd' ../../lib/libmrt.a(io.o): In function `close_input': io.c:(.text+0xea8): undefined reference to `msgget' io.c:(.text+0xf21): undefined reference to `msgsnd' io.c:(.text+0xf41): undefined reference to `__msgctl50' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake[3]: stopped in /usr/pkgsrc/work/net/mrt/work/mrt/src/programs/sbgp => Unwrapping files-to-be-installed.