[Dnsmasq-discuss] DNSMasq compile issue on RHEL5.9

Simon Kelley simon at thekelleys.org.uk
Mon Jun 3 19:44:52 BST 2013


On 03/06/13 15:15, Erik Kangas, Ph.D. wrote:
> Hello,
> Trying to build dnsmasq 2.66 on updated RHEL 5.9, 32bit.   Built
> successfully on CentOS 6.2.  Any suggestions for resolving this build error:
> $ make
> make[1]: Entering directory `/xd1/setup/sources/dnsmasq-2.66/src'
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c cache.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c rfc1035.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c util.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c option.c
> option.c: In function âone_optâ:
> option.c:1650: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> option.c:1665: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> option.c:1670: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> option.c:1675: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c forward.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c network.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c dnsmasq.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c dhcp.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c lease.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c rfc2131.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c netlink.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c dbus.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c bpf.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c helper.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c tftp.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c log.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c conntrack.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c dhcp6.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c rfc3315.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c dhcp-common.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c outpacket.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c radv.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c slaac.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c auth.c
> cc -Wall -W -O2   -DVERSION='"2.66"'         -c ipset.c
> ipset.c: In function ânew_add_to_ipsetâ:
> ipset.c:131: error: âNLA_F_NESTEDâ undeclared (first use in this function)
> ipset.c:131: error: (Each undeclared identifier is reported only once
> ipset.c:131: error: for each function it appears in.)
> ipset.c:136: error: âNLA_F_NET_BYTEORDERâ undeclared (first use in this
> function)
> make[1]: *** [ipset.o] Error 1
> make[1]: Leaving directory `/xd1/setup/sources/dnsmasq-2.66/src'
> make: *** [all] Error 2
> Thank you,
> -Erik Kangas
>

The patch that fixed this in the development mainline is here.

http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=d5052fb24fdc1d18d530ff570c0a37e3e4d32d0e


It should apply pretty easily to 2.66 release.

Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list