Re: [mpls-linux-general] Problems Patching zebra with LDP
Status: Beta
Brought to you by:
jleu
|
From: Ramon C. <cas...@in...> - 2004-03-27 11:48:14
|
On Sat, 27 Mar 2004, Josef Perlinger wrote: > > I get also some "Hunks Failed" when I patch the zebra-0.94 files with the > ldp_zebra_diff > > when I configure and make them I get the following errors: > Let me explain myself. If you compile a C program that has this line: #include <linux/rtnetlink> in most default configurations gcc is going to look at /usr/include/linux/rtnetlink. Nowadays most distributions release a set of 'kernel headers' which are stable enough, and put into /usr/include. These headers need not match you current running kernel (All this is a little confusing for some people. In fact, userspace applications should not include kernel header files but, unfortunately, some userspace applications need to... In your case, you may have on one hand your mpls patched kernel and on the other one a set of kernel headers that have never heard of MPLS. Zebra looks at them.. A fast workaround would be to modify zebra Makefile so it looks at the MPLS enabled kernel headers first (something like -I/path/to/mpls/kernel) do this at your own risk... > > When I compile the zebra without mpls patching it the make works. Sure, because the kernel headers found in /usr/include are enough for zebra.. Regards, Ramon |