[mpls-linux-general] Quagga 0.96.4 compilation problem
Status: Beta
Brought to you by:
jleu
|
From: Massimo M. <ma...@ne...> - 2004-09-27 08:07:14
|
Hi all. I have patched Quagga 0.96.4 with ldp-portable diff, then I run the "create-links" script after changing path information to fit my environment, everything went well so I started compiling the sources. I used the following option in configure: --prefix=/usr --sysconfdir=/etc --enable-vtysh --enable-tcp-zebra --enable-nssa --enable-opaque-lsa --enable-ldp --enable-ospf-te Then I "make" the files but I received these error messages: root@mpls-pe:/lib/ftp/MPLS/quagga-0.96.4# make make all-recursive make[1]: Entering directory `/lib/ftp/MPLS/quagga-0.96.4' Making all in lib make[2]: Entering directory `/lib/ftp/MPLS/quagga-0.96.4/lib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/lib/ftp/MPLS/quagga-0.96.4/lib' Making all in zebra make[2]: Entering directory `/lib/ftp/MPLS/quagga-0.96.4/zebra' gcc -g -O2 -Wall -o zebra zserv.o main.o interface.o connected.o ioctl.o zebra_rib.o redistribute.odebug.o rtadv.o zebra_snmp.o zebra_vty.o ../lib/libzebra.a ipforward_proc.o if_netlink.o if_proc.o rt_netlink.o rtread_netlink.o -lcap -lm -lcrypt -lreadline -lreadline -lncurses zserv.o(.text+0xa16): In function `zsend_mpls_xc_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:551: undefined reference to `mpls_xc_stream_write' zserv.o(.text+0xa56): In function `zsend_mpls_xc_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:563: undefined reference to `mpls_xc_stream_write' zserv.o(.text+0xac5): In function `zsend_mpls_in_segment_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:583: undefined reference to `mpls_in_segment_stream_write' zserv.o(.text+0xb35): In function `zsend_mpls_in_segment_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:603: undefined reference to `mpls_in_segment_stream_write' zserv.o(.text+0xbdc): In function `zsend_mpls_out_segment_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:645: undefined reference to `mpls_out_segment_stream_write' zserv.o(.text+0xcec): In function `zsend_mpls_out_segment_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:687: undefined reference to `mpls_out_segment_stream_write' zserv.o(.text+0xd9c): In function `zsend_mpls_labelspace_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:700: undefined reference to `mpls_labelspace_stream_write' zserv.o(.text+0xddc): In function `zsend_mpls_labelspace_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:713: undefined reference to `mpls_labelspace_stream_write' zserv.o(.text+0x2054): In function `zread_router_id_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1636: undefined reference to `router_id_get' zserv.o(.text+0x2092): In function `zread_mpls_xc_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1652: undefined reference to `mpls_xc_stream_read' zserv.o(.text+0x20b2): In function `zread_mpls_xc_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1659: undefined reference to `mpls_xc_stream_read' zserv.o(.text+0x20d2): In function `zread_mpls_in_segment_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1668: undefined reference to `mpls_in_segment_stream_read' zserv.o(.text+0x2109):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1677: undefined reference to `mpls_in_segment_register' zserv.o(.text+0x2122): In function `zread_mpls_in_segment_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1686: undefined reference to `mpls_in_segment_stream_read' zserv.o(.text+0x2159):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1694: undefined reference to `mpls_in_segment_unregister' zserv.o(.text+0x2175): In function `zread_mpls_out_segment_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1703: undefined reference to `mpls_out_segment_stream_read' zserv.o(.text+0x21f3):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1734: undefined reference to `mpls_out_segment_register' zserv.o(.text+0x2226):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1734: undefined reference to `mpls_out_segment_register' zserv.o(.text+0x2295): In function `zread_mpls_out_segment_delete': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1743: undefined reference to `mpls_out_segment_stream_read' zserv.o(.text+0x2313):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1773: undefined reference to `mpls_out_segment_unregister' zserv.o(.text+0x2346):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1773: undefined reference to `mpls_out_segment_unregister' zserv.o(.text+0x23be): In function `zread_mpls_labelspace_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1791: undefined reference to `mpls_labelspace_is_registered' zserv.o(.text+0x23e1):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1797: undefined reference to `mpls_in_segment_list' zserv.o(.text+0x23ff):/lib/ftp/MPLS/quagga-0.96.4/zebra/zserv.c:1804: undefined reference to `mpls_out_segment_list' main.o(.text+0x299): In function `main': /lib/ftp/MPLS/quagga-0.96.4/zebra/main.c:302: undefined reference to `router_id_init' interface.o(.text+0x1b59): In function `mpls_labelspace': /lib/ftp/MPLS/quagga-0.96.4/zebra/interface.c:1336: undefined reference to `mpls_ctrl_set_interface_labelspace' interface.o(.text+0x1b8b): In function `no_mpls_labelspace': /lib/ftp/MPLS/quagga-0.96.4/zebra/interface.c:1352: undefined reference to `mpls_ctrl_set_interface_labelspace' zebra_rib.o(.text+0x46e): In function `nexthop_mpls_add': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_rib.c:286: undefined reference to `mpls_out_segment_find' redistribute.o(.text+0x6c0): In function `zebra_interface_address_add_update': /lib/ftp/MPLS/quagga-0.96.4/zebra/redistribute.c:384: undefined reference to `router_id_add_address' redistribute.o(.text+0x780): In function `zebra_interface_address_delete_update': /lib/ftp/MPLS/quagga-0.96.4/zebra/redistribute.c:410: undefined reference to `router_id_del_address' zebra_vty.o(.text+0x77f): In function `zebra_static_ipv4_mpls': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:545: undefined reference to `nhlfe_parse' zebra_vty.o(.text+0x7a5):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:549: undefined reference to `mpls_out_segment_find_index_by_nhlfe' zebra_vty.o(.text+0x81c):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:560: undefined reference to `mpls_out_segment_register' zebra_vty.o(.text+0x887):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:574: undefined reference to `mpls_out_segment_unregister_by_index' zebra_vty.o(.text+0x89d):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:580: undefined reference to `mpls_out_segment_unregister_by_index' zebra_vty.o(.text+0xd0c): In function `vty_show_ip_route_detail': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:950: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0xd30):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:953: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0xfe2):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:985: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x1002):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:988: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x10fa): In function `vty_show_ip_route': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1055: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x111e):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1058: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x1460):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1090: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x1480):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1093: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x1eb2): In function `static_config_ipv4': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1469: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x1eda):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1473: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x2695): In function `vty_show_ipv6_route_detail': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1903: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x26b9):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1906: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x28ba):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1940: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x28de):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:1943: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x2bbd): In function `vty_show_ipv6_route': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2016: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x2be1):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2019: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x2da0):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2053: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x2dc4):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2056: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x34df): In function `static_config_ipv6': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2342: undefined reference to `mpls_out_segment_find' zebra_vty.o(.text+0x350d):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2346: undefined reference to `mpls_out_segment_config_write' zebra_vty.o(.text+0x363f): In function `static_ipv6_func_mpls': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2382: undefined reference to `nhlfe_parse' zebra_vty.o(.text+0x3665):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2386: undefined reference to `mpls_out_segment_find_index_by_nhlfe' zebra_vty.o(.text+0x36a7):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2396: undefined reference to `mpls_out_segment_register' zebra_vty.o(.text+0x3708):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2410: undefined reference to `mpls_out_segment_unregister_by_index' zebra_vty.o(.text+0x371b):/lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2416: undefined reference to `mpls_out_segment_unregister_by_index' zebra_vty.o(.text+0x3dad): In function `zebra_vty_init': /lib/ftp/MPLS/quagga-0.96.4/zebra/zebra_vty.c:2689: undefined reference to `mpls_vty_init' collect2: ld returned 1 exit status make[2]: *** [zebra] Error 1 make[2]: Leaving directory `/lib/ftp/MPLS/quagga-0.96.4/zebra' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/lib/ftp/MPLS/quagga-0.96.4' make: *** [all] Error 2 I am an absolute beginner in C Programming, maybe I am wrong, but it looks to me that the object files were created correctly, but when the linker had to put them togheter, it couldn't find some header or function declarations. I checked and I found out that these definitions are in mpls_vty.h file, which is, I think, correctly in place (the same directory of the zebra daemon sources). Has anyone already seen this problem? I am using a Slackware 10.0 with gcc 3.4.0 and binutils 2.15.90.0.3 (the ones that came with the distro). Thank you in advance! Massimo Magnani |