Linux Netfilter discussions
 help / color / mirror / Atom feed
* Iptables-1.2.9/10 compile failure with linux 2.6.7 headers
@ 2004-06-18 15:11 Andrew Walrond
  2004-06-18 16:10 ` David Ford
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Walrond @ 2004-06-18 15:11 UTC (permalink / raw)
  To: netfilter; +Cc: linux-kernel

The addition of a
	__user
attribute to a line in
	linux-2.6.7/include/linux/netfilter_ipv4/ip_tables.h
causes iptables build to fail unless I export
	CC="gcc -D__user= "

Presumably ip_tables.h should include a header defining __user, or iptables 
should include the relevant header before ip_tables.h ?

Sorry if this has already been reported; Archive search found nothing on 
either ML.

Andrew Walrond

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Iptables-1.2.9/10 compile failure with linux 2.6.7 headers
@ 2004-06-18 15:17 Andrew Walrond
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Walrond @ 2004-06-18 15:17 UTC (permalink / raw)
  To: netfilter

The addition of a
	__user
attribute to a line in
	linux-2.6.7/include/linux/netfilter_ipv4/ip_tables.h
causes iptables build to fail unless I export
	CC="gcc -D__user= "

Presumably ip_tables.h should include a header defining __user, or iptables 
should include the relevant header before ip_tables.h ?

Sorry if this has already been reported; Archive search found nothing on 
either ML.

Andrew Walrond


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Iptables-1.2.9/10 compile failure with linux 2.6.7 headers
  2004-06-18 15:11 Iptables-1.2.9/10 compile failure with linux 2.6.7 headers Andrew Walrond
@ 2004-06-18 16:10 ` David Ford
  2004-06-18 16:21   ` Andrew Walrond
  0 siblings, 1 reply; 5+ messages in thread
From: David Ford @ 2004-06-18 16:10 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: netfilter, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

Iptables should be using linux-libc-headers headers instead of kernel 
headers.

Remove -I$(KERNEL_DIR)/include from your makefile, see this patch here: 
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/patches/iptables.patch 
<http://ep09.pld-linux.org/%7Emmazur/linux-libc-headers/patches/iptables.patch>

David

Andrew Walrond wrote:

>The addition of a
>	__user
>attribute to a line in
>	linux-2.6.7/include/linux/netfilter_ipv4/ip_tables.h
>causes iptables build to fail unless I export
>	CC="gcc -D__user= "
>
>Presumably ip_tables.h should include a header defining __user, or iptables 
>should include the relevant header before ip_tables.h ?
>
>Sorry if this has already been reported; Archive search found nothing on 
>either ML.
>
>Andrew Walrond
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>  
>

[-- Attachment #2: david+challenge-response.vcf --]
[-- Type: text/x-vcard, Size: 183 bytes --]

begin:vcard
fn:David Ford
n:Ford;David
email;internet:david@blue-labs.org
title:Industrial Geek
tel;home:Ask please
tel;cell:(203) 650-3611
x-mozilla-html:TRUE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Iptables-1.2.9/10 compile failure with linux 2.6.7 headers
  2004-06-18 16:10 ` David Ford
@ 2004-06-18 16:21   ` Andrew Walrond
  2004-06-18 16:39     ` David Ford
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Walrond @ 2004-06-18 16:21 UTC (permalink / raw)
  To: David Ford; +Cc: netfilter, linux-kernel

Hi David,

On Friday 18 Jun 2004 17:10, David Ford wrote:
> Iptables should be using linux-libc-headers headers instead of kernel
> headers.

Is this acquired knowledge, or new Netfilter policy?
How dependant are the iptables tools on the specifc kernel running?

Ie
Can I build iptables for use on 2.6.7 kernel with 2.6.6 linux-libc-headers? 
(probably)

But could I build iptables for 2.6.7 kernel with 2.4.20 linux-libc-headers? 
(probably not?)

The INSTALL file states specifically to use 
KERNEL_DIR=<<where-you-built-your-kernel>>

Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Iptables-1.2.9/10 compile failure with linux 2.6.7 headers
  2004-06-18 16:21   ` Andrew Walrond
@ 2004-06-18 16:39     ` David Ford
  0 siblings, 0 replies; 5+ messages in thread
From: David Ford @ 2004-06-18 16:39 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: netfilter, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

The current linux libc headers package is much more frequently updated 
and closely matches released kernels.  LLH is a sanitized linux headers 
package and is currently based on 2.6.6 headers.

Yes you can build iptables on 2.6.6 for a 2.6.7 kernel.  I have built 
iptables once or twice a year and built kernels once or twice a week.  
Iptables continues to work fine.

David

Andrew Walrond wrote:

>Hi David,
>
>On Friday 18 Jun 2004 17:10, David Ford wrote:
>  
>
>>Iptables should be using linux-libc-headers headers instead of kernel
>>headers.
>>    
>>
>
>Is this acquired knowledge, or new Netfilter policy?
>How dependant are the iptables tools on the specifc kernel running?
>
>Ie
>Can I build iptables for use on 2.6.7 kernel with 2.6.6 linux-libc-headers? 
>(probably)
>
>But could I build iptables for 2.6.7 kernel with 2.4.20 linux-libc-headers? 
>(probably not?)
>
>The INSTALL file states specifically to use 
>KERNEL_DIR=<<where-you-built-your-kernel>>
>
>Andrew
>  
>

[-- Attachment #2: david+challenge-response.vcf --]
[-- Type: text/x-vcard, Size: 183 bytes --]

begin:vcard
fn:David Ford
n:Ford;David
email;internet:david@blue-labs.org
title:Industrial Geek
tel;home:Ask please
tel;cell:(203) 650-3611
x-mozilla-html:TRUE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-06-18 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-18 15:11 Iptables-1.2.9/10 compile failure with linux 2.6.7 headers Andrew Walrond
2004-06-18 16:10 ` David Ford
2004-06-18 16:21   ` Andrew Walrond
2004-06-18 16:39     ` David Ford
  -- strict thread matches above, loose matches on Subject: below --
2004-06-18 15:17 Andrew Walrond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox