Discussion:
[Dnsmasq-discuss] Compile Error.
Tony White
2016-08-24 15:31:19 UTC
Permalink
Hello all,
I am hoping someone can point me to the reason I get this error
trying to compile dnsmasq?

[***@dns dnsmasq-2.76]# make all
make[1]: Entering directory `/downloads/dnsmasq-2.76/src'
cc -Wall -W -O2 -DVERSION='"2.76"' -c inotify.c
inotify.c: In function ‘inotify_dnsmasq_init’:
inotify.c:92: warning: implicit declaration of function ‘inotify_init1’
inotify.c:92: error: ‘IN_NONBLOCK’ undeclared (first use in this function)
inotify.c:92: error: (Each undeclared identifier is reported only once
inotify.c:92: error: for each function it appears in.)
inotify.c:92: error: ‘IN_CLOEXEC’ undeclared (first use in this function)
make[1]: *** [inotify.o] Error 1
make[1]: Leaving directory `/downloads/dnsmasq-2.76/src'
make: *** [all] Error 2

CentOS 5.11
x86_64

Thank you in advance.
--
kind regards
Tony White
Chris Novakovic
2016-08-24 16:14:58 UTC
Permalink
Post by Tony White
inotify.c:92: error: ‘IN_NONBLOCK’ undeclared (first use in this function)
inotify.c:92: error: (Each undeclared identifier is reported only once
inotify.c:92: error: for each function it appears in.)
inotify.c:92: error: ‘IN_CLOEXEC’ undeclared (first use in this function)
make[1]: *** [inotify.o] Error 1
CentOS 5.11
x86_64
Your version of glibc (probably 2.5, on CentOS 5.11) is too old, and
doesn't contain those flags --- the least painful route to fixing this
is likely to be to upgrade to a newer CentOS release.
Kevin Darbyshire-Bryant
2016-08-25 09:19:43 UTC
Permalink
Or use 'make COPTS=-DNO_INOTIFY' to compile without the inotify
handling, since early kernels (as used by many router manufacturers)
don't have inotify support.
Post by Chris Novakovic
Post by Tony White
inotify.c:92: error: ‘IN_NONBLOCK’ undeclared (first use in this function)
inotify.c:92: error: (Each undeclared identifier is reported only once
inotify.c:92: error: for each function it appears in.)
inotify.c:92: error: ‘IN_CLOEXEC’ undeclared (first use in this function)
make[1]: *** [inotify.o] Error 1
CentOS 5.11
x86_64
Your version of glibc (probably 2.5, on CentOS 5.11) is too old, and
doesn't contain those flags --- the least painful route to fixing this
is likely to be to upgrade to a newer CentOS release.
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Pali Rohár
2016-08-24 15:55:44 UTC
Permalink
Post by Tony White
inotify.c:92: warning: implicit declaration of function
‘inotify_init1’
Hi! You do not have header files with definition for system call
inotify_init1. That was added to Linux kernel 2.6.27.
Post by Tony White
CentOS 5.11
Looks like that you have only kernel 2.6.18, so I guess dnsmasq cannot
be compiled for such old distribution...
--
Pali Rohár
***@gmail.com
Loading...