[Dnsmasq-discuss] [Patch] dnsmasq with IPSET feature enabled doesn't compile on linux kernel < 2.6.24
Eugene Rudoy
gene.devel at gmail.com
Wed Apr 24 19:47:08 BST 2013
Hi,
in case it would help here are the errors I get on 2.6.13:
- before commenting out #include <linux/netfilter/nfnetlink.h> in
src/ipset.c
ipset.c:29:39: fatal error: linux/netfilter/nfnetlink.h: No such file or
directory
- and after commenting it out
ipset.c: In function 'add_attr':
ipset.c:57:26: error: invalid application of 'sizeof' to incomplete type
'struct nlattr'
ipset.c:58:7: error: dereferencing pointer to incomplete type
ipset.c:59:7: error: dereferencing pointer to incomplete type
ipset.c:60:25: error: invalid application of 'sizeof' to incomplete type
'struct nlattr'
ipset.c: In function 'new_add_to_ipset':
ipset.c:121:21: error: invalid application of 'sizeof' to incomplete
type 'struct nfgenmsg'
ipset.c:122:6: error: dereferencing pointer to incomplete type
ipset.c:123:6: error: dereferencing pointer to incomplete type
ipset.c:123:18: error: 'NFNETLINK_V0' undeclared (first use in this
function)
ipset.c:123:18: note: each undeclared identifier is reported only once
for each function it appears in
ipset.c:124:6: error: dereferencing pointer to incomplete type
ipset.c:130:21: error: invalid application of 'sizeof' to incomplete
type 'struct nlattr'
ipset.c:131:12: error: dereferencing pointer to incomplete type
ipset.c:131:25: error: 'NLA_F_NESTED' undeclared (first use in this
function)
ipset.c:133:21: error: invalid application of 'sizeof' to incomplete
type 'struct nlattr'
ipset.c:134:12: error: dereferencing pointer to incomplete type
ipset.c:136:73: error: 'NLA_F_NET_BYTEORDER' undeclared (first use in
this function)
ipset.c:138:12: error: dereferencing pointer to incomplete type
ipset.c:139:12: error: dereferencing pointer to incomplete type
Best,
Gene
p.s. Don't ask why I'm using 2.6.13 - the answer is I have to ;-)
On Tue, Apr 23, 2013 at 10:28 PM, Vladislav Grishenko <themiron at mail.ru>wrote:
> Dears,
> We have 2.6.22 with ipset. Plz, keep in mind there're no only vanilla
> kernels around.
>
> Best Regards, Vladislav Grishenko
>
> > -----Original Message-----
> > From: dnsmasq-discuss-bounces at lists.thekelleys.org.uk [mailto:dnsmasq-
> > discuss-bounces at lists.thekelleys.org.uk] On Behalf Of Simon Kelley
> > Sent: Monday, April 22, 2013 7:07 PM
> > To: dnsmasq-discuss at lists.thekelleys.org.uk
> > Subject: Re: [Dnsmasq-discuss] [Patch] dnsmasq with IPSET feature enabled
> > doesn't compile on linux kernel < 2.6.24
> >
> > On 20/04/13 15:31, Eugene Rudoy wrote:
> > > Dear all,
> > >
> > > dnsmasq with IPSET feature enabled (added in dnsmasq-2.66 and enabled
> > > by
> > > default) doesn't compile on linux kernel versions< 2.6.24. The
> > > attached patch fixes the problem by disabling the feature for these
> kernel
> > versions.
> > >
> > > As far as I understand the missing symbols are just convenience ones,
> > > from technical point of view it is possible to add IPSET support also
> > > for kernel versions prior to 2.6.24. I however don't need this
> > > feature, thus simple disable-patch.
> > >
> >
> > Hmmm, As I recall, considerable effort was made to get this code to work
> > with old kernels, so I'm wary of just disabling it in this circumstance.
> > CC'ing the orginal author for his comments.
> >
> >
> > Cheers,
> >
> > Simon.
> >
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130424/1eb31e47/attachment-0001.html>
More information about the Dnsmasq-discuss
mailing list