[Dnsmasq-discuss] Hint needed: neither patched 'dnsmasq 2.75' nor '2.76test4' will compile

Lonnie Abelbeck lists at lonnie.abelbeck.com
Tue Jan 5 16:05:42 GMT 2016


On Jan 4, 2016, at 7:13 PM, Matthias Fischer <matthias.fischer at ipfire.org> wrote:

> Hi,
> 
> sorry, this will be rather long...
> 
> I'm trying to compile 'dnsmasq 2.75' (for use with 'IPFire 2.17 (i586) - core95') with
> all available patches but I'm always runnning into errors.
...
> cd /usr/src/dnsmasq-2.76test4 && sed -i src/config.h \
> 	-e 's|/\* #define HAVE_IDN \*/|#define HAVE_IDN|g' \
> 	-e 's|/\* #define HAVE_DNSSEC \*/|#define HAVE_DNSSEC|g' \
> 	-e 's|#define HAVE_DHCP|//#define HAVE_DHCP|g' \
> 	-e 's|#define HAVE_DHCP6|//#define HAVE_DHCP6|g' \
> 	-e 's|#define HAVE_TFTP|//#define HAVE_TFTP|g'
> cd /usr/src/dnsmasq-2.76test4 && make CFLAGS="-O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fPIC -fstack-protector-all --param=ssp-buffer-size=4 -march=i586 -mtune=generic -fomit-frame-pointer" COPTS="-DHAVE_ISC_READER -DNO_INOTIFY" \
> 	PREFIX=/usr all install
> make[1]: Entering directory '/usr/src/dnsmasq-2.76test4'
> ...
> dnsmasq.c	
> dnsmasq.c: In function 'main':
> dnsmasq.c:922:7: warning: implicit declaration of function 'do_script_run' [-Wimplicit-function-declaration]
>       while (helper_buf_empty() && do_script_run(now));
>       ^

Hi Matthias,

It seems you have disabled HAVE_DHCP with enabled HAVE_SCRIPT.

Try disabling HAVE_SCRIPT in your build system...
--
	-e 's|#define HAVE_SCRIPT|//#define HAVE_SCRIPT|g' \
--

Lonnie




More information about the Dnsmasq-discuss mailing list