[quagga-users 9442] Re: Quagga Compilation failed after LDP patch

James R. Leu jleu at mindspring.com
Wed Mar 12 21:30:24 GMT 2008


It is not appropriate to ask mpls-linux related questions on the
quagga mailing list.  Please keep your questions on the
mpls-linux-general list.

On Wed, Mar 12, 2008 at 07:39:22PM +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.
> 
>  
> 
> 
> Conexant E-mail Firewall (Conexant.Com) made the following annotations
> ---------------------------------------------------------------------
> ********************** Legal Disclaimer **************************** 
> 
> "This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message in error, please advise the sender by reply email and delete the message. Thank you." 
> 
> ********************************************************************** 
> 
> ---------------------------------------------------------------------
> 

Content-Description: zebra_compilation_failed.txt
> [root at 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 at localhost zebra]# 
> 
> 

> _______________________________________________
> Quagga-users mailing list
> Quagga-users at lists.quagga.net
> http://lists.quagga.net/mailman/listinfo/quagga-users


-- 
James R. Leu
jleu at mindspring.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.quagga.net/pipermail/quagga-users/attachments/20080312/33f15536/attachment.bin


More information about the Quagga-users mailing list