Re: [mpls-linux-general] problem compiling mpls-linux-1.170
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-09-14 23:21:36
|
You will need to hand patch the contents from net/netsysms.c.rej into net/netsysms.c Of course you could always just get 2.4.19 and it will patch clean. Jim On Sat, Sep 14, 2002 at 09:51:38AM +0000, Sunny Emmanuel wrote: > > Dear James, > > When i patch the kernel (linux-2.4.13) with: > linux]# patch -p1 < ../mpls-linux-1.1/patches/linux-kernel.diff > i get some statements like: > > Hunk #4 succeded at 2062 (offset -9 lines). > Hunk #4 succeded at 2062 (offset -9 lines). > patching file net/mpls/Makefile > ...... > patching file net/mpls/Makefile > Hunk #1 FAILED at 577 > 1 out of 1 Hunk FAILED -- saving rejects to file 'net/netsyms.c.rej' > > Can u kindly tell me wht these last 2 lines mean. Is the patch applied > correctly or not. > > > Further, when i compile the kernel i get the following errors: > > Linux]# make bzImage > mpls_input.c:27:27:linux/if_vlan.h: No such file or directory > mpls_input.c:In function 'mpls_dlv': > mpls_input.c:48:'ETH_P_8021Q' undeclared(first use in this function) > mpls_input.c:48:(Each undeclared identifier is reported only once > mpls_input.c:48:for each function it appears in.) > mpls_input.c:48:case label does not reduce to an integer constant > make[3]:***[mpls_input.o]Error 1 > make[3]:Leaving directory '/usr/src/linux/net/mpls' > make[2]:***[first_rule]Error 2 > make[2]:Leaving directory '/usr/src/linux/net/mpls' > make[1]:***[_subdir_mpls]Error 2 > make[1]:Leaving directory '/usr/src/linux/net/mpls' > make:***[_dir_net]Error 2 I guess the VLAN code wasn't added to the 2.4 kernel until after 2.4.13. I think the easiest thing for you to do is get the 2.4.19 kernel source and patch that. Jim -- James R. Leu |