Re: [mpls-linux-general] kernel compile error
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-02-12 15:43:55
|
The patch for mpls-linux-1.0 is again linux kernel 2.4.13. Patching a 2.4.5 kernel may not work (as you're seeing). I'm copying instructions from the 'mini-howto' which was posted to the list. Although the mini-howto is for mpls-linux-1.1xx the kernel patching part is the same. MPLS Installation Guide Status MPLS for Linux comes as third-party addition. It means that fresh mainstream kernel does know nothing about MPLS protocol. To add MPLS support your need 1. patch your kernel 2. get and compile userland configuration utilities Note: MPLS is beta software! Compile Instruction 1. Change system headers cd /usr/include mv linux linux.old mv asm asm.old ln -s /usr/src/linux/include/linux linux ln -s /usr/src/linux/include/asm asm cd /usr/src rm linux 2. Get mpls-linux from SorceForge 3. Download kernel v2.4.13 to /usr/src. You can get it from http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.13.tar.gz or nearest mirror cd /usr/src tar zxvf linux-2.4.13.tar.gz mv linux linux-2.4.13 ln -s linux-2.4.13 linux cd linux patch -p1 < /root/mpls-linux/patches/linux-mpls.diff make menuconfig under "Code maturity level options" turn on "Prompt for development and/or incomplete code/drivers" under "Networking Options" turn on "Kernel/User netlink socket" turn on " Routing messages" turn on "Multi-Protocol Label Switching" (do other kernel configuration) Then read QUICK.START utils/README.example for more info. Jim On Tue, Feb 12, 2002 at 07:22:03AM -0800, blue caddy wrote: > Hello, I'm trying to build a 2.4.5 linux kernel with > the mpls patch (1.0) applied. But I ran into the > following error. Can you help me out? > > make[3]: Entering directory > `/usr/src/linux-2.4.5/net/mpls' > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_if.o mpls_if.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_in_info.o mpls_in_info.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_init.o mpls_init.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_input.o mpls_input.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_ioctls.o mpls_ioctls.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_netlink.o mpls_netlink.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_opcode.o mpls_opcode.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_out_info.o mpls_out_info.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_output.o mpls_output.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_proc.o mpls_proc.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_ref.o mpls_ref.c > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_utils.o mpls_utils.c > mpls_utils.c: In function `mpls_instruction_build': > mpls_utils.c:136: warning: assignment makes integer > from pointer without a cast > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall > -Wstrict-prototypes -O2 -f > omit-frame-pointer -fno-strict-aliasing -pipe > -mpreferred-stack-boundary=2 -marc > h=i586 -c -o mpls_tunnel.o mpls_tunnel.c > mpls_tunnel.c: In function `mpls_tunnel_init_gen': > mpls_tunnel.c:253: `ARPHRD_MPLS_TUNNEL' undeclared > (first use in this function) > mpls_tunnel.c:253: (Each undeclared identifier is > reported only once > mpls_tunnel.c:253: for each function it appears in.) > make[3]: *** [mpls_tunnel.o] Error 1 > make[3]: Leaving directory > `/usr/src/linux-2.4.5/net/mpls' > make[2]: *** [first_rule] Error 2 > make[2]: Leaving directory > `/usr/src/linux-2.4.5/net/mpls' > make[1]: *** [_subdir_mpls] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.4.5/net' > make: *** [_dir_net] Error 2 > > __________________________________________________ > Do You Yahoo!? > Send FREE Valentine eCards with Yahoo! Greetings! > http://greetings.yahoo.com > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |