Bug 249405

Summary: net/isc-dhcp44-server build without IPV6 fails, if LDAP is on
Product: Ports & Packages Reporter: sciram
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (zi)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description sciram 2020-09-17 19:35:01 UTC
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
Comment 1 Ryan Steinmetz freebsd_committer freebsd_triage 2020-09-17 19:38:29 UTC
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.
Comment 2 sciram 2020-09-17 20:41:31 UTC
(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?
Comment 3 Ryan Steinmetz freebsd_committer freebsd_triage 2020-09-17 20:54:52 UTC
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.
Comment 4 sciram 2020-09-18 13:27:48 UTC
(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.
Comment 5 Ryan Steinmetz freebsd_committer freebsd_triage 2020-09-18 13:30:26 UTC
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!
Comment 6 commit-hook freebsd_committer freebsd_triage 2020-09-18 13:33:08 UTC
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