[Dnsmasq-discuss] dnsmasq failing to compile

Simon Kelley simon at thekelleys.org.uk
Tue Dec 5 14:24:58 GMT 2006


Carlos Carvalho wrote:
> Philip Wall (philip.wall at gmail.com) wrote on 4 December 2006 23:49:
>  >Switched to kernel sources 2.6.18.1 and it built fine so must be an 
>  >issue between dnsmasq and the 2.6.19 kernel.
> 
> Applications shouldn't depend directly on the kernel headers, they
> depend on the headers used by libc. There's something strange in your
> configuration.

That's the theory: the practise is that for interfaces which are linux
specific, it's necessary to

#include <linux/somefile>

and, whilst /usr/include/linux _should_ be some nice, change controlled,
stable API, set of userspace headers, nobody actually maintains such a
thing. Distros are therefore forced to use the include tree from some
kernel-or-other, and when that changes, things can break.

In this case, I can't see any solution other than to resort to #ifdef
and swearing.

I'll put something together and post a patch here soon.


Cheers,

Simon.

> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list