Can't start isc-dhcpd-4.2.0 (PATCH)
Hans Liss
Hans at Liss.pp.se
Sun Sep 12 06:42:23 UTC 2010
The algorithm's domain must have been miscopied from that page, then.
I found the reason for the unclear error message. omapi_auth_key_enter()
in omapip/auth.c calls dst_key_free() to free an uninitialized pointer
when the algorithm is unknown, which triggers the REQUIRE().
Patch included, with a more informative error message added.
Best regards,
Hans
On 09/11/2010 11:22 PM, dhcp wrote:
> I got it here:
>
> http://alex.kruijff.org/FreeBSD/Dynamic_DNS.html
>
> With your change it now works. Or at least does not crash or error out. I
> don't have time today to test that DHCP is really working and not yet sure
> that DDNS still works. I will need to test both Sunday.
>
> Thanks,
> Guy
>
>
> } -----Original Message-----
> } From: dhcp-users-bounces+dhcp=watkins-home.com at lists.isc.org [mailto:dhcp-
> } users-bounces+dhcp=watkins-home.com at lists.isc.org] On Behalf Of Hans Liss
> } Sent: Saturday, September 11, 2010 1:14 PM
> } To: Users of ISC DHCP
> } Subject: Re: Can't start isc-dhcpd-4.2.0
> }
> } I can't claim to be an expert on dnssec, but I can reproduce your error
> } message (on a virtual ARM box), and it goes away if I change
> } "HMAC-MD5.SIGG.REG.INT" to "HMAC-MD5.SIG-ALG.REG.INT".
> }
> } Where did that algorithm specification come from?
> }
> } Best regards,
> }
> } Hans
> }
> } dhcp wrote:
> }> Am I beyond help? If so, just say so, and I will give up and continue
> } to
> }> use the older version.
> }>
> }> Thanks.
> }>
> }> } -----Original Message-----
> }> } From: dhcp-users-bounces+dhcp=watkins-home.com at lists.isc.org
> } [mailto:dhcp-
> }> } users-bounces+dhcp=watkins-home.com at lists.isc.org] On Behalf Of dhcp
> }> } Sent: Monday, September 06, 2010 8:36 PM
> }> } To: dhcp-users at lists.isc.org
> }> } Subject: Can't start isc-dhcpd-4.2.0
> }> }
> }> } 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
> }> }
> }> } _______________________________________________
> }> } dhcp-users mailing list
> }> } dhcp-users at lists.isc.org
> }> } https://lists.isc.org/mailman/listinfo/dhcp-users
> }>
> }> _______________________________________________
> }> dhcp-users mailing list
> }> dhcp-users at lists.isc.org
> }> https://lists.isc.org/mailman/listinfo/dhcp-users
> }>
> }
> } _______________________________________________
> } dhcp-users mailing list
> } dhcp-users at lists.isc.org
> } https://lists.isc.org/mailman/listinfo/dhcp-users
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcp-4.2.0.invalidalg.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100912/c7c53752/attachment.bin>
More information about the dhcp-users
mailing list