[quagga-dev 4870] Re: Quagga OSPF and PPP Server

Andrew J. Schorr aschorr at telemetry-investments.com
Tue May 29 15:52:57 BST 2007


Hai,

On Tue, May 29, 2007 at 10:46:31AM -0400, Hai Wang (汪海) wrote:
>       I did not work due to the following errors:
> 
> 
> zebra_routemap.c: In function `route_set_src_compile':
> zebra_routemap.c:650: union has no member named `ipv6'
> make[2]: *** [zebra_routemap.o] Error 1
> make[2]: Leaving directory `/home/hwang/quagga-0.99.7/zebra'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/hwang/quagga-0.99.7'
> 
> 
> Yes, I disable IPv6, even though I got other errors when I enabled
> IPV6, the following is my MAKE configure
> 
> ./configure  --prefix=/quagga --sysconfdir=/etc --enable-user=hwang
> --enable-grou
> p=hwang

OK, attached is another patch for zebra_routemap.c.  It seems
that the zebra routemap patch did not check for HAVE_IPV6 properly.

If you run 'make -k' next time, you should be able to see all the
errors and send them at once, so we can make one big patch...

Regards,
Andy
-------------- next part --------------
Index: zebra/zebra_routemap.c
===================================================================
RCS file: /var/cvsroot/quagga/zebra/zebra_routemap.c,v
retrieving revision 1.1
diff -b -u -p -r1.1 zebra_routemap.c
--- zebra/zebra_routemap.c	4 May 2007 20:13:20 -0000	1.1
+++ zebra/zebra_routemap.c	29 May 2007 14:51:38 -0000
@@ -647,8 +647,10 @@ route_set_src_compile (const char *arg)
 
   if (inet_pton(AF_INET, arg, &src.ipv4) > 0)
     family = AF_INET;
+#ifdef HAVE_IPV6
   else if (inet_pton(AF_INET6, arg, &src.ipv6) > 0)
     family = AF_INET6;
+#endif /* HAVE_IPV6 */
   else
    return NULL;
 


More information about the Quagga-dev mailing list