Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Iptables incompatible with linux-headers!
       [not found] <1179181946.6609.17.camel@localhost>
@ 2007-05-15  9:58 ` Mats Erik Andersson
  2007-05-15 10:18   ` Bernhard Fischer
  0 siblings, 1 reply; 2+ messages in thread
From: Mats Erik Andersson @ 2007-05-15  9:58 UTC (permalink / raw)
  To: buildroot

I have been able to reproduce the strange phenomenon
that a buildroot setting of

gcc-3.4.4
binutils-2.17
buildroot-20070514
uClibc-0.9.28.3
busybox-1.5.0
linux-headers-2.4.27
dropbear
iptables-1.3.7 (and 1.3.5)

cannot compile

    iptables-1.3.7/extensions/libipt_string.c

due to non-existing structure members of ipt_string_info.
However, when I finally got the idea to alter the value
inside

      package/iptables/iptables.mk

to explicitely replace the header reference by the directory

       KERNEL_DIR=/tmp2/linux-2.4.27

where I separately compiled the kernel, the previous failure is
changed into success. 

Until today I have only used Buildroot for 2.6-kernels
and I did never encounter the same failure. Would someone
venture to call this a bug, or is it my handling that could
have caused my troubles? Aside from one complaint on getopt.h
when I aimed at a SuSv3-version, the above was the only trouble
I had in this setting.

Regards,   Mats Erik Andersson

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

* [Buildroot] Iptables incompatible with linux-headers!
  2007-05-15  9:58 ` [Buildroot] Iptables incompatible with linux-headers! Mats Erik Andersson
@ 2007-05-15 10:18   ` Bernhard Fischer
  0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Fischer @ 2007-05-15 10:18 UTC (permalink / raw)
  To: buildroot

On Tue, May 15, 2007 at 11:58:08AM +0200, Mats Erik Andersson wrote:
>I have been able to reproduce the strange phenomenon
>that a buildroot setting of
>
>gcc-3.4.4
>binutils-2.17
>buildroot-20070514
>uClibc-0.9.28.3
>busybox-1.5.0
>linux-headers-2.4.27
>dropbear
>iptables-1.3.7 (and 1.3.5)
>
>cannot compile
>
>    iptables-1.3.7/extensions/libipt_string.c
>
>due to non-existing structure members of ipt_string_info.
>However, when I finally got the idea to alter the value
>inside
>
>      package/iptables/iptables.mk
>
>to explicitely replace the header reference by the directory
>
>       KERNEL_DIR=/tmp2/linux-2.4.27
>
>where I separately compiled the kernel, the previous failure is
>changed into success. 

IIRC iptables needs to pickup some kernel-headers. If you use old
versions of linux (old as in not in buildroot), then you should be able
to pass KERNEL_DIR=/there/ to the toplevel make and all should be well.
I did never try if this works, though, so it's possible that you have to
tweak it a little bit (and send the resulting patch which makes sure
that KERNEL_DIR is properly seen in package/* to the list).
>
>Until today I have only used Buildroot for 2.6-kernels
>and I did never encounter the same failure. Would someone
>venture to call this a bug, or is it my handling that could
>have caused my troubles? Aside from one complaint on getopt.h
>when I aimed at a SuSv3-version, the above was the only trouble
>I had in this setting.

I don't remember any details about this getopt thing, i fear..

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

end of thread, other threads:[~2007-05-15 10:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1179181946.6609.17.camel@localhost>
2007-05-15  9:58 ` [Buildroot] Iptables incompatible with linux-headers! Mats Erik Andersson
2007-05-15 10:18   ` Bernhard Fischer

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