Re: [mpls-linux-devel] Reg:mpls-quagga and mpls-ldp-portable compilation error
Status: Beta
Brought to you by:
jleu
From: Bhartendu M. <bha...@ne...> - 2009-12-16 16:07:44
|
Hi James/MPLS-Linux-Group-Member, As there are so many problem group members are facing in compiling MPLS-Quagga and LDP, I would request James or MPLS-Linux-Group-Member to provide a stable/compilable source code(i suggest for source code but RPM also works for time been) for either Fedorra 10 or Fedorra 11(which he might be using), so that we can proceed our tasks. That will be Great help for all of us. Thanks & Regards Bhartendu M. --- On Thu, 12/10/09, Pali <pal...@gm...> wrote: > From: Pali <pal...@gm...> > Subject: Re: [mpls-linux-devel] Reg:mpls-quagga and mpls-ldp-portable compilation error > To: mp...@ne... > Cc: "Bhagwan Sahai" <bha...@gm...>, win...@fr..., mpl...@li... > Date: Thursday, December 10, 2009, 10:13 PM > Hi, will You be so patient, and publish on > web zip file with modified mpls-quagga and mpls-ldp-portable > ? I have also troubles with compilation, even with Your > directions. > > 2009/12/1 <mp...@ne...> > > Hi Bhagwan/Wind, > > > > I had tried to compile MPLS-quagga and able to compile > successfully with the following changes. The only problem > left mentioned in step #10, there is one structure field > mismatch(for the time been I commented that line), which I > am not very sure how to resolve this. > > > > > Please let me know in case of any help in compilation. > > > > Thanks & Regards > > Bhartendu M. > > > > 1. Download and extract/install the following > packages:- > > dia-0.96.1-7.fc10.i386.rpm > > > mpls-quagga-c1ff1abca7f16db0fbbb64ef07cbfefa44e03cb4.tar.gz > > > mpls-ldp-portable-60f294f3e2263031be4e7de64e57dd4b721a72d7.tar.gz > > > > 2. chmod 777 bootstrap.sh > > 3. ./bootstrap.sh > > 4. ./configure > > 5. Change variable DEFSRC in ldpd/create-links file > to ldp-portable directory and execute > "create-link" script. > > 6. Add following lines in file ldpd/mpls_mm_impl.h > at last > > enum > > { > > MTYPE_LDP_ADDR = 1, > > MTYPE_LDP_ADJ, > > MTYPE_LDP_ATTR, > > MTYPE_LDP_ENTITY, > > MTYPE_LDP_FEC, > > MTYPE_LDP_HOP, > > MTYPE_LDP_IF, > > MTYPE_LDP_IP, > > MTYPE_LDP_INLABEL, > > MTYPE_LDP_NEXTHOP, > > MTYPE_LDP_OUTLABEL, > > MTYPE_LDP_PEER, > > MTYPE_LDP_RESOURCE, > > MTYPE_LDP_SESSION, > > MTYPE_LDP_TUNNEL, > > MTYPE_LDP_BUF > > }; > > 7. Add dummy function mpls_assert to ldp.c > > void mpls_assert(const char* func, const int > line, int condition) > > { > > } > > 8. define HAVE_MPLS in the following files(at the > top after file Hash if) > > ldpd/ldp.h:#define HAVE_MPLS > 1 > > lib/zebra.h:#define HAVE_MPLS 1 > > lib/zclient.h:#define HAVE_MPLS 1 > > > > 9. Change zebra/Makefile - add mpls_ioctl.c in all > places where mpls_lib.c mentioned. > > 10. We need to comment two lines in function > "mpls_ctrl_nhlfe_register" in file mpls_ioctl.c. > There is structure mismatch, we need to correct this before > running this. > > 11. Sync functions and protypes of functions > mpls_ioctl.c and mpls_lib.h. > > mpls_kernel_init > > mpls_read > > mpls_ctrl_ilm_unregister > > mpls_ctrl_xc_unregister > > mpls_ctrl_ilm_register > > mpls_ctrl_xc_register > > mpls_ctrl_nhlfe_unregister > > mpls_ctrl_nhlfe_register > > mpls_ctrl_set_interface_labelspace > > mpls_ctrl_show_hardware > > mpls_ctrl_ftn_unregister > > mpls_ctrl_ftn_register > > > > > > 12. Change mpls_malloc and mpls_free function calls > and definition to mpls_malloc1 and mpls_free1 in > impl_lock.c, impl_mm.c, impl_socket.c, impl_timer.c files. > > 13. Include the following lines in mpls_ioctl.h > file. > > > /****************************************************************/ > > #include "include/linux/mpls.h" > > #include "lib/command.h" > > > > enum { > > SIOCMPLSNHLFEDEL = 0, > > SIOCMPLSNHLFEADD, > > NEXTHOP_TYPE_IFNAME, > > NEXTHOP_TYPE_IPV4, > > NEXTHOP_TYPE_IPV6, > > SIOCSMPLSOUTINSTR, > > SIOCMPLSILMDEL, > > SIOCMPLSILMADD, > > SIOCMPLSXCADD, > > SIOCMPLSXCDEL > > }; > > > > 14. make (in mpls-quagga directory) > > 15. make (in ldpd directory) > > > > /****************************************************************/ > > 1. For execution - Execute the following > commands:- > > chown -R quagga.quagga /var/log/ > > chown -R quagga.quagga /etc/ > > chown -R root.quagga /var/run > > chmod -R 775 /var/run/ > > 2. Please correct function structure used in > function mpls_ctrl_nhlfe_register(step 10). > > > > --- On Mon, 11/30/09, win...@fr... > <win...@fr...> > wrote: > > > > > From: win...@fr... > <win...@fr...> > > > Subject: Re: [mpls-linux-devel] Reg:mpls-quagga and > mpls-ldp-portable compilation error > > > To: "Bhagwan Sahai" <bha...@gm...> > > > Cc: mpl...@li... > > > Date: Monday, November 30, 2009, 3:12 PM > > > Hello BSahai, > > > > > > Quoting Bhagwan Sahai <bha...@gm...>: > > > > > > > Hi, > > > > Is the compilation issue resolved > > > for mpls-quagga and > > > > mpls-ldp-portable? As I am new to this list and > found > > > old mails > > > > conveying problem with the existing build. I am > also > > > facing the same > > > > compilation issues a : > > > > > > As I know not yet. > > > > > > > impl_lock.c:8:35: error: macro > "mpls_malloc" > > > requires 2 arguments, but > > > >> > only 1 given > > > >> > impl_lock.c: In function > > > ‘mpls_lock_create’: > > > >> > impl_lock.c:8: error: ‘mpls_malloc’ > > > undeclared (first use in this > > > >> function) > > > >> > impl_lock.c:8: error: (Each undeclared > > > identifier is reported only once > > > >> > impl_lock.c:8: error: for each function > it > > > appears in.) > > > >> > impl_lock.c:28:19: error: macro > "mpls_free" > > > requires 2 arguments, but > > > >> > only 1 given > > > >> > impl_lock.c: In function > > > ‘mpls_lock_delete’: > > > >> > impl_lock.c:28: error: ‘mpls_free’ > > > undeclared (first use in this > > > >> function) > > > >> > make: *** [impl_lock.o] Error 1 > > > > > > > > > > > > Though I am trying to resolve above issues but > don't > > > know wether > > > > things will work finally or not. > > > > > > Great, I am looking forward to it. > > > > > > > > > > > Regards > > > > Bsahai > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Let Crystal Reports handle the reporting - Free > > > Crystal Reports 2008 30-Day > > > > trial. Simplify your report design, integration > and > > > deployment - and focus on > > > > what you do best, core application coding. > Discover > > > what's new with > > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > > _______________________________________________ > > > > mpls-linux-devel mailing list > > > > mpl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Let Crystal Reports handle the reporting - Free > Crystal > > > Reports 2008 30-Day > > > trial. Simplify your report design, integration and > > > deployment - and focus on > > > what you do best, core application coding. Discover > what's > > > new with > > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > _______________________________________________ > > > mpls-linux-devel mailing list > > > mpl...@li... > > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > > > > > > ------------------------------------------------------------------------------ > > Join us December 9, 2009 for the Red Hat Virtual > Experience, > > a free event focused on virtualization and cloud > computing. > > Attend in-depth sessions from your desk. Your couch. > Anywhere. > > http://p.sf.net/sfu/redhat-sfdev2dev > > _______________________________________________ > > mpls-linux-devel mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > > > > -- > Ak si prajes aby som cital tvoj mail do 5 min, tak napis do > predmetu X5. > Na skype som dostupny stale, len mi daj vediet aby som sa > prihlasil. > > << 0903 48 47 40 >> mobil > > << 309458351 >> icq > << ortseamo >> skype > > |