public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* iptables-1.4.0 with 2.6.26
@ 2008-08-19 11:35 Hinko Kocevar
  2008-08-19 14:06 ` Phil Oester
  0 siblings, 1 reply; 6+ messages in thread
From: Hinko Kocevar @ 2008-08-19 11:35 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Hi,

Trying to build iptables-1.4.0 with 2.6.26 kernel on x86 fails with:

hinkok@alala /tmp/iptables-1.4.0 $ make
Extensions found:
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.26/build"/include -I"/lib/modules/2.6.26/source"/include -Iinclude/ -DIPTABLES_VERSION=\"1.4.0\"  -fPIC -o extensions/libxt_sctp_sh.o -c extensions/libxt_sctp.c
In file included from extensions/libxt_sctp.c:23:
/lib/modules/2.6.26/build/include/linux/netfilter/xt_sctp.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sctp_chunkmap_is_clear'
/lib/modules/2.6.26/build/include/linux/netfilter/xt_sctp.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sctp_chunkmap_is_all_set'
extensions/libxt_sctp.c: In function 'print_chunks':
extensions/libxt_sctp.c:416: warning: implicit declaration of function '__sctp_chunkmap_is_clear'
extensions/libxt_sctp.c:421: warning: implicit declaration of function '__sctp_chunkmap_is_all_set'
make: *** [extensions/libxt_sctp_sh.o] Error 1

I think it complains about the bool type.

Regards,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si



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

* Re: iptables-1.4.0 with 2.6.26
  2008-08-19 11:35 iptables-1.4.0 with 2.6.26 Hinko Kocevar
@ 2008-08-19 14:06 ` Phil Oester
  2008-08-19 14:11   ` Hinko Kocevar
  0 siblings, 1 reply; 6+ messages in thread
From: Phil Oester @ 2008-08-19 14:06 UTC (permalink / raw)
  To: Hinko Kocevar; +Cc: linux-kernel@vger.kernel.org

On Tue, Aug 19, 2008 at 01:35:07PM +0200, Hinko Kocevar wrote:
> Hi,
> 
> Trying to build iptables-1.4.0 with 2.6.26 kernel on x86 fails with:

Try 1.4.1.1 instead?

Phil

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

* Re: iptables-1.4.0 with 2.6.26
  2008-08-19 14:06 ` Phil Oester
@ 2008-08-19 14:11   ` Hinko Kocevar
  2008-08-19 15:25     ` Phil Oester
  0 siblings, 1 reply; 6+ messages in thread
From: Hinko Kocevar @ 2008-08-19 14:11 UTC (permalink / raw)
  To: Phil Oester; +Cc: linux-kernel@vger.kernel.org

Phil Oester wrote:
> On Tue, Aug 19, 2008 at 01:35:07PM +0200, Hinko Kocevar wrote:
>> Hi,
>>
>> Trying to build iptables-1.4.0 with 2.6.26 kernel on x86 fails with:
> 
> Try 1.4.1.1 instead?
> 

Well, it builds.
But trying to add simple rule fails:

hinkok@alala /tmp/iptables-1.4.1.1 $ sudo ./iptables -A INPUT -p tcp --dport 80 -j DROP
iptables v1.4.1.1: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.


Regards,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si


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

* Re: iptables-1.4.0 with 2.6.26
  2008-08-19 14:11   ` Hinko Kocevar
@ 2008-08-19 15:25     ` Phil Oester
  2008-08-19 15:32       ` Hinko Kocevar
  0 siblings, 1 reply; 6+ messages in thread
From: Phil Oester @ 2008-08-19 15:25 UTC (permalink / raw)
  To: Hinko Kocevar; +Cc: linux-kernel@vger.kernel.org

On Tue, Aug 19, 2008 at 04:11:26PM +0200, Hinko Kocevar wrote:
> Well, it builds.
> But trying to add simple rule fails:
> 
> hinkok@alala /tmp/iptables-1.4.1.1 $ sudo ./iptables -A INPUT -p tcp --dport 80 -j DROP
> iptables v1.4.1.1: Unknown arg `--dport'
> Try `iptables -h' or 'iptables --help' for more information.

Yes, that wouldn't work unless you built a static iptables binary (--enable-static).
Please run make install, then it will work for you from the install directory.

Phil

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

* Re: iptables-1.4.0 with 2.6.26
  2008-08-19 15:25     ` Phil Oester
@ 2008-08-19 15:32       ` Hinko Kocevar
  2008-08-19 15:56         ` Phil Oester
  0 siblings, 1 reply; 6+ messages in thread
From: Hinko Kocevar @ 2008-08-19 15:32 UTC (permalink / raw)
  To: Phil Oester; +Cc: linux-kernel@vger.kernel.org

Phil Oester wrote:
> On Tue, Aug 19, 2008 at 04:11:26PM +0200, Hinko Kocevar wrote:
>> Well, it builds.
>> But trying to add simple rule fails:
>>
>> hinkok@alala /tmp/iptables-1.4.1.1 $ sudo ./iptables -A INPUT -p tcp --dport 80 -j DROP
>> iptables v1.4.1.1: Unknown arg `--dport'
>> Try `iptables -h' or 'iptables --help' for more information.
> 
> Yes, that wouldn't work unless you built a static iptables binary (--enable-static).

Tried and it works, with forcing symlink on iptables-static.
hinkok@alala /tmp/iptables-1.4.1.1 $ rm iptables
hinkok@alala /tmp/iptables-1.4.1.1 $ ln -s iptables-static iptables
hinkok@alala /tmp/iptables-1.4.1.1 $ sudo ./iptables -A INPUT -p tcp --dport 80 -j DROP
hinkok@alala /tmp/iptables-1.4.1.1 $ 

> Please run make install, then it will work for you from the install directory.

Will this be a problem on an embedded system, when iptables are cross compiled? 
Are there some cynimic libraries that are pulled in from somewhere (probably destdir installation dir)?

Thank you,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si


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

* Re: iptables-1.4.0 with 2.6.26
  2008-08-19 15:32       ` Hinko Kocevar
@ 2008-08-19 15:56         ` Phil Oester
  0 siblings, 0 replies; 6+ messages in thread
From: Phil Oester @ 2008-08-19 15:56 UTC (permalink / raw)
  To: Hinko Kocevar; +Cc: linux-kernel@vger.kernel.org

On Tue, Aug 19, 2008 at 05:32:53PM +0200, Hinko Kocevar wrote:
> > Please run make install, then it will work for you from the install directory.
> 
> Will this be a problem on an embedded system, when iptables are cross compiled? 
> Are there some cynimic libraries that are pulled in from somewhere (probably destdir installation dir)?

Well, if you use the non-static version, then you need the various .so files - 
see /lib/xtables/lib*.

Phil

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

end of thread, other threads:[~2008-08-19 15:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 11:35 iptables-1.4.0 with 2.6.26 Hinko Kocevar
2008-08-19 14:06 ` Phil Oester
2008-08-19 14:11   ` Hinko Kocevar
2008-08-19 15:25     ` Phil Oester
2008-08-19 15:32       ` Hinko Kocevar
2008-08-19 15:56         ` Phil Oester

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