* error Invalid kernel header inluded in user space
@ 2003-03-07 10:58 Sabrina Lautier
2003-03-10 15:48 ` Sabrina Lautier
0 siblings, 1 reply; 3+ messages in thread
From: Sabrina Lautier @ 2003-03-07 10:58 UTC (permalink / raw)
To: Netfilter mailing list
Hi all !
I'm following the "Linux IP Masqueade HowTo" to set up a linux
router-firewall.
I'm having trouble compiling iptables and I don't know how to solve my
problem...
I'm running linux redhat 7.3 with a 2.4.18-3 kernel but I've
downloaded the latest kernel version (2.4.20) in order to compile it
with iptables-1.2.7a and patch-o-matic kernel patches.
When I try to compile here is the error I get:
**********************************************************************
$ make KERNEL_DIR=/usr/src/kernel/linux
Extentions found:
cc -02 ...
In file included from /usr/src/kernel/linux/include/linux/config.h:4,
from /usr/src/kernel/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/kernel/linux/include/linux/netfilter_ipv4/iptables.h:25,
from include/libiptc.h:6,
from include/iptables.h:5,
from extentions/libipt_ah.c:8,
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header
inluded in user space
make: ** [extentions/libipt_ah_sh.o] Error 1
**********************************************************************
For information, I'm using gcc-2.96-110. I've tried to upgrade to
gcc-3.2-7 but cannot find glibc-devel-2.2.90-12 required for this
version of gcc (can someone tell me where to find it ?).
Any idea of how to solve my issue ?
Any help would be greatly appreciated.
Regards,
Sabrina
---------------------------------------------
Powered by Alinto (http://www.alinto.net)
for lavache.com (http://www.lavacheautomatique.com)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error Invalid kernel header inluded in user space
2003-03-07 10:58 error Invalid kernel header inluded in user space Sabrina Lautier
@ 2003-03-10 15:48 ` Sabrina Lautier
2003-03-10 16:13 ` Athan
0 siblings, 1 reply; 3+ messages in thread
From: Sabrina Lautier @ 2003-03-10 15:48 UTC (permalink / raw)
To: Netfilter mailing list
Why does nobody reply to my mail ? Is my question too obvious/stupid ?
I still haven't find a solution to my issue... I still can compile
the linux kernel with iptables-1.2.7a and patch-o-matic kernel
patches :-(.
Thanks in advance for any clue.
Regards,
Sabrina
> ---------------- Beginning of the original message -----------------
-
> Hi all !
>
> I'm following the "Linux IP Masqueade HowTo" to set up a linux
> router-firewall.
> I'm having trouble compiling iptables and I don't know how to
> solve my
> problem...
>
> I'm running linux redhat 7.3 with a 2.4.18-3 kernel but I've
> downloaded the latest kernel version (2.4.20) in order to
> compile it
> with iptables-1.2.7a and patch-o-matic kernel patches.
>
> When I try to compile here is the error I get:
>
**********************************************************************
> $ make KERNEL_DIR=/usr/src/kernel/linux
> Extentions found:
> cc -02 ...
> In file included from
> /usr/src/kernel/linux/include/linux/config.h:4,
> from /usr/src/kernel/linux/include/linux/netfilter_ipv4.h:8,
> from
> /usr/src/kernel/linux/include/linux/netfilter_ipv4/iptables.h:25,
> from include/libiptc.h:6,
> from include/iptables.h:5,
> from extentions/libipt_ah.c:8,
> /usr/include/linux/autoconf.h:1:2: #error Invalid kernel
> header
> inluded in user space
> make: ** [extentions/libipt_ah_sh.o] Error 1
>
**********************************************************************
>
> For information, I'm using gcc-2.96-110. I've tried to upgrade
> to
> gcc-3.2-7 but cannot find glibc-devel-2.2.90-12 required for
> this
> version of gcc (can someone tell me where to find it ?).
>
> Any idea of how to solve my issue ?
> Any help would be greatly appreciated.
>
> Regards,
> Sabrina
>
> ---------------------------------------------
> Powered by Alinto (http://www.alinto.net)
> for lavache.com (http://www.lavacheautomatique.com)
>
>
> ------------------- End of the original message --------------------
-
Sabrina
---------------------------------------------
Powered by Alinto (http://www.alinto.net)
for lavache.com (http://www.lavacheautomatique.com)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: error Invalid kernel header inluded in user space
2003-03-10 15:48 ` Sabrina Lautier
@ 2003-03-10 16:13 ` Athan
0 siblings, 0 replies; 3+ messages in thread
From: Athan @ 2003-03-10 16:13 UTC (permalink / raw)
To: Sabrina Lautier; +Cc: Netfilter mailing list
[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]
On Mon, Mar 10, 2003 at 04:48:27PM +0100, Sabrina Lautier wrote:
> > When I try to compile here is the error I get:
> >
> **********************************************************************
> > $ make KERNEL_DIR=/usr/src/kernel/linux
> > Extentions found:
> > cc -02 ...
> > In file included from
> > /usr/src/kernel/linux/include/linux/config.h:4,
> > from /usr/src/kernel/linux/include/linux/netfilter_ipv4.h:8,
> > from
> > /usr/src/kernel/linux/include/linux/netfilter_ipv4/iptables.h:25,
> > from include/libiptc.h:6,
> > from include/iptables.h:5,
> > from extentions/libipt_ah.c:8,
> > /usr/include/linux/autoconf.h:1:2: #error Invalid kernel
> > header
> > inluded in user space
> > make: ** [extentions/libipt_ah_sh.o] Error 1
This implies something is defining __KERNEL__ (or not) when it
shouldn't (or should) be. Yes, I'm being vague as I've not tried it
myself. I notice the "cc -O2 ..." above, the full line might help.
Also the actual error is from "/usr/include/linux/autoconf.h", do
symlinks make that the same as
"/usr/src/kernel/linux/include/linuxautoconf.h" or is it part of some
'stub' headers package on your system? A mismatch could cause such a
problem.
-Ath
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-10 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-07 10:58 error Invalid kernel header inluded in user space Sabrina Lautier
2003-03-10 15:48 ` Sabrina Lautier
2003-03-10 16:13 ` Athan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox