=> Bootstrap dependency digest>=20010302: found digest-20190127
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:624: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:624: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:625: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:1904:2: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
        if (BIT_TEST (peer->options, BGP_PEER_TEST))
        ^
view.c:1900:5: note: previous statement is here
    if (peer->state != BGPSTATE_ESTABLISHED)
    ^
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))
                                                ^~~~
3 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:86:6: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            if (strcmp (module->name, "!") == 0)
            ^
config_file.c:82:2: note: previous statement is here
        if (arg && (module->arg != arg))
        ^
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);
                           ^~~~~~~~~~~~
4 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
        ^
1 warning 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;
        ^
5 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:620: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:626: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
        ^
rip2.c:331:6: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            if (host) {
            ^
rip2.c:327:2: note: previous statement is here
        if (rip2_sendmsgto (rip_interface, buffer, cp - buffer, 0,
        ^
2 warnings 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
New.c:251:8: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
                     (u_int)ptr, ptr_name, size, name, strerror(errno), file, line);
                     ^~~~~~~~~~
New.c:253:8: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
                     (u_int)ptr, size, strerror(errno));
                     ^~~~~~~~~~
New.c:274:8: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
                     (u_int)ptr, name, strerror(errno), file, line);
                     ^~~~~~~~~~
New.c:275:69: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
   else      fprintf(out, "Delete: Error freeing 0x%.8x. \"%s\"\n", (u_int)ptr, strerror(errno));
                                                                    ^~~~~~~~~~
4 warnings generated.
a - New.o
clang -c -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include stack.c
stack.c:202:73: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'STACK *' (aka 'struct stack *') [-Wpointer-to-int-cast]
   fprintf(out, "STACK: 0x%.8x Error in function %s. \"%s\" {%u/%u}\n", (u_int)stack, name,
                                                                        ^~~~~~~~~~~~
stack.c:229:52: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'STACK *' (aka 'struct stack *') [-Wpointer-to-int-cast]
   printf("STACK: 0x%.8x Print(0x%.8x) {%u/%u}\n", (u_int)stack, (u_int)print, (u_int)stack->top, (u_int)stack->size);
                                                   ^~~~~~~~~~~~
stack.c:229:66: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'STACK_PrintProc' (aka 'void (*)(int, long)') [-Wpointer-to-int-cast]
   printf("STACK: 0x%.8x Print(0x%.8x) {%u/%u}\n", (u_int)stack, (u_int)print, (u_int)stack->top, (u_int)stack->size);
                                                                 ^~~~~~~~~~~~
3 warnings generated.
a - stack.o
clang -c -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include array.c
array.c:284:11: warning: cast to smaller integer type 'unsigned int' from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
   while ((unsigned)tmp[0] != size-1) {
          ^~~~~~~~~~~~~~~~
array.c:285:11: warning: cast to smaller integer type 'unsigned int' from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
      if ((unsigned)tmp[p] == r) { /* AUTO-MERGE, all sub-arrays processed */
          ^~~~~~~~~~~~~~~~
array.c:287:7: warning: cast to smaller integer type 'unsigned int' from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
         r = (unsigned)tmp[q+1];
             ^~~~~~~~~~~~~~~~~~
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;
                  ^~~~~~~~~~~
6 warnings generated.
a - array.o
clang -c -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include linked_list.c
linked_list.c:2033:71: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   fprintf(out, "LINKED LIST: 0x%.8x Error in function %s: \"%s\"\n", (u_int)ll, name, LL_errlist[num]);
                                                                      ^~~~~~~~~
linked_list.c:2250:47: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   printf("LINKED LIST: 0x%.8x Printing..\n", (u_int)ll);
                                              ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:68:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PS(ll, "LL_Intrusive",     tfm(ll->attr & LL_Intrusive));\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:56:84: note: expanded from macro 'LLM_PS'
#define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:69:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PS(ll, "LL_AutoSort",      tfm(ll->attr & LL_AutoSort));\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:56:84: note: expanded from macro 'LLM_PS'
#define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:70:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PS(ll, "LL_ReportChange",  tfm(ll->attr & LL_ReportChange));\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:56:84: note: expanded from macro 'LLM_PS'
#define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:71:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PS(ll, "LL_ReportAccess",  tfm(ll->attr & LL_ReportAccess));\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:56:84: note: expanded from macro 'LLM_PS'
#define LLM_PS(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %s\n", (u_int)ll, attr, val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:72:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PD(ll, "ll->count",        ll->count);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:57:84: note: expanded from macro 'LLM_PD'
#define LLM_PD(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %d\n", (u_int)ll, attr, (u_int)val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:74:7: note: expanded from macro 'LLMacro_PrintAllAttr'
      LLM_PD(ll, "LL_NextOffset", ll->next_offset);\
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:57:84: note: expanded from macro 'LLM_PD'
#define LLM_PD(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %d\n", (u_int)ll, attr, (u_int)val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:75:7: note: expanded from macro 'LLMacro_PrintAllAttr'
      LLM_PD(ll, "LL_PrevOffset", ll->prev_offset);\
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:57:84: note: expanded from macro 'LLM_PD'
#define LLM_PD(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = %d\n", (u_int)ll, attr, (u_int)val)
                                                                                   ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:77:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PH(ll, "LL_FindFunction",    ll->find_fn);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:58:88: note: expanded from macro 'LLM_PH'
#define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val)
                                                                                       ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LL_FindProc' (aka 'int (*)(void *, void *)') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:77:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PH(ll, "LL_FindFunction",    ll->find_fn);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:58:105: note: expanded from macro 'LLM_PH'
#define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val)
                                                                                                        ^~~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:78:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PH(ll, "LL_CompareFunction", ll->comp_fn);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:58:88: note: expanded from macro 'LLM_PH'
#define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val)
                                                                                       ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LL_CompareProc' (aka 'int (*)(void *, void *)') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:78:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PH(ll, "LL_CompareFunction", ll->comp_fn);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:58:105: note: expanded from macro 'LLM_PH'
#define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val)
                                                                                                        ^~~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LINKED_LIST *' (aka 'struct _linked_list *') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:79:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PH(ll, "LL_DestroyFunction", ll->destroy_fn);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:58:88: note: expanded from macro 'LLM_PH'
#define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val)
                                                                                       ^~~~~~~~~
linked_list.c:2251:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'LL_DestroyProc' (aka 'void (*)(void *)') [-Wpointer-to-int-cast]
   LLMacro_PrintAllAttr(ll);
   ^~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:79:4: note: expanded from macro 'LLMacro_PrintAllAttr'
   LLM_PH(ll, "LL_DestroyFunction", ll->destroy_fn);\
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linked_list.c:58:105: note: expanded from macro 'LLM_PH'
#define LLM_PH(ll, attr, val) printf("LINKED LIST: 0x%.8x attribute %-18s = 0x%.8x\n", (u_int)ll, attr, (u_int)val)
                                                                                                        ^~~~~~~~~~
linked_list.c:2265:23: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
   printf("0x%.8x\n", (u_int)data);
                      ^~~~~~~~~~~
16 warnings generated.
a - linked_list.o
clang -c -O2 -Wall -DHAVE_CONFIG_H  -DINET6 -DFUNCPROTO -I../../include hash.c
hash.c:1323:70: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
   fprintf(out, "HASH TABLE: 0x%.8x Error in function %s: \"%s\"\n", (u_int)h, fn, HASH_errlist[num]);
                                                                     ^~~~~~~~
hash.c:1411:58: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
   printf("HASH TABLE: 0x%.8x attributes: %s, %s, %s\n", (u_int)h,
                                                         ^~~~~~~~
hash.c:1416:5: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
                         (u_int)h, h->size, h->resize);
                         ^~~~~~~~
hash.c:1417:67: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
   else           printf("HASH TABLE: 0x%.8x static size = %u\n", (u_int)h, h->size);
                                                                  ^~~~~~~~
hash.c:1420:7: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
             (u_int)h, h->key_offset, h->next_offset);
             ^~~~~~~~
hash.c:1423:54: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
      printf("HASH TABLE: 0x%.8x key offset = %u\n", (u_int)h, h->key_offset);
                                                     ^~~~~~~~
hash.c:1426:4: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_TABLE *' (aka 'struct _hash_table *') [-Wpointer-to-int-cast]
          (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy);
          ^~~~~~~~
hash.c:1426:14: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_HashProc' (aka 'unsigned int (*)(void *, unsigned int)') [-Wpointer-to-int-cast]
          (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy);
                    ^~~~~~~~~~~~~~
hash.c:1426:30: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_LookupProc' (aka 'int (*)(void *, void *)') [-Wpointer-to-int-cast]
          (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy);
                                    ^~~~~~~~~~~~~~~~
hash.c:1426:48: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'HASH_DestroyProc' (aka 'void (*)(void *)') [-Wpointer-to-int-cast]
          (u_int)h, (u_int)h->hash, (u_int)h->lookup, (u_int)h->destroy);
                                                      ^~~~~~~~~~~~~~~~~
hash.c:1456:57: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
   printf("%3d: 0x%.8x key = 0x%.8x = \"%s\"\n", index, (u_int)data, (u_int)key, (char *)key);
                                                        ^~~~~~~~~~~
hash.c:1456:70: warning: cast to smaller integer type 'u_int' (aka 'unsigned int') from 'DATA_PTR' (aka 'void *') [-Wvoid-pointer-to-int-cast]
   printf("%3d: 0x%.8x key = 0x%.8x = \"%s\"\n", index, (u_int)data, (u_int)key, (char *)key);
                                                                     ^~~~~~~~~~
12 warnings generated.
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
/usr/bin/ld: bgpsim.o: in function `main':
bgpsim.c:(.text+0x218): undefined reference to `init_interfaces'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config':
commconf.c:(.text+0x2cc): undefined reference to `show_interfaces'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route':
commconf.c:(.text+0x647): undefined reference to `find_interface_byname'
/usr/bin/ld: commconf.c:(.text+0x925): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x93c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_interface':
commconf.c:(.text+0xc1f): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway':
commconf.c:(.text+0xe45): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes':
commconf.c:(.text+0x1172): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x118c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_update_source':
bgpconf.c:(.text+0x2d97): undefined reference to `find_interface_local'
/usr/bin/ld: bgpconf.c:(.text+0x2e08): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_n_peer':
bgpconf.c:(.text+0x3c28): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `peer_set_gateway':
bgp_util.c:(.text+0x30): undefined reference to `get_socket_addr'
/usr/bin/ld: bgp_util.c:(.text+0x46): undefined reference to `get_socket_addr'
/usr/bin/ld: bgp_util.c:(.text+0x70): undefined reference to `find_interface_local'
/usr/bin/ld: bgp_util.c:(.text+0xb8): undefined reference to `find_interface'
/usr/bin/ld: bgp_util.c:(.text+0x134): undefined reference to `find_interface_local'
/usr/bin/ld: bgp_util.c:(.text+0x15c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_start_transport_connection':
bgp_util.c:(.text+0x325): undefined reference to `socket_reuse'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_in_recv_open':
bgp_util.c:(.text+0x747): undefined reference to `get_socket_addr'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `init_BGP_listen':
bgp_util.c:(.text+0x16f4): undefined reference to `socket_reuse'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `view_set_nexthop_self':
view.c:(.text+0x180): undefined reference to `find_interface'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `bgp_policy':
view.c:(.text+0xc26): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `bgp_resolve_nexthop':
view.c:(.text+0x485e): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4874): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `view_add_aggregate':
view.c:(.text+0x4e70): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4e9c): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4ee9): 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
/usr/bin/ld: mrtd.o: in function `main':
mrtd.c:(.text+0x383): undefined reference to `init_interfaces'
/usr/bin/ld: mrtd.c:(.text+0x3a0): undefined reference to `igmp_init'
/usr/bin/ld: mrtd.c:(.text+0x3ad): undefined reference to `igmp_init'
/usr/bin/ld: mrtd.c:(.text+0x441): undefined reference to `kernel_init'
/usr/bin/ld: mrtd.c:(.text+0x452): undefined reference to `kernel_read_rt_table'
/usr/bin/ld: mrtd.c:(.text+0x46e): undefined reference to `kernel_update_route'
/usr/bin/ld: mrtd.c:(.text+0x488): undefined reference to `add_interfaces_to_rib'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config':
commconf.c:(.text+0x2cc): undefined reference to `show_interfaces'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route':
commconf.c:(.text+0x647): undefined reference to `find_interface_byname'
/usr/bin/ld: commconf.c:(.text+0x925): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x93c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_interface':
commconf.c:(.text+0xc1f): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway':
commconf.c:(.text+0xe45): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes':
commconf.c:(.text+0x1172): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x118c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_update_source':
bgpconf.c:(.text+0x2d97): undefined reference to `find_interface_local'
/usr/bin/ld: bgpconf.c:(.text+0x2e08): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(bgpconf.o): in function `config_router_neighbor_n_peer':
bgpconf.c:(.text+0x3c28): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(ripconf.o): in function `config_distribute_list':
ripconf.c:(.text+0xd2d): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(multiconf.o): in function `config_multicast_init':
multiconf.c:(.text+0x4): undefined reference to `IGMP'
/usr/bin/ld: multiconf.c:(.text+0x2e): undefined reference to `IGMP'
/usr/bin/ld: multiconf.c:(.text+0x100): undefined reference to `IGMP'
/usr/bin/ld: multiconf.c:(.text+0x111): undefined reference to `igmp_show_group'
/usr/bin/ld: multiconf.c:(.text+0x165): undefined reference to `IGMPv6'
/usr/bin/ld: multiconf.c:(.text+0x176): undefined reference to `igmp6_show_group'
/usr/bin/ld: multiconf.c:(.text+0x1ca): undefined reference to `IGMPv6'
/usr/bin/ld: multiconf.c:(.text+0x1f7): undefined reference to `IGMPv6'
/usr/bin/ld: ../../lib/libcfg.a(multiconf.o): in function `config_interface_tunnel':
multiconf.c:(.text+0x3f4): undefined reference to `new_interface'
/usr/bin/ld: ../../lib/libcfg.a(dvmrpconf.o): in function `config_dvmrp_distribute_list':
dvmrpconf.c:(.text+0x6e2): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `peer_set_gateway':
bgp_util.c:(.text+0x30): undefined reference to `get_socket_addr'
/usr/bin/ld: bgp_util.c:(.text+0x46): undefined reference to `get_socket_addr'
/usr/bin/ld: bgp_util.c:(.text+0x70): undefined reference to `find_interface_local'
/usr/bin/ld: bgp_util.c:(.text+0xb8): undefined reference to `find_interface'
/usr/bin/ld: bgp_util.c:(.text+0x134): undefined reference to `find_interface_local'
/usr/bin/ld: bgp_util.c:(.text+0x15c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_start_transport_connection':
bgp_util.c:(.text+0x325): undefined reference to `socket_reuse'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_in_recv_open':
bgp_util.c:(.text+0x747): undefined reference to `get_socket_addr'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `init_BGP_listen':
bgp_util.c:(.text+0x16f4): undefined reference to `socket_reuse'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `view_set_nexthop_self':
view.c:(.text+0x180): undefined reference to `find_interface'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `bgp_policy':
view.c:(.text+0xc26): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `bgp_resolve_nexthop':
view.c:(.text+0x485e): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4874): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `view_add_aggregate':
view.c:(.text+0x4e70): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4e9c): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4ee9): undefined reference to `find_interface'
/usr/bin/ld: ../../lib/librip.a(rip_proto.o): in function `rip_show_routing_table':
rip_proto.c:(.text+0x23f1): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/librip.a(rip_proto.o): in function `rip_interface_recheck':
rip_proto.c:(.text+0x2835): undefined reference to `find_network'
/usr/bin/ld: rip_proto.c:(.text+0x2965): undefined reference to `find_interface_byname_all'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_process_packet_response':
rip2.c:(.text+0x160): undefined reference to `mask2len'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_process_packet_request':
rip2.c:(.text+0x35f): undefined reference to `mask2len'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_init_listen':
rip2.c:(.text+0x438): undefined reference to `socket_open'
/usr/bin/ld: rip2.c:(.text+0x44e): undefined reference to `socket_reuse'
/usr/bin/ld: rip2.c:(.text+0x45a): undefined reference to `socket_broadcast'
/usr/bin/ld: rip2.c:(.text+0x463): undefined reference to `ip_multicast_loop'
/usr/bin/ld: rip2.c:(.text+0x46f): undefined reference to `ip_recvttl'
/usr/bin/ld: rip2.c:(.text+0x47b): undefined reference to `ip_pktinfo'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_send_request':
rip2.c:(.text+0x6cf): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_interface':
rip2.c:(.text+0x7bc): undefined reference to `join_leave_group'
/usr/bin/ld: rip2.c:(.text+0x826): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_send_update':
rip2.c:(.text+0x95a): undefined reference to `len2mask'
/usr/bin/ld: rip2.c:(.text+0x9f1): undefined reference to `send_packet'
/usr/bin/ld: rip2.c:(.text+0xa57): undefined reference to `send_packet'
/usr/bin/ld: rip2.c:(.text+0xb3f): undefined reference to `send_packet'
/usr/bin/ld: rip2.c:(.text+0xb97): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/librip.a(rip2.o): in function `rip2_receive_update':
rip2.c:(.text+0xc67): undefined reference to `recvmsgfrom'
/usr/bin/ld: rip2.c:(.text+0xf63): undefined reference to `find_interface_local'
/usr/bin/ld: rip2.c:(.text+0xfb9): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/librip.a(ripng.o): in function `ripng_init_listen':
ripng.c:(.text+0x50a): undefined reference to `socket_open'
/usr/bin/ld: ripng.c:(.text+0x520): undefined reference to `socket_reuse'
/usr/bin/ld: ripng.c:(.text+0x53e): undefined reference to `socket_rcvbuf'
/usr/bin/ld: ripng.c:(.text+0x547): undefined reference to `ipv6_multicast_loop'
/usr/bin/ld: ripng.c:(.text+0x553): undefined reference to `ipv6_pktinfo'
/usr/bin/ld: ripng.c:(.text+0x55f): undefined reference to `ipv6_recvhops'
/usr/bin/ld: ripng.c:(.text+0x56b): undefined reference to `ipv6_multicast_hops'
/usr/bin/ld: ripng.c:(.text+0x577): undefined reference to `ipv6_unicast_hops'
/usr/bin/ld: ../../lib/librip.a(ripng.o): in function `ripng_send_request':
ripng.c:(.text+0x7ac): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/librip.a(ripng.o): in function `ripng_interface':
ripng.c:(.text+0x84c): undefined reference to `join_leave_group'
/usr/bin/ld: ripng.c:(.text+0x8b9): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/librip.a(ripng.o): in function `ripng_send_update':
ripng.c:(.text+0xd5b): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/librip.a(ripng.o): in function `ripng_receive_update':
ripng.c:(.text+0xe80): undefined reference to `recvmsgfrom'
/usr/bin/ld: ripng.c:(.text+0x10e1): undefined reference to `find_interface_local'
/usr/bin/ld: ripng.c:(.text+0x1193): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `recv_dvmrp':
dvmrp.c:(.text+0x169): undefined reference to `find_interface_local'
/usr/bin/ld: dvmrp.c:(.text+0x25a): undefined reference to `mask2len'
/usr/bin/ld: dvmrp.c:(.text+0x4bd): undefined reference to `IGMP'
/usr/bin/ld: dvmrp.c:(.text+0x4c5): undefined reference to `igmp_is_querier'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_send':
dvmrp.c:(.text+0x1b64): undefined reference to `IGMP'
/usr/bin/ld: dvmrp.c:(.text+0x1c0e): undefined reference to `igmp_send'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_advertise_route':
dvmrp.c:(.text+0x2104): undefined reference to `len2mask'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_init':
dvmrp.c:(.text+0x26e8): undefined reference to `IGMP'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_start':
dvmrp.c:(.text+0x2d6f): undefined reference to `IGMP'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_update_call_fn':
dvmrp.c:(.text+0x3105): undefined reference to `igmp_test_membership'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_stop':
dvmrp.c:(.text+0x3297): undefined reference to `IGMP'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_interface_recheck':
dvmrp.c:(.text+0x3435): undefined reference to `find_network'
/usr/bin/ld: dvmrp.c:(.text+0x3575): undefined reference to `find_interface_byname_all'
/usr/bin/ld: dvmrp.c:(.text+0x36b5): undefined reference to `find_interface_byname_all'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_activate_interface':
dvmrp.c:(.text+0x3d88): undefined reference to `igmp_interface'
/usr/bin/ld: dvmrp.c:(.text+0x408c): undefined reference to `IGMP'
/usr/bin/ld: dvmrp.c:(.text+0x40fc): undefined reference to `IGMP'
/usr/bin/ld: dvmrp.c:(.text+0x4113): undefined reference to `join_leave_group'
/usr/bin/ld: dvmrp.c:(.text+0x4199): undefined reference to `igmp_interface'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_show_routing_table':
dvmrp.c:(.text+0x41e3): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libpim.a(dvmrp.o): in function `dvmrp_show_neighbors':
dvmrp.c:(.text+0x4428): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_receive':
pim.c:(.text+0xdf): undefined reference to `recvmsgfrom'
/usr/bin/ld: pim.c:(.text+0x24c): undefined reference to `recvmsgfrom'
/usr/bin/ld: pim.c:(.text+0x36b): undefined reference to `inet_cksum'
/usr/bin/ld: pim.c:(.text+0x3bb): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_send':
pim.c:(.text+0x206d): undefined reference to `inet_cksum'
/usr/bin/ld: pim.c:(.text+0x2082): undefined reference to `inet_cksum'
/usr/bin/ld: pim.c:(.text+0x2228): undefined reference to `inet6_cksum'
/usr/bin/ld: pim.c:(.text+0x2234): undefined reference to `inet_cksum'
/usr/bin/ld: pim.c:(.text+0x226e): undefined reference to `send_packet'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_init':
pim.c:(.text+0x237b): undefined reference to `IGMPv6'
/usr/bin/ld: pim.c:(.text+0x2393): undefined reference to `IGMP'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_activate_interface':
pim.c:(.text+0x370d): undefined reference to `igmp_interface'
/usr/bin/ld: pim.c:(.text+0x3766): undefined reference to `socket_open'
/usr/bin/ld: pim.c:(.text+0x3778): undefined reference to `socket_reuse'
/usr/bin/ld: pim.c:(.text+0x3784): undefined reference to `socket_rcvbuf'
/usr/bin/ld: pim.c:(.text+0x3790): undefined reference to `ip_hdrincl'
/usr/bin/ld: pim.c:(.text+0x3799): undefined reference to `ip_multicast_loop'
/usr/bin/ld: pim.c:(.text+0x37a5): undefined reference to `ip_pktinfo'
/usr/bin/ld: pim.c:(.text+0x37b1): undefined reference to `ip_recvttl'
/usr/bin/ld: pim.c:(.text+0x38a1): undefined reference to `join_leave_group'
/usr/bin/ld: pim.c:(.text+0x3946): undefined reference to `igmp_interface'
/usr/bin/ld: pim.c:(.text+0x3c0a): undefined reference to `igmp_interface'
/usr/bin/ld: pim.c:(.text+0x3cd0): undefined reference to `socket_open'
/usr/bin/ld: pim.c:(.text+0x3ce2): undefined reference to `socket_reuse'
/usr/bin/ld: pim.c:(.text+0x3cee): undefined reference to `socket_rcvbuf'
/usr/bin/ld: pim.c:(.text+0x3cf7): undefined reference to `ipv6_multicast_loop'
/usr/bin/ld: pim.c:(.text+0x3d03): undefined reference to `ipv6_pktinfo'
/usr/bin/ld: pim.c:(.text+0x3d0f): undefined reference to `ipv6_recvhops'
/usr/bin/ld: pim.c:(.text+0x3d1b): undefined reference to `ipv6_multicast_hops'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_register_neighbor':
pim.c:(.text+0x4551): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_find_parent':
pim.c:(.text+0x49db): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libpim.a(pim.o): in function `pim_update_call_fn':
pim.c:(.text+0x4e31): undefined reference to `igmp_test_membership'
/usr/bin/ld: pim.c:(.text+0x4f7e): undefined reference to `igmp_test_membership'
/usr/bin/ld: ../../lib/libpim.a(cache.o): in function `cache_update_mfc':
cache.c:(.text+0x1ad): undefined reference to `mc_add_mfc'
/usr/bin/ld: cache.c:(.text+0x1dd): undefined reference to `mc6_add_mfc'
/usr/bin/ld: ../../lib/libpim.a(cache.o): in function `cache_control_from_kernel':
cache.c:(.text+0xb3b): undefined reference to `mc_del_mfc'
/usr/bin/ld: cache.c:(.text+0xb53): undefined reference to `mc6_del_mfc'
/usr/bin/ld: ../../lib/libpim.a(cache.o): in function `cache_init':
cache.c:(.text+0xd24): undefined reference to `IGMP'
/usr/bin/ld: cache.c:(.text+0xd45): undefined reference to `IGMPv6'
/usr/bin/ld: cache.c:(.text+0xe51): undefined reference to `mc6_kernel_read_rt_table'
/usr/bin/ld: ../../lib/libpim.a(cache.o): in function `cache_timer_expire':
cache.c:(.text+0xfe0): undefined reference to `mc_del_mfc'
/usr/bin/ld: cache.c:(.text+0xff4): undefined reference to `mc6_del_mfc'
/usr/bin/ld: cache.c:(.text+0x105a): undefined reference to `mc_req_mfc'
/usr/bin/ld: cache.c:(.text+0x106f): undefined reference to `mc6_req_mfc'
/usr/bin/ld: ../../lib/libpim.a(cache.o): in function `show_cache_entries':
cache.c:(.text+0x1199): undefined reference to `find_interface_byname'
/usr/bin/ld: cache.c:(.text+0x13f6): 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:
./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif _RICD_H_
       ^
       //
ricd.c:158:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
void
^
ricd.c:158:1: note: change return type to 'int'
void
^~~~
int
3 warnings generated.
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:
./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:624:74: note: passing argument to parameter here
int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                             ^
hqlip.c:2866:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL;
            ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hqlip.c:2934:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL;
            ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hqlip.c:52:1: warning: unused function 'my_area_is_center' [-Wunused-function]
my_area_is_center (my_area_t *my_area)
^
hqlip.c:448:1: warning: unused function 'list_link_qos' [-Wunused-function]
list_link_qos (hqlip_t *hqlip, my_area_t *my_area)
^
hqlip.c:790:1: warning: unused function 'hqlip_update_elink' [-Wunused-function]
hqlip_update_elink (hqlip_t *hqlip, my_area_t *my_area, hqlip_interface_t *vif)
^
26 warnings generated.
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:
./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif _RICD_H_
       ^
       //
2 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:
./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];
         ^
3 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:
./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:624:74: note: passing argument to parameter here
int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                             ^
srsvp.c:910:13: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    u_char *bind_addr = (vif->prefix)? prefix_tochar (vif->prefix): NULL;
            ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
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:
./ricd.h:164:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif _RICD_H_
       ^
       //
2 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
/usr/bin/ld: ricd.o: in function `main':
ricd.c:(.text+0x2d8): undefined reference to `init_interfaces'
/usr/bin/ld: ricd.c:(.text+0x408): undefined reference to `kernel_init'
/usr/bin/ld: hqlip.o: in function `hqlip_activate_interface':
hqlip.c:(.text+0xbdd): undefined reference to `join_leave_group'
/usr/bin/ld: hqlip.o: in function `hqlip_vif_udp_init':
hqlip.c:(.text+0xdf5): undefined reference to `socket_open'
/usr/bin/ld: hqlip.c:(.text+0xe0b): undefined reference to `socket_reuse'
/usr/bin/ld: hqlip.c:(.text+0xe1d): undefined reference to `socket_bind_port'
/usr/bin/ld: hqlip.c:(.text+0xe30): undefined reference to `ipv6_pktinfo'
/usr/bin/ld: hqlip.c:(.text+0xe3c): undefined reference to `ipv6_recvhops'
/usr/bin/ld: hqlip.c:(.text+0xe4a): undefined reference to `ip_pktinfo'
/usr/bin/ld: hqlip.c:(.text+0xe56): undefined reference to `ip_recvttl'
/usr/bin/ld: hqlip.c:(.text+0xead): undefined reference to `socket_open'
/usr/bin/ld: hqlip.c:(.text+0xebf): undefined reference to `socket_reuse'
/usr/bin/ld: hqlip.c:(.text+0xedd): undefined reference to `join_leave_group'
/usr/bin/ld: hqlip.c:(.text+0xef0): undefined reference to `socket_bind_port'
/usr/bin/ld: hqlip.c:(.text+0xf03): undefined reference to `ipv6_multicast_loop'
/usr/bin/ld: hqlip.c:(.text+0xf0f): undefined reference to `ipv6_multicast_hops'
/usr/bin/ld: hqlip.c:(.text+0xf1b): undefined reference to `ipv6_pktinfo'
/usr/bin/ld: hqlip.c:(.text+0xf27): undefined reference to `ipv6_recvhops'
/usr/bin/ld: hqlip.c:(.text+0xf3b): undefined reference to `ip_multicast_loop'
/usr/bin/ld: hqlip.c:(.text+0xf47): undefined reference to `ip_multicast_hops'
/usr/bin/ld: hqlip.c:(.text+0xf53): undefined reference to `ip_pktinfo'
/usr/bin/ld: hqlip.c:(.text+0xf5f): undefined reference to `ip_recvttl'
/usr/bin/ld: hqlip.o: in function `hqlip_vif_tcp_init':
hqlip.c:(.text+0xfea): undefined reference to `socket_open'
/usr/bin/ld: hqlip.c:(.text+0xffc): undefined reference to `socket_reuse'
/usr/bin/ld: hqlip.c:(.text+0x100e): undefined reference to `socket_bind_port'
/usr/bin/ld: hqlip.o: in function `hqlip_send_hello':
hqlip.c:(.text+0x17f4): undefined reference to `send_packet'
/usr/bin/ld: hqlip.o: in function `hqlip_show_neighbors':
hqlip.c:(.text+0x2314): undefined reference to `find_interface_byname'
/usr/bin/ld: hqlip.o: in function `hqlip_recv_hello':
hqlip.c:(.text+0x4012): undefined reference to `recvmsgfrom'
/usr/bin/ld: hqlip.o: in function `hqlip_register_neighbor':
hqlip.c:(.text+0x46ca): undefined reference to `socket_bind_port'
/usr/bin/ld: hqlip.o: in function `hqlip_open_accept':
hqlip.c:(.text+0x83a7): undefined reference to `get_socket_addr'
/usr/bin/ld: ricdconf.o: in function `config_ric_network_if_qos_prefix':
ricdconf.c:(.text+0x1c48): undefined reference to `find_interface_byname'
/usr/bin/ld: srsvp.o: in function `srsvp_vif_tcp_init':
srsvp.c:(.text+0xb3a): undefined reference to `socket_open'
/usr/bin/ld: srsvp.c:(.text+0xb4c): undefined reference to `socket_reuse'
/usr/bin/ld: srsvp.c:(.text+0xb5e): undefined reference to `socket_bind_port'
/usr/bin/ld: srsvp.o: in function `srsvp_show_neighbors':
srsvp.c:(.text+0xc40): undefined reference to `find_interface_byname'
/usr/bin/ld: srsvp.o: in function `srsvp_keep_alive':
srsvp.c:(.text+0x380c): undefined reference to `get_socket_addr'
/usr/bin/ld: srsvp.o: in function `srsvp_tcp_connect':
srsvp.c:(.text+0x38e1): undefined reference to `socket_bind_port'
/usr/bin/ld: srsvp.o: in function `srsvp_open_accept':
srsvp.c:(.text+0x6297): undefined reference to `get_socket_addr'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config':
commconf.c:(.text+0x2cc): undefined reference to `show_interfaces'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route':
commconf.c:(.text+0x647): undefined reference to `find_interface_byname'
/usr/bin/ld: commconf.c:(.text+0x925): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x93c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_interface':
commconf.c:(.text+0xc1f): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway':
commconf.c:(.text+0xe45): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes':
commconf.c:(.text+0x1172): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x118c): 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:317:6: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            bgp_deref_attr (attr);
            ^
route_atob.c:315:2: note: previous statement is here
        if (MRT->force_exit_flag)
        ^
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", 
12 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
/usr/bin/ld: simple_bgp.o: in function `main':
simple_bgp.c:(.text+0xe0): undefined reference to `init_interfaces'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `peer_set_gateway':
bgp_util.c:(.text+0x30): undefined reference to `get_socket_addr'
/usr/bin/ld: bgp_util.c:(.text+0x46): undefined reference to `get_socket_addr'
/usr/bin/ld: bgp_util.c:(.text+0x70): undefined reference to `find_interface_local'
/usr/bin/ld: bgp_util.c:(.text+0xb8): undefined reference to `find_interface'
/usr/bin/ld: bgp_util.c:(.text+0x134): undefined reference to `find_interface_local'
/usr/bin/ld: bgp_util.c:(.text+0x15c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_start_transport_connection':
bgp_util.c:(.text+0x325): undefined reference to `socket_reuse'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `bgp_in_recv_open':
bgp_util.c:(.text+0x747): undefined reference to `get_socket_addr'
/usr/bin/ld: ../../lib/libbgp.a(bgp_util.o): in function `init_BGP_listen':
bgp_util.c:(.text+0x16f4): undefined reference to `socket_reuse'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `view_set_nexthop_self':
view.c:(.text+0x180): undefined reference to `find_interface'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `bgp_policy':
view.c:(.text+0xc26): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `bgp_resolve_nexthop':
view.c:(.text+0x485e): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4874): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libbgp.a(view.o): in function `view_add_aggregate':
view.c:(.text+0x4e70): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4e9c): undefined reference to `find_interface'
/usr/bin/ld: view.c:(.text+0x4ee9): undefined reference to `find_interface'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `init_mrtd_config':
commconf.c:(.text+0x2cc): undefined reference to `show_interfaces'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_ip_route':
commconf.c:(.text+0x647): undefined reference to `find_interface_byname'
/usr/bin/ld: commconf.c:(.text+0x925): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x93c): undefined reference to `find_interface_local'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_interface':
commconf.c:(.text+0xc1f): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `config_gateway':
commconf.c:(.text+0xe45): undefined reference to `find_interface_byname'
/usr/bin/ld: ../../lib/libcfg.a(commconf.o): in function `re_evaluate_static_routes':
commconf.c:(.text+0x1172): undefined reference to `find_interface'
/usr/bin/ld: commconf.c:(.text+0x118c): 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