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

Matthias Fischer matthias.fischer at ipfire.org
Tue Jan 5 20:01:41 GMT 2016


Hi,

On 05.01.2016 20:11, Matthias Andree wrote:
>> >Building always stops with the exact same errors, regardless if I use
>> >'2.75' with a total of 41 patches by now, or the original
>> >'2.75test4'-source.
> Does either compile without third-party patches?

Until now, it made no difference compiling "2.75" with *all* patches or
"2.76test4" without them: errors remain, building stops.

I tried "2.76test4" yesterday:

***SNIP***
Jan  4 22:46:25: Building dnsmasq dnsmasq-2.76test4.tar.xz checksum OK
+ cd /usr/src/lfs
+ make -f dnsmasq LFS_BASEDIR=/usr/src install
====================================== Installing dnsmasq-2.76test4 ...
Install started; saving file list to /usr/src/lsalr ...
cd /usr/src/dnsmasq-2.76test4 && patch -Np1 -i /usr/src/src/patches/dnsmasq-Add-support-to-read-ISC-DHCP-lease-file.patch
patching file src/cache.c
patching file src/dnsmasq.c
Hunk #1 succeeded at 990 (offset 8 lines).
patching file src/dnsmasq.h
patching file src/isc.c
patching file src/option.c
Hunk #1 succeeded at 1757 (offset 3 lines).
patching file Makefile
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'
make[2]: Entering directory '/usr/src/dnsmasq-2.76test4/src'
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c cache.c	
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c rfc1035.c	
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c util.c	
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c option.c	
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c forward.c	
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c network.c	
cc -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 -DHAVE_ISC_READER -DNO_INOTIFY  -DVERSION='"2.76test4"'            -c 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));
        ^
dnsmasq.c:55:7: warning: unused variable 'did_bind' [-Wunused-variable]
    int did_bind = 0;
        ^
dnsmasq.c:54:9: warning: unused variable 'bound_device' [-Wunused-variable]
    char *bound_device = NULL;
          ^
***SNAP***

Right now "2.75 + patches" is building after I removed:

...
-e 's|#define HAVE_DHCP|//#define HAVE_DHCP|g' \
...

Best,
Matthias




More information about the Dnsmasq-discuss mailing list