Re: [mpls-linux-general] Mpls-linux-1.170 installation problems
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2002-10-30 12:59:13
|
What version of the kernel are you trying to patch? On Wed, Oct 30, 2002 at 05:27:30PM +0530, Amritpal Singh wrote: > Hi All > > I am trying to upgrade the MPLS version running in my small setup from 1.0 to 1.170(latest) > > But Iam facing problems when I try to patch the kernel with the latest patch. > > Here is the log of the error I get when I issue the command patch -p1 < ../mpls-linux-1.1/patches/linux-kernel.diff > > [root@Terminus linux]# patch -p1 < ../mpls-linux-1.1/patches/linux-kernel.diff > > patching file drivers/net/ppp_generic.c > > Hunk #1 succeeded at 55 (offset -2 lines). > > Hunk #2 succeeded at 257 (offset -25 lines). > > Hunk #3 succeeded at 294 (offset -2 lines). > > Hunk #4 succeeded at 289 (offset -25 lines). > > Hunk #5 succeeded at 326 (offset -2 lines). > > patching file include/linux/if_arp.h > > Hunk #1 FAILED at 83. > > 1 out of 1 hunk FAILED -- saving rejects to file include/linux/if_arp.h.rej > > patching file include/linux/if_ether.h > > Hunk #1 succeeded at 60 (offset -1 lines). > > patching file include/linux/mpls.h > > patching file include/linux/netdevice.h > > Hunk #1 succeeded at 317 (offset -12 lines). > > patching file include/linux/netfilter_ipv4/ipt_MPLS.h > > patching file include/linux/ppp_defs.h > > patching file include/linux/rtnetlink.h > > patching file include/net/dst.h > > patching file include/net/ip.h > > patching file include/net/ip_fib.h > > patching file include/net/mpls.h > > patching file net/Config.in > > Hunk #1 succeeded at 75 with fuzz 1 (offset -6 lines). > > patching file net/Makefile > > patching file net/core/dst.c > > patching file net/core/neighbour.c > > Hunk #1 succeeded at 963 (offset 11 lines). > > patching file net/ipv4/af_inet.c > > Hunk #1 succeeded at 116 with fuzz 2. > > Hunk #2 succeeded at 928 (offset -8 lines). > > patching file net/ipv4/fib_semantics.c > > Hunk #1 succeeded at 148 (offset -2 lines). > > Hunk #2 succeeded at 238 (offset -1 lines). > > Hunk #3 succeeded at 474 (offset -10 lines). > > Hunk #4 succeeded at 500 (offset -1 lines). > > Hunk #5 succeeded at 680 (offset -8 lines). > > Hunk #6 succeeded at 707 (offset -1 lines). > > patching file net/ipv4/ip_output.c > > Hunk #1 succeeded at 112 (offset -1 lines). > > patching file net/ipv4/netfilter/Config.in > > Hunk #1 succeeded at 59 with fuzz 1 (offset -15 lines). > > patching file net/ipv4/netfilter/Makefile > > Hunk #1 succeeded at 61 with fuzz 1 (offset -7 lines). > > patching file net/ipv4/netfilter/ipt_MPLS.c > > patching file net/ipv4/route.c > > Hunk #2 succeeded at 1201 (offset -10 lines). > > Hunk #4 succeeded at 2064 (offset -7 lines). > > Hunk #6 succeeded at 2158 (offset -7 lines). > > patching file net/mpls/Makefile > > patching file net/mpls/mpls_if.c > > patching file net/mpls/mpls_in_info.c > > patching file net/mpls/mpls_init.c > > patching file net/mpls/mpls_input.c > > patching file net/mpls/mpls_ioctls.c > > patching file net/mpls/mpls_opcode.c > > patching file net/mpls/mpls_out_info.c > > patching file net/mpls/mpls_output.c > > patching file net/mpls/mpls_proc.c > > patching file net/mpls/mpls_ref.c > > patching file net/mpls/mpls_tunnel.c > > patching file net/mpls/mpls_utils.c > > patching file net/netsyms.c > > "Hunk #1 FAILED at 577. > > 1 out of 1 hunk FAILED -- saving rejects to file net/netsyms.c.rej" > > [root@Terminus linux]# > > > > And when I went ahead and did a make bzImage(having done make dep and make clean) , I got the following error. > > > > rict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o igmp.o igmp.c > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o sysctl_net_ipv4.o sysctl_net_ipv4.c > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o fib_frontend.o fib_frontend.c > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o fib_semantics.o fib_semantics.c > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o fib_hash.o fib_hash.c > > rm -f ipv4.o > > ld -m elf_i386 -r -o ipv4.o utils.o route.o inetpeer.o proc.o protocol.o ip_input.o ip_fragment.o ip_forward.o ip_options.o ip_output.o ip_sockglue.o tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o tcp_minisocks.o raw.o udp.o arp.o icmp.o devinet.o af_inet.o igmp.o sysctl_net_ipv4.o fib_frontend.o fib_semantics.o fib_hash.o > > make[3]: Leaving directory `/usr/src/linux/net/ipv4' > > make[2]: Leaving directory `/usr/src/linux/net/ipv4' > > make -C ipv4/netfilter > > make[2]: Entering directory `/usr/src/linux/net/ipv4/netfilter' > > make all_targets > > make[3]: Entering directory `/usr/src/linux/net/ipv4/netfilter' > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c ip_tables.c > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o iptable_mangle.o iptable_mangle.cgcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o ipt_MPLS.o ipt_MPLS.c > > ipt_MPLS.c: In function `target': > > ipt_MPLS.c:20: warning: unused variable `i' > > ipt_MPLS.c: At top level: > > "ipt_MPLS.c:70: parse error before string constant > > ipt_MPLS.c:70: warning: type defaults to `int' in declaration of `MODULE_LICENSE' > > ipt_MPLS.c:70: warning: function declaration isn't a prototype > > ipt_MPLS.c:70: warning: data definition has no type or storage class > > make[3]: *** [ipt_MPLS.o] Error 1" > > make[3]: Leaving directory `/usr/src/linux/net/ipv4/netfilter' > > make[2]: *** [first_rule] Error 2 > > make[2]: Leaving directory `/usr/src/linux/net/ipv4/netfilter' > > make[1]: *** [_subdir_ipv4/netfilter] Error 2 > > make[1]: Leaving directory `/usr/src/linux/net' > > make: *** [_dir_net] Error 2 > > [root@Terminus linux]# > > > > Is this a known problem with the patch or a misconfiguration at my end ? > > I didnt see any problem when I applied the mpls-linux-1.0 patch 2-3 months back. > > > > Please help > > Amrit > > -------------------------------- > -- James R. Leu |