Re: [Dnsmasq-discuss] Compile Error.

2016-08-24 Thread Chris Novakovic
On 24/08/16 16:31, Tony White wrote:
> 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
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Compile Error.

2016-08-24 Thread Pali Rohár
On Wednesday 24 August 2016 17:31:19 Tony White wrote:
> 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.

> 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
pali.ro...@gmail.com


signature.asc
Description: This is a digitally signed message part.
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Compile Error.

2016-08-24 Thread Tony White

Hello all,
  I am hoping someone can point me to the reason I get this error
trying to compile dnsmasq?

[root@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


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss