Re: [mpls-linux-general] Queations about compiling LDP for Quagga 0.99.6
Status: Beta
Brought to you by:
jleu
From: Nguyen A. D. <se...@gm...> - 2008-07-26 08:52:12
|
I tried this option but get error when make: In file included from zebra_rib.c:38: ../zebra/zserv.h:114: warning: ‘struct zmpls_xc’ declared inside parameter list ../zebra/zserv.h:114: warning: its scope is only this definition or declaration, which is probably not what you want ../zebra/zserv.h:117: warning: ‘struct zmpls_xc’ declared inside parameter list ../zebra/zserv.h:120: warning: ‘struct zmpls_in_segment’ declared inside parameter list ../zebra/zserv.h:123: warning: ‘struct zmpls_in_segment’ declared inside parameter list ../zebra/zserv.h:126: warning: ‘struct zmpls_out_segment’ declared inside parameter list ../zebra/zserv.h:129: warning: ‘struct zmpls_out_segment’ declared inside parameter list ../zebra/zserv.h:138: warning: ‘struct zmpls_ftn’ declared inside parameter list ../zebra/zserv.h:141: warning: ‘struct zmpls_ftn’ declared inside parameter list In file included from zebra_rib.c:39: ../zebra/redistribute.h:49: warning: ‘struct zmpls_xc’ declared inside parameter list ../zebra/redistribute.h:50: warning: ‘struct zmpls_xc’ declared inside parameter list ../zebra/redistribute.h:51: warning: ‘struct zmpls_ftn’ declared inside parameter list ../zebra/redistribute.h:52: warning: ‘struct zmpls_ftn’ declared inside parameter list ../zebra/redistribute.h:53: warning: ‘struct zmpls_in_segment’ declared inside parameter list ../zebra/redistribute.h:54: warning: ‘struct zmpls_in_segment’ declared inside parameter list ../zebra/redistribute.h:55: warning: ‘struct zmpls_out_segment’ declared inside parameter list ../zebra/redistribute.h:56: warning: ‘struct zmpls_out_segment’ declared inside parameter list zebra_rib.c: In function ‘nexthop_match’: zebra_rib.c:201: error: ‘union <anonymous>’ has no member named ‘ipv6’ zebra_rib.c:201: error: ‘union <anonymous>’ has no member named ‘ipv6’ zebra_rib.c: At top level: zebra_rib.c:1272: warning: no previous prototype for ‘rib_queue_add’ make[2]: *** [zebra_rib.o] Error 1 make[2]: Leaving directory `/usr/src/quagga-0.99.6/zebra' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/quagga-0.99.6' make: *** [all] Error 2 I think there is an error with the patch of ldp-portable. Regards, Dzung. From: Adrian Popa [mailto:adr...@gm...] Sent: Friday, July 25, 2008 2:10 PM To: Nguyen Anh Dung Cc: mpl...@li...; mpl...@li... Subject: Re: [mpls-linux-general] Queations about compiling LDP for Quagga 0.99.6 Hello, Try compiling quagga with --disable-ipv6 (or something similar). See ./configure --help for more details. On Mon, Jul 21, 2008 at 7:36 AM, Nguyen Anh Dung <se...@gm...> wrote: Hi All, Sorry if this letter is not on the right mailing list. I'm trying to get ldp-portable 0.900 work with quagga 0.99.6 (I use this version because it's recommended with ldp-portable 0.900, just see the readme) so that I can test LDP on MPLS network. I do the following steps. 1. Compile quagga on Fedora Core 7 (my development system) There is an error of reference to type of '__x64' so that I make a change in /usr/src/include/asm/types.h I change #if defined(__GNUC__) && !defined(__STRICT_ANSI__) typedef __signed__ long long __s64; typedef unsigned long long __u64; #endif to #if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99) typedef __signed__ long long __s64; typedef unsigned long long __u64; #endif After that quagga 0.99.6 is compiled OK. 2. Patch quagga using quagga-mpls.diff quagga-0.99.6> patch p1 < /usr/src/ldp-portable.quagga-mpls.diff After that I the date for configure.ac, Makefile.in, and Makefile.am 3. Then I compile (e.g. make) quagga again and get the following error … zebra_vty.c: In function "do_zebra_static_ipv4": zebra_vty.c:131: warning: cast discards qualifiers from pointer target type zebra_vty.c: At top level: zebra_vty.c:148: warning: no previous prototype for "zebra_static_ipv4" zebra_vty.c: In function "vty_show_ipv6_route": zebra_vty.c:2672: error: invalid storage class for function ‘show_ipv6_route" zebra_vty.c:2672: error: "show_ipv6_route" undeclared (first use in this function) zebra_vty.c:2672: error: (Each undeclared identifier is reported only once zebra_vty.c:2672: error: for each function it appears in.) zebra_vty.c:2678: error: invalid storage class for function "show_ipv6_route" zebra_vty.c:2678: warning: no previous prototype for "show_ipv6_route" … There are much more errors but I just put the first one. One man has the same error but no response, you can see it at: http://lists.quagga.net/pipermail/quagga-users/2008-March/009443.html Did anyone face this problem please give me a hand. Thanks a lot! Dzung. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100 <http://moblin-contest.org/redirect.php?banner_id=100&url=/> &url=/ _______________________________________________ mpls-linux-general mailing list mpl...@li... https://lists.sourceforge.net/lists/listinfo/mpls-linux-general |