Re: [mpls-linux-general] Quagga Compilation failed after LDP patch
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2008-03-13 02:31:52
|
Try enabling IPv6 support or wait until the next release of quagga-mpls. On Wed, Mar 12, 2008 at 07:23:18PM +0530, Bhartendu Maheshwari wrote: > Hello All, > > I have applied the LDP patch on quagga and when I try compilation it failed. > I have follow these steps:- > > 1. Unextract ldp-portable-0.900.tar.gz, quagga-0.99.6.tar.gz. > 2. run ./configure on quagga-0.99.6 > 3. Patch quagga with ldp-portable patch(Failed to patch make-rpm-jleu). > Why is this my mistake? > 4. Change the date for configure.ac and protocol specific Makefile.in and > Makefile.am. > 5. start "make". > 6. compilation failed for zebra directory code > > > ******************************************************************************************************** > 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 > ******************************************************************************************************** > > Quagga code is working fine without ldp patch. Please let me know if > anything wrong in my steps or any further > changes are required to compile this code. Please find the details > compilation failed logs. > > Thanks & Regards > Bhartendu M. > [root@localhost zebra]# make > if gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT test_main.o -MD -MP -MF ".deps/test_main.Tpo" -c -o test_main.o test_main.c; \ > then mv -f ".deps/test_main.Tpo" ".deps/test_main.Po"; else rm -f ".deps/test_main.Tpo"; exit 1; fi > In file included from test_main.c:35: > ../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/interface.h:26, > from test_main.c:38: > ../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 > if gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT zebra_rib.o -MD -MP -MF ".deps/zebra_rib.Tpo" -c -o zebra_rib.o zebra_rib.c; \ > then mv -f ".deps/zebra_rib.Tpo" ".deps/zebra_rib.Po"; else rm -f ".deps/zebra_rib.Tpo"; exit 1; fi > In file included from zebra_rib.c:39: > ../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:40: > ../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:1273: warning: no previous prototype for ???rib_queue_add??? > zebra_rib.c:97: warning: ???vrf_free??? defined but not used > zebra_rib.c:113: warning: ???vrf_lookup_by_name??? defined but not used > zebra_rib.c:2798: warning: ???rib_if_up??? defined but not used > zebra_rib.c:2805: warning: ???rib_if_down??? defined but not used > if gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT interface.o -MD -MP -MF ".deps/interface.Tpo" -c -o interface.o interface.c; \ > then mv -f ".deps/interface.Tpo" ".deps/interface.Po"; else rm -f ".deps/interface.Tpo"; exit 1; fi > In file included from ../zebra/redistribute.h:28, > from ../zebra/interface.h:26, > from interface.c:37: > ../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/interface.h:26, > from interface.c:37: > ../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 > interface.c:884: warning: ???if_supported_family??? defined but not used > if gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT connected.o -MD -MP -MF ".deps/connected.Tpo" -c -o connected.o connected.c; \ > then mv -f ".deps/connected.Tpo" ".deps/connected.Po"; else rm -f ".deps/connected.Tpo"; exit 1; fi > In file included from connected.c:35: > ../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 connected.c:36: > ../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 > if gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT debug.o -MD -MP -MF ".deps/debug.Tpo" -c -o debug.o debug.c; \ > then mv -f ".deps/debug.Tpo" ".deps/debug.Po"; else rm -f ".deps/debug.Tpo"; exit 1; fi > if gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. -I. -I.. -I.. -I.. -I../lib -Os -fno-omit-frame-pointer -g -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT zebra_vty.o -MD -MP -MF ".deps/zebra_vty.Tpo" -c -o zebra_vty.o zebra_vty.c; \ > then mv -f ".deps/zebra_vty.Tpo" ".deps/zebra_vty.Po"; else rm -f ".deps/zebra_vty.Tpo"; exit 1; fi > In file included from zebra_vty.c:31: > ../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 > 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??? > zebra_vty.c: In function ???show_ipv6_route???: > zebra_vty.c:2694: warning: too many arguments for format > zebra_vty.c: In function ???vty_show_ipv6_route???: > zebra_vty.c:2702: error: invalid storage class for function ???show_ipv6_route_prefix_longer??? > zebra_vty.c:2702: error: ???show_ipv6_route_prefix_longer??? undeclared (first use in this function) > zebra_vty.c:2710: error: invalid storage class for function ???show_ipv6_route_prefix_longer??? > zebra_vty.c:2710: warning: no previous prototype for ???show_ipv6_route_prefix_longer??? > zebra_vty.c: In function ???show_ipv6_route_prefix_longer???: > zebra_vty.c:2736: warning: too many arguments for format > zebra_vty.c: In function ???vty_show_ipv6_route???: > zebra_vty.c:2744: error: invalid storage class for function ???show_ipv6_route_protocol??? > zebra_vty.c:2744: error: ???show_ipv6_route_protocol??? undeclared (first use in this function) > zebra_vty.c:2757: error: invalid storage class for function ???show_ipv6_route_protocol??? > zebra_vty.c:2757: warning: no previous prototype for ???show_ipv6_route_protocol??? > zebra_vty.c: In function ???show_ipv6_route_protocol???: > zebra_vty.c:2797: warning: too many arguments for format > zebra_vty.c: In function ???vty_show_ipv6_route???: > zebra_vty.c:2805: error: invalid storage class for function ???show_ipv6_route_addr??? > zebra_vty.c:2805: error: ???show_ipv6_route_addr??? undeclared (first use in this function) > zebra_vty.c:2812: error: invalid storage class for function ???show_ipv6_route_addr??? > zebra_vty.c:2812: warning: no previous prototype for ???show_ipv6_route_addr??? > zebra_vty.c:2843: error: invalid storage class for function ???show_ipv6_route_prefix??? > zebra_vty.c:2843: error: ???show_ipv6_route_prefix??? undeclared (first use in this function) > zebra_vty.c:2850: error: invalid storage class for function ???show_ipv6_route_prefix??? > zebra_vty.c:2850: warning: no previous prototype for ???show_ipv6_route_prefix??? > zebra_vty.c:2885: error: invalid storage class for function ???static_config_ipv6??? > zebra_vty.c:2885: warning: no previous prototype for ???static_config_ipv6??? > zebra_vty.c:2947: error: invalid storage class for function ???zebra_ip_config??? > zebra_vty.c:2947: warning: no previous prototype for ???zebra_ip_config??? > zebra_vty.c:2964: warning: no previous prototype for ???zebra_vty_init??? > zebra_vty.c:3091: error: expected declaration or statement at end of input > make: *** [zebra_vty.o] Error 1 > [root@localhost zebra]# > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu jl...@mi... |