Hi,

On 05.01.2016 17:05, Lonnie Abelbeck wrote:
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' \
--

Thanks, but sorry, it seems that this worked only partially:

***SNIP***
cd /usr/src/dnsmasq-2.75 && patch -Np1 -i 
/usr/src/src/patches/dnsmasq/041-Fix_botch_in_new_arp-cache_linked-list_code_resulting_in_100percent_CPU_spin.patch
patching file src/arp.c
cd /usr/src/dnsmasq-2.75 && 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
patching file src/dnsmasq.h
patching file src/isc.c
patching file src/option.c
patching file Makefile
cd /usr/src/dnsmasq-2.75 && 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_SCRIPT|//#define HAVE_SCRIPT|g' \
        -e 's|#define HAVE_TFTP|//#define HAVE_TFTP|g'
cd /usr/src/dnsmasq-2.75 && 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.75'
make[2]: Entering directory '/usr/src/dnsmasq-2.75/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.75"'            -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.75"'            -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.75"'            -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.75"'            -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.75"'            -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.75"'            -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.75"'            -c dnsmasq.c      
dnsmasq.c: In function 'main':
dnsmasq.c:933:7: warning: implicit declaration of function 'do_script_run' 
[-Wimplicit-function-declaration]
       while (do_script_run(now));
       ^
dnsmasq.c:934:14: error: too many arguments to function 'do_arp_script_run'
       while (do_arp_script_run(now));
              ^
In file included from dnsmasq.c:20:0:
dnsmasq.h:1534:5: note: declared here
 int do_arp_script_run(void);
     ^
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;
         ^
/usr/src/dnsmasq-2.75/Makefile:157: recipe for target 'dnsmasq.o' failed
make[2]: *** [dnsmasq.o] Error 1
make[2]: Leaving directory '/usr/src/dnsmasq-2.75/src'
Makefile:83: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/dnsmasq-2.75'
dnsmasq:74: recipe for target '/usr/src/log/dnsmasq-2.75' failed
make: *** [/usr/src/log/dnsmasq-2.75] Error 2
***SNAP***

The only thing that disappeared where the 'warning' about 'isc.c':

...
isc.c: In function 'dhcp_lease_new':
isc.c:40:3: warning: ignoring return value of 'asprintf', declared with 
attribute warn_unused_result [-Wunused-result]
   asprintf(&lease->fqdn, "%s.%s", hostname, daemon->domain_suffix);
   ^
...

This no longer shows up.

If it helps, this is the lfs-file I'm using right now:

***SNIP***
###############################################################################
#                                                                             #
# IPFire.org - A linux based firewall                                         #
# Copyright (C) 2015  Michael Tremer & Christian Schmidt                      #
#                                                                             #
# This program is free software: you can redistribute it and/or modify        #
# it under the terms of the GNU General Public License as published by        #
# the Free Software Foundation, either version 3 of the License, or           #
# (at your option) any later version.                                         #
#                                                                             #
# This program is distributed in the hope that it will be useful,             #
# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
# GNU General Public License for more details.                                #
#                                                                             #
# You should have received a copy of the GNU General Public License           #
# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
#                                                                             #
###############################################################################

###############################################################################
# Definitions
###############################################################################

include Config

VER        = 2.75

THISAPP    = dnsmasq-$(VER)
DL_FILE    = $(THISAPP).tar.xz
DL_FROM    = $(URL_IPFIRE)
DIR_APP    = $(DIR_SRC)/$(THISAPP)
TARGET     = $(DIR_INFO)/$(THISAPP)

# We cannot use INOTIFY because our ISC reader code does not support that
COPTS      = -DHAVE_ISC_READER -DNO_INOTIFY

###############################################################################
# Top-level Rules
###############################################################################

objects = $(DL_FILE)

$(DL_FILE) = $(DL_FROM)/$(DL_FILE)

$(DL_FILE)_MD5 = 887236f1ddde6eb57cdb9d01916c9f72

install : $(TARGET)

check : $(patsubst %,$(DIR_CHK)/%,$(objects))

download :$(patsubst %,$(DIR_DL)/%,$(objects))

md5 : $(subst %,%_MD5,$(objects))

###############################################################################
# Downloading, checking, md5sum
###############################################################################

$(patsubst %,$(DIR_CHK)/%,$(objects)) :
        @$(CHECK)

$(patsubst %,$(DIR_DL)/%,$(objects)) :
        @$(LOAD)

$(subst %,%_MD5,$(objects)) :
        @$(MD5)

###############################################################################
# Installation Details
###############################################################################

$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/001-include_0_0_0_0_8_in_DNS_rebind_checks.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/002-enhance_add_subnet_to_allow_arbitary_subnet_addresses.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/003-dont_answer_non_auth_queries_for_auth_zones_locally_when_localise_queries_set.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/004-fix_behaviour_of_empty_dhcp-option.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/005-suggest_solution_to_ENOMEM_error_with_IPv6_multicast.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/006-clarify_man_page_on_RDNSS_set_in_router_advertisement.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/007-handle_signed_dangling_CNAME_replies_to_DS_queries.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/008-DHCPv6_option_56_does_not_hold_an_address_list.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/009-Respect_the_--no_resolv_flag_in_inotify_code.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/010-Rationalise_5e3e464ac4022ee0b3794513abe510817e2cf3ca.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/011-Catch_errors_from_sendmsg_in_DHCP_code.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/012-Update_list_of_subnet_for_--bogus-priv.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/013-Fix_crash_when_empty_address_from_DNS_overlays_A_record_from.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/014-Handle_unknown_DS_hash_algos_correctly.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/015-Fix_crash_at_start_up_with_conf-dir.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/016-Major_rationalisation_of_DNSSEC_validation.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/017-Abandon_caching_RRSIGs_and_returning_them_from_cache.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/018-Move_code_which_caches_DS_records_to_a_more_logical_place.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/019-Generalise_RR-filtering_code_for_use_with_EDNS0.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/020-DNSSEC_validation_tweak.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/021-Tweaks_to_EDNS0_handling_in_DNS_replies.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/022-Tidy_up_DNSSEC_non-existence_code_Check_zone_status_is_NSEC_proof_bad.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/023-Fix_brace_botch_in_dnssec_validate_ds.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/024-Do_a_better_job_of_determining_which_DNSSEC_sig_algos_are_supported.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/025-Major_tidy_up_of_EDNS0_handling_and_computation_use_of_udp.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/026-More_tweaks_in_handling_unknown_DNSSEC_algorithms.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/027-Nasty_rare_and_obscure_off-by-one_in_DNSSEC_hostname_cmp.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/028-Minor_tweak_to_previous_commit.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/029-NSEC3_check_RFC5155_para_8_2.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/030-Split_EDNS0_stuff_into_its_own_source_file.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/031-Handle_extending_EDNS0_OPT_RR.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/032-Truncate_DNS_replies_bigger_512_bytes_that_the_client_isnt_expecting.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/033-Fix_build_failure_when_DNSSEC_code_omitted.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/034-Log_signature_algo_with_DNSKEY_and_DS_also_digest_with_DS.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/035-More_EDNS0_packet_size_tweaks.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/036-Cache_access_to_the_kernels_ARP_table.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/037-First_complete_version_of_DNS-client-id_EDNS0_and_ARP_tracking_code.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/038-Correct_logic_for_when_to_start_helper.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/039-Trivial_code_tweak.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/040-Fix_datatype-sixe_botch_which_broke_DNSSEC_sig_timestamps_when_far_in_the_future.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq/041-Fix_botch_in_new_arp-cache_linked-list_code_resulting_in_100percent_CPU_spin.patch
        cd $(DIR_APP) && patch -Np1 -i 
$(DIR_SRC)/src/patches/dnsmasq-Add-support-to-read-ISC-DHCP-lease-file.patch

        cd $(DIR_APP) && 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_SCRIPT|//#define HAVE_SCRIPT|g' \
                -e 's|#define HAVE_TFTP|//#define HAVE_TFTP|g'

        cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" COPTS="$(COPTS)" \
                PREFIX=/usr all install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
***SNAP***

Best,
Matthias


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

Reply via email to