Re: [mpls-linux-devel] Build errors on quagga-mpls
Status: Beta
Brought to you by:
jleu
From: Steierlein M. <st...@gm...> - 2011-01-14 08:00:11
|
Dear Hans, I encountered errors like this one and ended up using a prepatched source tree. The one on the git reposiroty has multiple issues: - like in your error message rib.h has a redefinition regarding IPV4 macros (there is a #define value with "3" and "4") - zebra.h lacks mpls structures etc. I tried to refactor it and managed to build zebra, but ospfd and ldpd failed. I suggest you download the all-in-one source tarball from http://code.google.com/p/opensource-lsr/ and try to build the provided kernel and quagga source tree. It worked like a charm (on Debian 5.0). Best regards, Márton 2011/1/14 Han Coumans <hjc...@gm...>: > Dear MPLS Linux devs, > > > To play around with the latest MPLS enabled Quagga, I attempted to build it > an ran into errors. > > The tarbal came from this gitweb address: > http://mpls-linux.git.sourceforge.net/git/gitweb.cgi?p=mpls-linux/quagga;a=shortlog;h=refs/heads/master-mpls > > Even with no 'Configure' arguments, the build halts. > > The last lines are these: > > Making all in zebra > make[2]: Entering directory `/root/quagga-mpls/quagga-8718163/zebra' > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. > -I.. > -I.. -I.. -I../lib -fPIE -g -std=gnu99 -Wall > -I/root/quagga-mpls/quagga-87181 > 63/include -Wsign-compare -Wpointer-arith -Wbad-function-cast > -Wwrite-strings -W > missing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT > main > .o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c > In file included from main.c:36: > ../zebra/rib.h:121:1: warning: "STATIC_IPV4_BLACKHOLE" redefined > ../zebra/rib.h:120:1: warning: this is the location of the previous > definition > In file included from main.c:37: > ../zebra/rib.h:287: warning: âstruct route_nodeâ declared inside parameter > list > ../zebra/rib.h:287: warning: its scope is only this definition or > declaration, w > hich is probably not what you want > main.c: In function âmainâ: > main.c:329: warning: implicit declaration of function âmpls_vty_initâ > mv -f .deps/main.Tpo .deps/main.Po > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc/\" -DMULTIPATH_NUM=1 -I. > -I.. > -I.. -I.. -I../lib -fPIE -g -std=gnu99 -Wall > -I/root/quagga-mpls/quagga-87181 > 63/include -Wsign-compare -Wpointer-arith -Wbad-function-cast > -Wwrite-strings -W > missing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual -MT > zebr > a_rib.o -MD -MP -MF .deps/zebra_rib.Tpo -c -o zebra_rib.o zebra_rib.c > In file included from zebra_rib.c:38: > ../zebra/rib.h:121:1: warning: "STATIC_IPV4_BLACKHOLE" redefined > ../zebra/rib.h:120:1: warning: this is the location of the previous > definition > zebra_rib.c:1273: warning: no previous prototype for ârib_queue_addâ > zebra_rib.c: In function âstatic_install_ipv4â: > zebra_rib.c:2051: error: duplicate case value > zebra_rib.c:2048: error: previously used here > zebra_rib.c:2078: error: duplicate case value > zebra_rib.c:2075: error: previously used here > make[2]: *** [zebra_rib.o] Error 1 > make[2]: Leaving directory `/root/quagga-mpls/quagga-8718163/zebra' > make[1]: *** [all-recursive] Error 1 > > > My environment: > > Citrix Xenserver 5.6.0 host with VM:FC8 i386 running the MPLS enabled kernel > and its devel and header package. Got it from > http://mpls-linux.sourceforge.net/fedora/8/i386/mpls/ > GCC 4.1.2 > > Using git, cloning the repo and changing to master-mpls branch, gave the > same result. > > > Did something go wrong in the merging process, or is it platform dependent? > > > Happy new year. > > > > Regards and cheers, > > > Han Coumans > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > mpls-linux-devel mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > |