ipt_ACCOUNT Archives

Subject: Re: libipt_ACCOUNT compile trouble

From: Neal Murphy <neal.p.murphy@xxxxxxxxxxxx>
To: ipt_ACCOUNT@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 24 Aug 2009 15:00:56 -0400
On Monday 24 August 2009 07:39:58 Thomas Jarosch wrote:
> Hello Neal,
>
> On Friday, 21. August 2009 23:25:31 Neal Murphy wrote:
> > For days, I couldn't get iptables to compile with ipt_ACCOUNT, until I
> > 'talked to the bear' and realized why gcc couldn't find ipt_ACCOUNT.h: I
> > added --with-kbuild or created /lib/modules/kernel/build or .../source
> > link(s). Iptables finally compiles.
>
> Good!
>
> > make  all-recursive
> > ...
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=i686 -Wall
> > -I/build/sources/kernel-phaeton/linux/include -MT ipt_ACCOUNT_cl.lo -MD
> > -MP -MF .deps/ipt_ACCOUNT_cl.Tpo -c
> > ipt_ACCOUNT_cl.c  -fPIC -DPIC -o .libs/ipt_ACCOUNT_cl.o
> > In file included
> > from
> > /build/sources/kernel-phaeton/linux/include/linux/netfilter_ipv4/ip_table
> >s.h:26, from ipt_ACCOUNT_cl.c:16:
> > /build/sources/kernel-phaeton/linux/include/linux/netfilter_ipv4.h:55:
> > error: 'INT_MIN' undeclared here (not in a function)
>
> Something might be wrong with the kernel headers,
> please try the attached workaround patch.

Thanks, Thomas!

That did the trick. I later encountered several other packages that had this 
problem (or one very similar). Including limits.h fixed them, too.

I'm updating Smoothwall, partly for grins and partly to get it done:
  - GCC: 3.3.5 => 4.3.2
  - kernel: 2.6.16.60 => 2.6.26.8
  - iptables: 1.3.7 => 1.4.2
  - POM: 20070117 => 20090513
  - ipt_ACCOUNT: 1.8 => 1.15
  - libipt_ACCOUNT: 1.2 => 1.3

If this is as bad as it gets, I guess I can't complain. Even the C++ changes 
involved mostly adding includes (and changing one {0} to {{0}}). It's still 
too early to tell what the root problem is. I might not be creating the 'LFS' 
environment correctly (putting everything in the right place in the chroot 
jail, et al), or this limits.h thing might be related to a fundamental change 
in the C compiler.

Neal

--
ipt_ACCOUNT - see http://www.intra2net.com/en/developer/ipt_ACCOUNT for details.
To unsubscribe send a mail to ipt_ACCOUNT+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread