Re: Iptables userpace tool not building with WOLK 2.6 kernel
Marc-Christian Petersen <[email protected]> Tue, 27 Apr 2004 17:05:34 +0200
| Newsgroups | gmane.linux.wolk.devel |
|---|---|
| Organization | Working Overloaded Linux Kernel |
| Message-ID | <200404271705.34086@WOLK> |
On Tuesday 27 April 2004 16:58, Lance Albertson wrote: Hey Lance, > I've been having a strange problem when I have 2.6.4-wolk2.3 symlinked as > /usr/src/linux and trying to build the iptables. It errors out and > complains a lot about headers not being right. It finally just gives up and > craps out in the end. Below is the latter half of the compile output. I > tried building iptables with a different 2.6 kernel pointed to > /usr/src/linux and it worked fine. So, I'm guessing its some patch wolk has > applied that's messing this up. I couldn't find many answers on google > either. Any help would be great! Thanks! > /usr/src/linux/include/linux/config.h:9:2: #error including kernel header > in userspace; use the glibc headers instead! well, the error out is right, iptables is wrong, but hey, for you I have a patch you apply and it'll build ;) Iptables simply has to define __KERNEL__ ciao, Marc
the-fix-is-right-but-not-for-ramereth.patch
(text/x-diff, 384 B)
diff -Naurp linux.old/include/linux/config.h linux.new/include/linux/config.h --- linux.old/include/linux/config.h +++ linux.new/include/linux/config.h @@ -2,11 +2,6 @@ #define _LINUX_CONFIG_H #include <linux/autoconf.h> - -#ifndef __KERNEL__ -#error including kernel header in userspace; use the glibc headers instead! -#endif - #ifdef CONFIG_X86 #include <asm/kgdb.h> #endif