Compilation fails with LDAP option on, if IPV6 option unset: ... ld: error: undefined symbol: get_client_id >>> referenced by ldap.c >>> dhcpd-ldap.o:(find_client_in_ldap) cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[4]: *** [Makefile:493: dhcpd] Error 1 gmake[4]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.2/server' gmake[3]: *** [Makefile:921: all-recursive] Error 1 gmake[3]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.2/server' gmake[2]: *** [Makefile:463: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/net/isc-dhcp44-server/work/dhcp-4.4.2' *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/isc-dhcp44-server *** Error code 1 Stop. make: stopped in /usr/ports/net/isc-dhcp44-server
Does it work with the IPV6 option enabled? If so, why do you want to disable the IPV6 option? It might be best to simply remove it.
(In reply to Ryan Steinmetz from comment #1) Yes, it work with IPV6 option on. I don't use IPv6 on my net and after i disable IPV6 option with "make config" this error appears. How can i remove this option?
Enable the IPV6 option. See if isc-dhcp works for you. You don't need to disable it, even if you aren't using it.
(In reply to Ryan Steinmetz from comment #3) I understand :) (i've compiled the package before bug report). It was just information about a bad combination of options.
No worries, I'm going to make a commit to pretend this from recurring in the future. I just wanted to verify it did in fact all work with both options selected. Thanks!
A commit references this bug: Author: zi Date: Fri Sep 18 13:32:26 UTC 2020 New revision: 548888 URL: https://svnweb.freebsd.org/changeset/ports/548888 Log: - Ensure LDAP option implies IPV6 option to resolve build failure PR: 249405 Reported by: sciram@yandex.ru Changes: head/net/isc-dhcp44-server/Makefile