On Wed, 04 Nov 2015 03:27:35 -0800
"Martin Winter" <[email protected]> wrote:

> This seems to fail compiling on FreeBSD 8/9/10 and NetBSD 6/7
> (works on Ubuntu & CentOS)
> 
> FreeBSD 10:
> 
>    CC       rt_socket.o
> rt_socket.c:370:11: error: use of undeclared identifier 'RTM_DEL'
>      cmd = RTM_DEL;
>            ^
> rt_socket.c:386:15: warning: implicit declaration of function 
> 'kernel_rtm_ipv6' is invalid in C99 [-Wimplicit-function-declaration]
>        route = kernel_rtm_ipv6 (cmd, p, rib, AF_INET6);
>                ^
> 1 warning and 1 error generated.
> 
> 
> FreeBSD 8 & 9, NetBSD 6:
> 
>    CC       rt_socket.o
> rt_socket.c: In function 'kernel_route_rib':
> rt_socket.c:370: error: 'RTM_DEL' undeclared (first use in this 
> function)
> rt_socket.c:370: error: (Each undeclared identifier is reported only 
> once
> rt_socket.c:370: error: for each function it appears in.)
> rt_socket.c:386: warning: implicit declaration of function 
> 'kernel_rtm_ipv6'
> *** [rt_socket.o] Error code 1
> 
> 
> NetBSD 7:
>    CC       rt_socket.o
> rt_socket.c: In function 'kernel_rtm_ipv6_multipath':
> rt_socket.c:254:7: warning: variable 'error' set but not used 
> [-Wunused-but-set-variable]
>     int error;
>         ^
> rt_socket.c: In function 'kernel_route_rib':
> rt_socket.c:370:11: error: 'RTM_DEL' undeclared (first use in this 
> function)
>       cmd = RTM_DEL;
>             ^
> rt_socket.c:370:11: note: each undeclared identifier is reported only 
> once for each function it appears in
> rt_socket.c:386:7: warning: implicit declaration of function 
> 'kernel_rtm_ipv6' [-Wimplicit-function-declaration]
>         route = kernel_rtm_ipv6 (cmd, p, rib, AF_INET6);
>         ^
> rt_socket.c: At top level:
> rt_socket.c:244:1: warning: 'kernel_rtm_ipv6_multipath' defined but
> not used [-Wunused-function]
>   kernel_rtm_ipv6_multipath (int cmd, struct prefix *p, struct rib
> *rib, ^
> *** Error code 1

Thanks you. I've fixed the errors and will resend the patch.

_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to