2009-09-11 09:55:00     dnsmasq problem

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-09-11 09:55:00     dnsmasq problem

Robert Kubaty (UNITED KINGDOM)

Message: 79803   




I'm trying to run DNSMASQ (v1) on my 2009R1 build.


Whatever option I try, it exits without any useful info in syslog.




Strace returns:



strace dnsmasq

execve(NULL, [0x1b46f6c], [/* 0 vars */] <unfinished ...>

ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0

ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0

rt_sigaction(SIGUSR1, {0x441f88, [USR1], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGHUP, {0x441f88, [HUP], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0

open("/etc/dnsmasq.conf", O_RDONLY)     = -1 ENOENT (No such file or directory)


socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)


setsockopt(6, SOL_IP, IP_PKTINFO, [1], 4) = 0

bind(6, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("")}, 16) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0, 0) = 0x462000

mmap2(NULL, 12288, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x4000000, 0, 0) = 0x464000

_exit(0)                                = ?


I've found some old discussion here:   lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2007q3/001510.html

Could it be related to my problem ?



Also...  it's not possible for me to build DNSMASQ V2 in 2009R1.


Build output:


make[4]: Entering directory `/home/robertk/pocketsat/repo/blackfin-uclinux-src/uClinux-dist-2009R1-RC6/user/dnsmasq2'

make -C src all

make[5]: Entering directory `/home/robertk/pocketsat/repo/blackfin-uclinux-src/uClinux-dist-2009R1-RC6/user/dnsmasq2/src'

bfin-uclinux-gcc -Wall -c -pipe -Wall -g -O2      -mcpu=bf561-0.3 -DNO_GETTEXT -DHAVE_ISC_READER -DDO_PRELOAD -g -O2 -DNO_IPV6 netlink.c

In file included from netlink.c:20:

../../iproute2/ip/netdevice.h:38:1: warning: "MAX_ADDR_LEN" redefined

In file included from dnsmasq.h:65,

                 from netlink.c:13:

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/net/if_arp.h:34:1: warning: this is the location of the previous definition

In file included from netlink.c:20:

../../iproute2/ip/netdevice.h:261: error: redefinition of ‘struct ndt_stats’

../../iproute2/ip/netdevice.h:275: error: redeclaration of enumerator ‘NDTPA_UNSPEC’

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/linux/neighbour.h:105: error: previous definition of ‘NDTPA_UNSPEC’ was here

../../iproute2/ip/netdevice.h:276: error: redeclaration of enumerator ‘NDTPA_IFINDEX’


... and it goes on with redeclaration errors



Maybe my kernel is not configured properly ?

Please help.







2009-09-11 10:10:48     Re: dnsmasq problem

Mike Frysinger (UNITED STATES)

Message: 79805   


so dont enable ipv6 support in dnsmasq, or enable ipv6 in the kernel