Re: [mpls-linux-general] ldp_linux don't work for README.sample
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-06-19 05:10:17
|
It is looking for the kernel header file <linux/mpls.h> which is located in /usr/src/linux/include/linux. Try adding -I /usr/src/linux/include/li= nux to the CFLAGs (where /usr/src/linux is where your patched version of the kernel resides). Jim On Fri, Jun 14, 2002 at 11:17:43AM -0300, Morvan Daniel M=FCller wrote: > Hi Jim! >=20 > I try to compile zebra today 14/06/2002, 8:30am, with ldp-portable zebr= a_ldp.diff patch without successful! >=20 > # history > 1001 cd ~morvan/ > 1002 cd cvs/ > 1007 pwd > 1008 CVSROOT=3D":pserver:an...@an...:/cvsroot" > 1009 export CVSROOT > 1010 cvs login > 1011 cvs login > 1012 cvs -z3 -d:pserver:an...@an...:/cvsroot co zebra > 1013 cvs -z3 -d:pserver:ano...@cv...:/cvs= root/mpls-linux co ldp-portable > 1014 cp -pR zebra ldp-portable /usr/src > 1015 cd /usr/src/zebra/ > 1016 patch -p1 < ../ldp-portable/zebra-ldp.diff > patch.log 2>&1 > 1018 cat patch.log | more > * LAST cvs zebra version show some problems with this patch! > * I have one cvs zebra version from 25-mai-2002 that's ok for th= is patch! > 1019 cd mplsd/ > 1020 vi ./create-links=20 > * SRC=3D/usr/src/ldp-portable/lib > 1021 chmod 755 ./create-links > 1022 ./create-links=20 > 1023 cd .. > 1024 ./configure > 1025 cd mplsd/ > 1026 make all > make_1.log 2>&1 > 1027 cat make_1.log=20 >=20 > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_fib.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_ifmgr.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_lock.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_mm.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_mpls.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_policy.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_socket.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_timer.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_tree.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c in-instr.c > In file included from in-instr.c:8: > out-segment.h:4:24: linux/mpls.h: No such file or directory > In file included from in-instr.c:9: > in-segment.h:4:24: linux/mpls.h: No such file or directory > In file included from in-instr.c:10: > in-instr.h:4:24: linux/mpls.h: No such file or directory > in-instr.c:16:24: linux/mpls.h: No such file or directory > make: *** [in-instr.o] Error 1 >=20 > I TRY this bellow solution without successfull! >=20 > 1031 mkdir /usr/src/zebra/linux > 1032 cp -p /usr/src/linux/include/linux/mpls.h /usr/src/zebra/linux > 1033 make clean > 1034 make all > make_2.log 2>&1 > 1035 cat make_2.log=20 >=20 > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_fib.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_ifmgr.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_lock.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_mm.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_mpls.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_policy.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_socket.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_timer.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c impl_tree.c > gcc -DHAVE_CONFIG_H -DSYSCONFDIR=3D\"/usr/local/etc/\" -I.. -I.. -I../l= ib -g -O2 -Wall -c in-instr.c > in-instr.c: In function `do_mplsd_in_instr': > in-instr.c:102: warning: passing arg 2 of `mos2ml' from incompatible po= inter type > in-instr.c:117: `SIOCSMPLSININSTR' undeclared (first use in this functi= on) > in-instr.c:117: (Each undeclared identifier is reported only once > in-instr.c:117: for each function it appears in.) > make: *** [in-instr.o] Error 1 >=20 > Do you know what's the problem? >=20 > Cheers,=20 >=20 > Morvan. >=20 >=20 > At 11:33 11/06/2002 -0500, James R. Leu wrote: > >The problem you are seeing (LSP setup in one direction) is a know > >problem. I'm working on a fix in the zebra<->ldp-portable version > >(grab it from CVS to see the progress thus far) > > > >Jim > > > >On Tue, Jun 11, 2002 at 01:20:42AM -0300, Morvan Daniel M=FCller wrote= : > >> Hello all! > >>=20 > >> I want to make ldp-linux work for this simple testbed: > >>=20 > >> My testbed configuration is: > >> hostA LERA CORE LERB hostB > >> 10.1.0.2/24----10.1.0.1/24 10.2.1.1/24----10.2.1.= 2/24 > >> 10.1.1.2/24-----10.1.1.1/24 10.2.0.1/24----10.2.0.2/24 =20 > >>=20 > >> I'am using only host static routes to make hostA and hostB are reach= eable to each other. > >> Static Routes added at: > >> LERA: > >> route add 10.2.1.2/32 gw 10.1.0.1 > >> LERB: > >> route add 10.1.1.2/32 gw 10.2.0.1 > >> CORE: > >> route add 10.1.1.2/32 gw 10.1.0.2 > >> route add 10.2.1.2/32 gw 10.2.0.2 > >> =20 > >> For tests I use the command "traceroute" with: > >> IP_only (ip_forwarding) > >> LDP: "mpls-adm" and "ldp-linux". > >>=20 > >> I were Waiting this Results: > >> traceroute -n from hostA to host B: may show 4 hops with standard IP= , an 3 hops with LDP (mpls_adm or ldp_linux). > >>=20 > >> For IP (ip_forwarding only) it's ok - 4 hops. > >> For LDP using "mpls_adm" it's ok - 3 hops > >> For LDP using "ldp_linux" IT NEVER WORK!!!!!!!!!!=20 > >> =20 > >> I see that "ldp_linux" only create the LSP for one direction (from A= to B)! > >> Like documentation "ldp_linux" create LSPs basead on the L3 informat= ion (so, static routes created above should result in LSPs created in two= directions)! > >>=20 > >> I follow README.sample commands, but for the sample environment it t= oo don't work!=20 > >>=20 > >> If some one in this mailing list had sucessfull configured "ldp_linu= x" in such environment > >> or like README.sample and the LSPs are dinamically create for two di= rections, please let me know! > >>=20 > >> Morvan. > >>=20 > >> _______________________________________________________________ > >>=20 > >> Don't miss the 2002 Sprint PCS Application Developer's Conference > >> August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cf= m?source=3Dosdntextlink > >>=20 > >> _______________________________________________ > >> mpls-linux-general mailing list > >> mpl...@li... > >> https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > > >--=20 > >James R. Leu > > --=20 James R. Leu |