=> Bootstrap dependency digest>=20010302: found digest-20160304 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for mrt-2.2.2a.20000811nb1 Making lib cd bgp_attr; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_attr.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - as_alist.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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:653: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:653: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:654: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_sm.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_pdu.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_timer.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_thread.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_dump.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - bgp_dump2.o cd config; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ config_file.c:301:11: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *) num); ^ config_file.c:314:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *) num); ^ 3 warnings generated. a - config_file.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - commconf.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgpconf.c:52:41: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] get_config_aspath_filter, (void *) num); ^ bgpconf.c:68:37: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] get_config_aspath_filter, (void *) num); ^ bgpconf.c:129:11: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *) num); ^ bgpconf.c:142:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *) num); ^ 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:2024:62: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] config_add_module (0, "dump bgp", get_config_dump_bgp_view, (void *)id); ^ bgpconf.c:2126:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *)id); ^ bgpconf.c:2135:7: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *)id); ^ 11 warnings generated. a - bgpconf.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ rtmapconf.c:32:18: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *) num); ^ rtmapconf.c:41:14: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *) num); ^ 3 warnings generated. a - rtmapconf.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - load.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - ripconf.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - multiconf.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - dvmrpconf.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - pimconf.o cd filter; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - filter.o cd io; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include bsd.c In file included from bsd.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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bsd.c:526:17: warning: implicit declaration of function 'ioctl' is invalid in C99 [-Wimplicit-function-declaration] if (ioctl (route_sockfd, SIOCGIFFLAGS, &ifr) < 0) { ^ bsd.c:521:18: warning: unused variable 'tmpx' [-Wunused-variable] char tmpx[MAXLINE]; ^ bsd.c:590:5: error: use of undeclared identifier 'RTF_CLONING' |RTF_CLONING /* direct if */ ^ bsd.c:591:5: error: use of undeclared identifier 'RTF_XRESOLVE' |RTF_XRESOLVE /* direct if for IPv6 */ ^ 3 warnings and 2 errors generated. *** Error code 1 Stop. make[3]: stopped in /data/scratch/net/mrt/work/mrt/src/lib/kernel cd mrt; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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: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: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)) ^~~~ 7 warnings generated. a - util.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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:309:10: warning: unused variable 'hostbuf' [-Wunused-variable] char hostbuf[1024]; ^ prefix.c:308:9: warning: unused variable 'h_errno_r' [-Wunused-variable] int h_errno_r; ^ prefix.c:462:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (bitlen < 0 || bitlen > maxbitlen) ~~~~~~ ^ ~ 6 warnings generated. a - prefix.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - route_util.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - gateway.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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:649:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 2 warnings generated. a - mrt.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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:1184:19: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] args[nargs++] = (void *) atoi (utoken); ^ user.c:1215:23: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] args[optional_arg] = (void *) optional; ^ 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); ^~~~~~~~~ user.c:2372:15: note: treat the string as an argument to avoid this sprintf (cp, token + 2); ^ "%s", 10 warnings generated. a - user.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - schedule.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - alist.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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:139:24: note: treat the string as an argument to avoid this syslog (LOG_INFO, buffer_data (tr->buffer) + strlen (ptime) + 1); ^ "%s", ../../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:395:44: note: treat the string as an argument to avoid this if (error[0]) fprintf(tr->logfile->logfd, error); ^ "%s", trace.c:410:48: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (error[0]) fprintf(tr->logfile->logfd, error); ^~~~~ trace.c:410:48: note: treat the string as an argument to avoid this if (error[0]) fprintf(tr->logfile->logfd, error); ^ "%s", 5 warnings generated. a - trace.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - select.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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:655:71: note: passing argument to parameter here int getsockopt(int, int, int, void *__restrict, socklen_t * __restrict); ^ 2 warnings generated. a - connect.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - reboot.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include compat.c a - compat.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - vars.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - hashfn.o cd pim; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - pim.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ cache.c:234:1: warning: unused function 'index2vindex' [-Wunused-function] index2vindex (int index) ^ 2 warnings generated. a - cache.o cd portserver; /usr/bin/make cd radix; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - radix.o cd rib; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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 clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80: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/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - rip_proto.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - rip2.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include ripng.c In file included from ripng.c:23: 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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ ripng.c:425:27: warning: variable 'buffer' is uninitialized when used here [-Wuninitialized] u_char *buffer, *cp = buffer; ^~~~~~ ripng.c:425:19: note: initialize the variable 'buffer' to silence this warning u_char *buffer, *cp = buffer; ^ = NULL 2 warnings generated. a - ripng.o cd struct; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include New.c a - New.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include stack.c a - stack.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include array.c array.c:309:12: warning: cast to 'DATA_PTR' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] tmp[p] = (DATA_PTR)r; ^ array.c:330:12: warning: cast to 'DATA_PTR' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] tmp[p] = (DATA_PTR)r; ^ array.c:335:12: warning: cast to 'DATA_PTR' (aka 'void *') from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] tmp[p] = (DATA_PTR)p; ^ 3 warnings generated. a - array.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include linked_list.c a - linked_list.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include hash.c a - hash.o cd timer; /usr/bin/make clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - timer.o clang -c -O2 -Wall -DHAVE_CONFIG_H -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. a - signal.o Making programs cd bgpsim; /usr/bin/make clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ bgpsim.c:106:37: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] get_config_network_list, (void *)num); ^ bgpsim.c:121:14: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] (void *)num); ^ 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); ^~~~~ bgpsim.c:579:24: note: treat the string as an argument to avoid this fprintf (stderr, usage); ^ "%s", 6 warnings generated. clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ 1 warning generated. clang -Wl,-R/usr/pkg/lib bgpsim.o simulate.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librib.a ../../lib/libmrt.a -o bgpsim -lresolv bgpsim.o: In function `main': bgpsim.c:(.text+0x1ed): undefined reference to `init_interfaces' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x2e6): undefined reference to `show_interfaces' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x67b): undefined reference to `find_interface_byname' commconf.c:(.text+0x90e): undefined reference to `find_interface' commconf.c:(.text+0x925): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0xbd4): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xe28): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x1122): undefined reference to `find_interface' commconf.c:(.text+0x113b): undefined reference to `find_interface_local' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_update_source': bgpconf.c:(.text+0x3068): undefined reference to `find_interface_local' bgpconf.c:(.text+0x30d0): undefined reference to `find_interface_byname' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x3fac): undefined reference to `find_interface_byname' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x34): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x4b): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x75): undefined reference to `find_interface_local' bgp_util.c:(.text+0xbd): undefined reference to `find_interface' bgp_util.c:(.text+0x13b): undefined reference to `find_interface_local' bgp_util.c:(.text+0x165): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x332): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x758): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x17de): undefined reference to `socket_reuse' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x187): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0xcfd): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x4cc1): undefined reference to `find_interface' view.c:(.text+0x4cd7): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x52d5): undefined reference to `find_interface' view.c:(.text+0x5301): undefined reference to `find_interface' view.c:(.text+0x534e): undefined reference to `find_interface' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[3]: stopped in /data/scratch/net/mrt/work/mrt/src/programs/bgpsim cd mrtd; /usr/bin/make clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80: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. clang -Wl,-R/usr/pkg/lib mrtd.o ../../lib/libcfg.a ../../lib/libbgp.a ../../lib/librip.a ../../lib/libpim.a ../../lib/librib.a ../../lib/libmrt.a -o mrtd -lresolv mrtd.o: In function `main': mrtd.c:(.text+0x38b): undefined reference to `init_interfaces' mrtd.c:(.text+0x3a8): undefined reference to `igmp_init' mrtd.c:(.text+0x3b5): undefined reference to `igmp_init' mrtd.c:(.text+0x447): undefined reference to `kernel_init' mrtd.c:(.text+0x457): undefined reference to `kernel_read_rt_table' mrtd.c:(.text+0x473): undefined reference to `kernel_update_route' mrtd.c:(.text+0x48e): undefined reference to `add_interfaces_to_rib' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x2e6): undefined reference to `show_interfaces' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x67b): undefined reference to `find_interface_byname' commconf.c:(.text+0x90e): undefined reference to `find_interface' commconf.c:(.text+0x925): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0xbd4): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xe28): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x1122): undefined reference to `find_interface' commconf.c:(.text+0x113b): undefined reference to `find_interface_local' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_update_source': bgpconf.c:(.text+0x3068): undefined reference to `find_interface_local' bgpconf.c:(.text+0x30d0): undefined reference to `find_interface_byname' ../../lib/libcfg.a(bgpconf.o): In function `config_router_neighbor_n_peer': bgpconf.c:(.text+0x3fac): undefined reference to `find_interface_byname' ../../lib/libcfg.a(ripconf.o): In function `config_distribute_list': ripconf.c:(.text+0xd6e): undefined reference to `find_interface_byname' ../../lib/libcfg.a(multiconf.o): In function `config_multicast_init': multiconf.c:(.text+0x7): undefined reference to `IGMP' multiconf.c:(.text+0x31): undefined reference to `IGMP' multiconf.c:(.text+0x103): undefined reference to `IGMP' multiconf.c:(.text+0x11e): undefined reference to `igmp_show_group' multiconf.c:(.text+0x168): undefined reference to `IGMPv6' multiconf.c:(.text+0x183): undefined reference to `igmp6_show_group' multiconf.c:(.text+0x1cd): undefined reference to `IGMPv6' multiconf.c:(.text+0x1fa): undefined reference to `IGMPv6' ../../lib/libcfg.a(multiconf.o): In function `config_interface_tunnel': multiconf.c:(.text+0x46e): undefined reference to `new_interface' ../../lib/libcfg.a(dvmrpconf.o): In function `config_dvmrp_distribute_list': dvmrpconf.c:(.text+0x79d): undefined reference to `find_interface_byname' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x34): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x4b): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x75): undefined reference to `find_interface_local' bgp_util.c:(.text+0xbd): undefined reference to `find_interface' bgp_util.c:(.text+0x13b): undefined reference to `find_interface_local' bgp_util.c:(.text+0x165): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x332): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x758): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x17de): undefined reference to `socket_reuse' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x187): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0xcfd): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x4cc1): undefined reference to `find_interface' view.c:(.text+0x4cd7): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x52d5): undefined reference to `find_interface' view.c:(.text+0x5301): undefined reference to `find_interface' view.c:(.text+0x534e): undefined reference to `find_interface' ../../lib/librip.a(rip_proto.o): In function `rip_show_routing_table': rip_proto.c:(.text+0x25f4): undefined reference to `find_interface_byname' ../../lib/librip.a(rip_proto.o): In function `rip_interface_recheck': rip_proto.c:(.text+0x2ab5): undefined reference to `find_network' rip_proto.c:(.text+0x2c15): undefined reference to `find_interface_byname_all' ../../lib/librip.a(rip2.o): In function `rip2_process_packet_response': rip2.c:(.text+0x174): undefined reference to `mask2len' ../../lib/librip.a(rip2.o): In function `rip2_process_packet_request': rip2.c:(.text+0x387): undefined reference to `mask2len' ../../lib/librip.a(rip2.o): In function `rip2_init_listen': rip2.c:(.text+0x49d): undefined reference to `socket_open' rip2.c:(.text+0x4b3): undefined reference to `socket_reuse' rip2.c:(.text+0x4bf): undefined reference to `socket_broadcast' rip2.c:(.text+0x4c8): undefined reference to `ip_multicast_loop' rip2.c:(.text+0x4d4): undefined reference to `ip_recvttl' rip2.c:(.text+0x4e0): undefined reference to `ip_pktinfo' ../../lib/librip.a(rip2.o): In function `rip2_send_request': rip2.c:(.text+0x74e): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_interface': rip2.c:(.text+0x829): undefined reference to `join_leave_group' rip2.c:(.text+0x8a2): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_send_update': rip2.c:(.text+0x9e7): undefined reference to `len2mask' rip2.c:(.text+0xaac): undefined reference to `send_packet' rip2.c:(.text+0xbfd): undefined reference to `send_packet' ../../lib/librip.a(rip2.o): In function `rip2_receive_update': rip2.c:(.text+0xd01): undefined reference to `recvmsgfrom' rip2.c:(.text+0x103b): undefined reference to `find_interface_local' rip2.c:(.text+0x10a6): undefined reference to `find_interface_local' ../../lib/librip.a(ripng.o): In function `ripng_init_listen': ripng.c:(.text+0x50f): undefined reference to `socket_open' ripng.c:(.text+0x525): undefined reference to `socket_reuse' ripng.c:(.text+0x543): undefined reference to `socket_rcvbuf' ripng.c:(.text+0x54c): undefined reference to `ipv6_multicast_loop' ripng.c:(.text+0x558): undefined reference to `ipv6_pktinfo' ripng.c:(.text+0x564): undefined reference to `ipv6_recvhops' ripng.c:(.text+0x570): undefined reference to `ipv6_multicast_hops' ripng.c:(.text+0x57c): undefined reference to `ipv6_unicast_hops' ../../lib/librip.a(ripng.o): In function `ripng_send_request': ripng.c:(.text+0x7af): undefined reference to `send_packet' ../../lib/librip.a(ripng.o): In function `ripng_interface': ripng.c:(.text+0x87f): undefined reference to `join_leave_group' ripng.c:(.text+0x8eb): undefined reference to `send_packet' ../../lib/librip.a(ripng.o): In function `ripng_send_update': ripng.c:(.text+0xd50): undefined reference to `send_packet' ../../lib/librip.a(ripng.o): In function `ripng_receive_update': ripng.c:(.text+0xe8f): undefined reference to `recvmsgfrom' ripng.c:(.text+0x10ea): undefined reference to `find_interface_local' ripng.c:(.text+0x11a1): undefined reference to `find_interface_local' ../../lib/libpim.a(dvmrp.o): In function `recv_dvmrp': dvmrp.c:(.text+0x19b): undefined reference to `find_interface_local' dvmrp.c:(.text+0x289): undefined reference to `mask2len' dvmrp.c:(.text+0x485): undefined reference to `IGMP' dvmrp.c:(.text+0x48d): undefined reference to `igmp_is_querier' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_send': dvmrp.c:(.text+0x1d15): undefined reference to `IGMP' dvmrp.c:(.text+0x1dbf): undefined reference to `igmp_send' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_advertise_route': dvmrp.c:(.text+0x1f05): undefined reference to `IGMP' dvmrp.c:(.text+0x1fad): undefined reference to `igmp_send' dvmrp.c:(.text+0x2497): undefined reference to `IGMP' dvmrp.c:(.text+0x2555): undefined reference to `igmp_send' dvmrp.c:(.text+0x2622): undefined reference to `len2mask' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_init': dvmrp.c:(.text+0x2a5d): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_start': dvmrp.c:(.text+0x3124): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_update_call_fn': dvmrp.c:(.text+0x34c5): undefined reference to `igmp_test_membership' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_stop': dvmrp.c:(.text+0x368a): undefined reference to `IGMP' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_interface_recheck': dvmrp.c:(.text+0x3814): undefined reference to `find_network' dvmrp.c:(.text+0x3994): undefined reference to `find_interface_byname_all' dvmrp.c:(.text+0x3b25): undefined reference to `find_interface_byname_all' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_activate_interface': dvmrp.c:(.text+0x4272): undefined reference to `igmp_interface' dvmrp.c:(.text+0x455d): undefined reference to `IGMP' dvmrp.c:(.text+0x45d1): undefined reference to `IGMP' dvmrp.c:(.text+0x45e9): undefined reference to `join_leave_group' dvmrp.c:(.text+0x4675): undefined reference to `igmp_interface' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_show_routing_table': dvmrp.c:(.text+0x46c4): undefined reference to `find_interface_byname' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_show_neighbors': dvmrp.c:(.text+0x494b): undefined reference to `find_interface_byname' ../../lib/libpim.a(dvmrp.o): In function `dvmrp_send_probe': dvmrp.c:(.text+0x4db0): undefined reference to `IGMP' dvmrp.c:(.text+0x4e59): undefined reference to `igmp_send' ../../lib/libpim.a(pim.o): In function `pim_receive': pim.c:(.text+0xe3): undefined reference to `recvmsgfrom' pim.c:(.text+0x255): undefined reference to `recvmsgfrom' pim.c:(.text+0x38c): undefined reference to `inet_cksum' pim.c:(.text+0x3ed): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_send': pim.c:(.text+0x2416): undefined reference to `inet_cksum' pim.c:(.text+0x242c): undefined reference to `inet_cksum' pim.c:(.text+0x2620): undefined reference to `inet6_cksum' pim.c:(.text+0x262d): undefined reference to `inet_cksum' pim.c:(.text+0x267a): undefined reference to `send_packet' ../../lib/libpim.a(pim.o): In function `pim_init': pim.c:(.text+0x2752): undefined reference to `IGMP' pim.c:(.text+0x276a): undefined reference to `IGMPv6' ../../lib/libpim.a(pim.o): In function `pim_activate_interface': pim.c:(.text+0x3ca7): undefined reference to `igmp_interface' pim.c:(.text+0x3d09): undefined reference to `socket_open' pim.c:(.text+0x3d21): undefined reference to `socket_reuse' pim.c:(.text+0x3d2e): undefined reference to `socket_rcvbuf' pim.c:(.text+0x3d3b): undefined reference to `ip_hdrincl' pim.c:(.text+0x3d45): undefined reference to `ip_multicast_loop' pim.c:(.text+0x3d52): undefined reference to `ip_pktinfo' pim.c:(.text+0x3d5f): undefined reference to `ip_recvttl' pim.c:(.text+0x3df0): undefined reference to `join_leave_group' pim.c:(.text+0x3ea8): undefined reference to `igmp_interface' pim.c:(.text+0x4169): undefined reference to `igmp_interface' pim.c:(.text+0x4276): undefined reference to `socket_open' pim.c:(.text+0x428e): undefined reference to `socket_reuse' pim.c:(.text+0x429b): undefined reference to `socket_rcvbuf' pim.c:(.text+0x42a5): undefined reference to `ipv6_multicast_loop' pim.c:(.text+0x42b2): undefined reference to `ipv6_pktinfo' pim.c:(.text+0x42bf): undefined reference to `ipv6_recvhops' pim.c:(.text+0x42cc): undefined reference to `ipv6_multicast_hops' ../../lib/libpim.a(pim.o): In function `pim_register_neighbor': pim.c:(.text+0x4b86): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_find_parent': pim.c:(.text+0x5052): undefined reference to `find_interface_local' ../../lib/libpim.a(pim.o): In function `pim_update_call_fn': pim.c:(.text+0x54bf): undefined reference to `igmp_test_membership' pim.c:(.text+0x5611): undefined reference to `igmp_test_membership' ../../lib/libpim.a(cache.o): In function `cache_update_mfc': cache.c:(.text+0x1ae): undefined reference to `mc_add_mfc' cache.c:(.text+0x1d9): undefined reference to `mc6_add_mfc' ../../lib/libpim.a(cache.o): In function `cache_control_from_kernel': cache.c:(.text+0xb47): undefined reference to `mc_del_mfc' cache.c:(.text+0xb5f): undefined reference to `mc6_del_mfc' ../../lib/libpim.a(cache.o): In function `cache_init': cache.c:(.text+0xd3d): undefined reference to `IGMP' cache.c:(.text+0xd5e): undefined reference to `IGMPv6' cache.c:(.text+0xe6b): undefined reference to `mc6_kernel_read_rt_table' ../../lib/libpim.a(cache.o): In function `cache_timer_expire': cache.c:(.text+0xfc6): undefined reference to `mc_del_mfc' cache.c:(.text+0xfda): undefined reference to `mc6_del_mfc' cache.c:(.text+0x1079): undefined reference to `mc_req_mfc' cache.c:(.text+0x10b5): undefined reference to `mc6_req_mfc' ../../lib/libpim.a(cache.o): In function `show_cache_entries': cache.c:(.text+0x11d2): undefined reference to `find_interface_byname' cache.c:(.text+0x13c3): undefined reference to `find_interface_byindex' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[3]: stopped in /data/scratch/net/mrt/work/mrt/src/programs/mrtd cd ricd; /usr/bin/make clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricd.c:12: In file included from ./ricd.h:9: ./sspec.h:9:9: warning: 'uint8_t' macro redefined [-Wmacro-redefined] #define uint8_t u_int8_t ^ /usr/include/sys/types.h:60:9: note: previous definition is here #define uint8_t __uint8_t ^ In file included from ricd.c:12: In file included from ./ricd.h:9: ./sspec.h:10:9: warning: 'uint16_t' macro redefined [-Wmacro-redefined] #define uint16_t u_int16_t ^ /usr/include/sys/types.h:70:9: note: previous definition is here #define uint16_t __uint16_t ^ In file included from ricd.c:12: In file included from ./ricd.h:9: ./sspec.h:11:9: warning: 'uint32_t' macro redefined [-Wmacro-redefined] #define uint32_t u_int32_t ^ /usr/include/sys/types.h:80:9: note: previous definition is here #define uint32_t __uint32_t ^ 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 6 warnings generated. clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from hqlip.c:5: In file included from ./ricd.h:9: ./sspec.h:9:9: warning: 'uint8_t' macro redefined [-Wmacro-redefined] #define uint8_t u_int8_t ^ /usr/include/sys/types.h:60:9: note: previous definition is here #define uint8_t __uint8_t ^ In file included from hqlip.c:5: In file included from ./ricd.h:9: ./sspec.h:10:9: warning: 'uint16_t' macro redefined [-Wmacro-redefined] #define uint16_t u_int16_t ^ /usr/include/sys/types.h:70:9: note: previous definition is here #define uint16_t __uint16_t ^ In file included from hqlip.c:5: In file included from ./ricd.h:9: ./sspec.h:11:9: warning: 'uint32_t' macro redefined [-Wmacro-redefined] #define uint32_t u_int32_t ^ /usr/include/sys/types.h:80:9: note: previous definition is here #define uint32_t __uint32_t ^ 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:653: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) ^ 29 warnings generated. clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from ricdconf.c:5: In file included from ./ricd.h:9: ./sspec.h:9:9: warning: 'uint8_t' macro redefined [-Wmacro-redefined] #define uint8_t u_int8_t ^ /usr/include/sys/types.h:60:9: note: previous definition is here #define uint8_t __uint8_t ^ In file included from ricdconf.c:5: In file included from ./ricd.h:9: ./sspec.h:10:9: warning: 'uint16_t' macro redefined [-Wmacro-redefined] #define uint16_t u_int16_t ^ /usr/include/sys/types.h:70:9: note: previous definition is here #define uint16_t __uint16_t ^ In file included from ricdconf.c:5: In file included from ./ricd.h:9: ./sspec.h:11:9: warning: 'uint32_t' macro redefined [-Wmacro-redefined] #define uint32_t u_int32_t ^ /usr/include/sys/types.h:80:9: note: previous definition is here #define uint32_t __uint32_t ^ In file included from ricdconf.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // 5 warnings generated. clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from area.c:5: In file included from ./ricd.h:9: ./sspec.h:9:9: warning: 'uint8_t' macro redefined [-Wmacro-redefined] #define uint8_t u_int8_t ^ /usr/include/sys/types.h:60:9: note: previous definition is here #define uint8_t __uint8_t ^ In file included from area.c:5: In file included from ./ricd.h:9: ./sspec.h:10:9: warning: 'uint16_t' macro redefined [-Wmacro-redefined] #define uint16_t u_int16_t ^ /usr/include/sys/types.h:70:9: note: previous definition is here #define uint16_t __uint16_t ^ In file included from area.c:5: In file included from ./ricd.h:9: ./sspec.h:11:9: warning: 'uint32_t' macro redefined [-Wmacro-redefined] #define uint32_t u_int32_t ^ /usr/include/sys/types.h:80:9: note: previous definition is here #define uint32_t __uint32_t ^ 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:51:10: warning: unused variable 'sbuf' [-Wunused-variable] char sbuf[128]; ^ 6 warnings generated. clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from srsvp.c:5: In file included from ./ricd.h:9: ./sspec.h:9:9: warning: 'uint8_t' macro redefined [-Wmacro-redefined] #define uint8_t u_int8_t ^ /usr/include/sys/types.h:60:9: note: previous definition is here #define uint8_t __uint8_t ^ In file included from srsvp.c:5: In file included from ./ricd.h:9: ./sspec.h:10:9: warning: 'uint16_t' macro redefined [-Wmacro-redefined] #define uint16_t u_int16_t ^ /usr/include/sys/types.h:70:9: note: previous definition is here #define uint16_t __uint16_t ^ In file included from srsvp.c:5: In file included from ./ricd.h:9: ./sspec.h:11:9: warning: 'uint32_t' macro redefined [-Wmacro-redefined] #define uint32_t u_int32_t ^ /usr/include/sys/types.h:80:9: note: previous definition is here #define uint32_t __uint32_t ^ 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:653: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; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80:9: note: previous definition is here #define pthread_sigmask __libc_thr_sigsetmask ^ In file included from qif.c:5: In file included from ./ricd.h:9: ./sspec.h:9:9: warning: 'uint8_t' macro redefined [-Wmacro-redefined] #define uint8_t u_int8_t ^ /usr/include/sys/types.h:60:9: note: previous definition is here #define uint8_t __uint8_t ^ In file included from qif.c:5: In file included from ./ricd.h:9: ./sspec.h:10:9: warning: 'uint16_t' macro redefined [-Wmacro-redefined] #define uint16_t u_int16_t ^ /usr/include/sys/types.h:70:9: note: previous definition is here #define uint16_t __uint16_t ^ In file included from qif.c:5: In file included from ./ricd.h:9: ./sspec.h:11:9: warning: 'uint32_t' macro redefined [-Wmacro-redefined] #define uint32_t u_int32_t ^ /usr/include/sys/types.h:80:9: note: previous definition is here #define uint32_t __uint32_t ^ In file included from qif.c:5: ./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _RICD_H_ ^ // 5 warnings generated. clang -Wl,-R/usr/pkg/lib ricd.o hqlip.o ricdconf.o area.o srsvp.o qif.o ../../lib/libcfg.a ../../lib/librib.a ../../lib/libmrt.a -o ricd -lresolv ricd.o: In function `main': ricd.c:(.text+0x2be): undefined reference to `init_interfaces' ricd.c:(.text+0x3ee): undefined reference to `kernel_init' hqlip.o: In function `hqlip_activate_interface': hqlip.c:(.text+0xd3d): undefined reference to `join_leave_group' hqlip.o: In function `hqlip_vif_udp_init': hqlip.c:(.text+0xe6a): undefined reference to `socket_open' hqlip.c:(.text+0xe80): undefined reference to `socket_reuse' hqlip.c:(.text+0xe92): undefined reference to `socket_bind_port' hqlip.c:(.text+0xea5): undefined reference to `ipv6_pktinfo' hqlip.c:(.text+0xeb1): undefined reference to `ipv6_recvhops' hqlip.c:(.text+0xebf): undefined reference to `ip_pktinfo' hqlip.c:(.text+0xecb): undefined reference to `ip_recvttl' hqlip.c:(.text+0xf1f): undefined reference to `socket_open' hqlip.c:(.text+0xf35): undefined reference to `socket_reuse' hqlip.c:(.text+0xf53): undefined reference to `join_leave_group' hqlip.c:(.text+0xf66): undefined reference to `socket_bind_port' hqlip.c:(.text+0xf79): undefined reference to `ipv6_multicast_loop' hqlip.c:(.text+0xf85): undefined reference to `ipv6_multicast_hops' hqlip.c:(.text+0xf91): undefined reference to `ipv6_pktinfo' hqlip.c:(.text+0xf9d): undefined reference to `ipv6_recvhops' hqlip.c:(.text+0xfab): undefined reference to `ip_multicast_loop' hqlip.c:(.text+0xfb7): undefined reference to `ip_multicast_hops' hqlip.c:(.text+0xfc3): undefined reference to `ip_pktinfo' hqlip.c:(.text+0xfcf): undefined reference to `ip_recvttl' hqlip.o: In function `hqlip_vif_tcp_init': hqlip.c:(.text+0x104f): undefined reference to `socket_open' hqlip.c:(.text+0x1061): undefined reference to `socket_reuse' hqlip.c:(.text+0x1073): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_send_hello': hqlip.c:(.text+0x18d9): undefined reference to `send_packet' hqlip.o: In function `hqlip_show_neighbors': hqlip.c:(.text+0x23e3): undefined reference to `find_interface_byname' hqlip.o: In function `hqlip_recv_hello': hqlip.c:(.text+0x4358): undefined reference to `recvmsgfrom' hqlip.o: In function `hqlip_register_neighbor': hqlip.c:(.text+0x49fb): undefined reference to `socket_bind_port' hqlip.o: In function `hqlip_open_accept': hqlip.c:(.text+0x8ace): undefined reference to `get_socket_addr' ricdconf.o: In function `config_ric_network_if_qos_prefix': ricdconf.c:(.text+0x1eba): undefined reference to `find_interface_byname' srsvp.o: In function `srsvp_vif_tcp_init': srsvp.c:(.text+0xbcf): undefined reference to `socket_open' srsvp.c:(.text+0xbe1): undefined reference to `socket_reuse' srsvp.c:(.text+0xbf3): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_show_neighbors': srsvp.c:(.text+0xcc3): undefined reference to `find_interface_byname' srsvp.o: In function `srsvp_keep_alive': srsvp.c:(.text+0x3a6f): undefined reference to `get_socket_addr' srsvp.o: In function `srsvp_tcp_connect': srsvp.c:(.text+0x3b40): undefined reference to `socket_bind_port' srsvp.o: In function `srsvp_open_accept': srsvp.c:(.text+0x6aa2): undefined reference to `get_socket_addr' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x2e6): undefined reference to `show_interfaces' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x67b): undefined reference to `find_interface_byname' commconf.c:(.text+0x90e): undefined reference to `find_interface' commconf.c:(.text+0x925): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0xbd4): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xe28): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x1122): undefined reference to `find_interface' commconf.c:(.text+0x113b): undefined reference to `find_interface_local' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[3]: stopped in /data/scratch/net/mrt/work/mrt/src/programs/ricd cd route_atob; /usr/bin/make clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80: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); ^~~~~ route_atob.c:743:19: note: treat the string as an argument to avoid this fprintf (stderr, usage); ^ "%s", 11 warnings generated. clang -Wl,-R/usr/pkg/lib route_atob.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_atob -lresolv cd route_btoa; /usr/bin/make clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80: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:747:19: note: treat the string as an argument to avoid this fprintf (stderr, usage); ^ "%s", route_btoa.c:754:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ route_btoa.c:754:19: note: treat the string as an argument to avoid this fprintf (stderr, usage); ^ "%s", 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. clang -Wl,-R/usr/pkg/lib route_btoa.o ../../lib/libbgp.a ../../lib/libmrt.a -o route_btoa -lresolv cd sbgp; /usr/bin/make clang -O2 -Wall -DHAVE_CONFIG_H -DINET6 -DFUNCPROTO -I../../include -DINET6 -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:80: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:277:23: note: treat the string as an argument to avoid this fprintf (stderr, usage); ^ "%s", simple_bgp.c:373:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, usage); ^~~~~ simple_bgp.c:373:19: note: treat the string as an argument to avoid this fprintf (stderr, usage); ^ "%s", 3 warnings generated. clang -Wl,-R/usr/pkg/lib simple_bgp.o ../../lib/libbgp.a ../../lib/libcfg.a ../../lib/librib.a ../../lib/libmrt.a ../../lib/libbgp.a -o sbgp -lresolv simple_bgp.o: In function `main': simple_bgp.c:(.text+0x198): undefined reference to `init_interfaces' ../../lib/libbgp.a(bgp_util.o): In function `peer_set_gateway': bgp_util.c:(.text+0x34): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x4b): undefined reference to `get_socket_addr' bgp_util.c:(.text+0x75): undefined reference to `find_interface_local' bgp_util.c:(.text+0xbd): undefined reference to `find_interface' bgp_util.c:(.text+0x13b): undefined reference to `find_interface_local' bgp_util.c:(.text+0x165): undefined reference to `find_interface_local' ../../lib/libbgp.a(bgp_util.o): In function `bgp_start_transport_connection': bgp_util.c:(.text+0x332): undefined reference to `socket_reuse' ../../lib/libbgp.a(bgp_util.o): In function `bgp_in_recv_open': bgp_util.c:(.text+0x758): undefined reference to `get_socket_addr' ../../lib/libbgp.a(bgp_util.o): In function `init_BGP_listen': bgp_util.c:(.text+0x17de): undefined reference to `socket_reuse' ../../lib/libbgp.a(view.o): In function `view_set_nexthop_self': view.c:(.text+0x187): undefined reference to `find_interface' ../../lib/libbgp.a(view.o): In function `bgp_policy': view.c:(.text+0xcfd): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `bgp_resolve_nexthop': view.c:(.text+0x4cc1): undefined reference to `find_interface' view.c:(.text+0x4cd7): undefined reference to `find_interface_local' ../../lib/libbgp.a(view.o): In function `view_add_aggregate': view.c:(.text+0x52d5): undefined reference to `find_interface' view.c:(.text+0x5301): undefined reference to `find_interface' view.c:(.text+0x534e): undefined reference to `find_interface' ../../lib/libcfg.a(commconf.o): In function `init_mrtd_config': commconf.c:(.text+0x2e6): undefined reference to `show_interfaces' ../../lib/libcfg.a(commconf.o): In function `config_ip_route': commconf.c:(.text+0x67b): undefined reference to `find_interface_byname' commconf.c:(.text+0x90e): undefined reference to `find_interface' commconf.c:(.text+0x925): undefined reference to `find_interface_local' ../../lib/libcfg.a(commconf.o): In function `config_interface': commconf.c:(.text+0xbd4): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `config_gateway': commconf.c:(.text+0xe28): undefined reference to `find_interface_byname' ../../lib/libcfg.a(commconf.o): In function `re_evaluate_static_routes': commconf.c:(.text+0x1122): undefined reference to `find_interface' commconf.c:(.text+0x113b): undefined reference to `find_interface_local' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[3]: stopped in /data/scratch/net/mrt/work/mrt/src/programs/sbgp