Can't start isc-dhcpd-4.2.0

dhcp dhcp at watkins-home.com
Tue Sep 7 00:36:04 UTC 2010


I have an ARM based computer and want to run isc-dhcpd-4.2.0.  Currently
have isc-dhcpd-4.1.1-P1 working on another such computer and it works fine.
I am attempting to use the same dhcpd.conf file that I use on the 3.x dhcpd.

I did these:
./configure
make
as root: make install
put my dhcpd.conf in /etc

Then below:

[root at nas2 sbin]# ./dhcpd -4
Internet Systems Consortium DHCP Server 4.2.0
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
../../../lib/dns/dst_api.c:1023: REQUIRE(keyp != ((void *)0) && (((*keyp) !=
((void *)0)) && (((const isc__magic_t *)(*keyp))->magic == ((('D') << 24 |
('S') << 16 | ('T') << 8 | ('K')))))) failed.
Aborted

[guy at nas2 dhcp-4.2.0]$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for prefix by checking for dhcpd... no
checking for dhcpd.leases location.../var/lib/dhcpd.leases
checking for dhcpd6.leases location.../var/lib/dhcpd6.leases
checking for dhclient.leases location.../var/lib/dhclient.leases
checking for dhclient6.leases location.../var/lib/dhclient6.leases
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/filter.h... yes
checking for struct lifnum... no
checking for struct if_laddrconf... no
checking for struct if_laddrreq... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/if6.h usability... no
checking net/if6.h presence... no
checking for net/if6.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for library containing MD5_Init... -lcrypto
checking for library containing MD5Init... no
checking for library containing socket... none required
checking for library containing inet_ntoa... none required
checking for library containing inet_aton... none required
checking for library containing regcomp... none required
checking for library containing if_nametoindex... none required
checking for /dev/random... yes
checking for struct sockaddr.sa_len... no
checking for struct iaddr *... yes
checking size of struct iaddr *... 4
checking for struct msghdr.msg_control... yes
checking for flexible array members... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating client/Makefile
config.status: creating common/Makefile
config.status: creating common/tests/Makefile
config.status: creating dhcpctl/Makefile
config.status: creating dst/Makefile
config.status: creating includes/Makefile
config.status: creating omapip/Makefile
config.status: creating relay/Makefile
config.status: creating server/Makefile
config.status: creating tests/Makefile
config.status: creating includes/config.h
config.status: executing depfiles commands
[guy at nas2 dhcp-4.2.0]$

Make did give these warnings:
building in /home/guy/dhcp-4.2.0/bind/bind-9.7.1/lib/export
../../../../lib/isc/nothreads/condition.c:24: warning: âisc__emptyâ defined
but not used
../../../../lib/isc/nothreads/mutex.c:24: warning: âisc__emptyâ defined but
not used
../../../lib/dns/openssl_link.c:329: warning: âisc__emptyâ defined but not
used
../../../lib/dns/openssldh_link.c:666: warning: âisc__emptyâ defined but not
used
../../../lib/dns/openssldsa_link.c:635: warning: âisc__emptyâ defined but
not used
../../../lib/dns/opensslrsa_link.c:1419: warning: âisc__emptyâ defined but
not used

[root at nas2 etc]# cat dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
        allow unknown-clients;
        allow bootp;
        get-lease-hostnames false;
        use-host-decl-names on;
        authoritative;

        option domain-name "watkins-home.com";
        ddns-domainname "watkins-home.com";
        option domain-name-servers 192.168.0.1;
        option routers 192.168.0.1;
        option ntp-servers 192.168.0.1;
        default-lease-time 2592000;
        max-lease-time 5184000;
        ddns-update-style interim;
        update-static-leases on;

# http://www.semicomplete.com/articles/dynamic-dns-with-dhcp/
# http://alex.kruijff.org/FreeBSD/Dynamic_DNS.html

        key dhcpupdate {
                algorithm hmac-md5;
                secret blablabla==;
        }


# DHCP_UPDATER. IN KEY 0 2 157 blablabla==

        key DHCP_UPDATER
        {
         algorithm HMAC-MD5.SIGG.REG.INT;
         secret blablabla==;
        };
# if I delete the above ; I get Segmentation fault.

        zone watkins-home.com.
        {
         primary 192.168.0.1;
         key dhcpupdate;
        }

        zone 0.168.192.in-addr.arpa.
        {
         primary 192.168.0.1;
         key dhcpupdate;
        }

        subnet 192.168.0.0 netmask 255.255.255.0
        {
          pool
          {
            range 192.168.0.100 192.168.0.199;
            deny unknown clients;
          }
          pool
          {
            range 192.168.0.200 192.168.0.249;
            allow unknown clients;
            if exists host-name
            {
              ddns-hostname = lcase (option host-name);
            }
              else
            {
               ddns-hostname = concat("dhcp-", binary-to-ascii(10, 8, "-",
leased-address));
            }
          }
        }

        subnet 172.16.149.0 netmask 255.255.255.0
        {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
        }

        subnet 192.168.84.0 netmask 255.255.255.0
        {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
        }

Any idea what I am doing wrong?

Thanks,
Guy




More information about the dhcp-users mailing list