isc-dhcp41-server will not build with LDAP patch: checking whether ldap_initialize is declared... yes configure: error: in `/usr/ports/net/isc-dhcp41-server/work/dhcp-4.1-ESV-R7': configure: error: *** Unable to find ldap_initialize() See `config.log' for more details ===> Script "configure" failed unexpectedly. Please report the problem to douglas@douglasthrift.net [maintainer] and attach the "/usr/ports/net/isc-dhcp41-server/work/dhcp-4.1-ESV-R7/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/isc-dhcp41-server *** Error code 1 Stop. make: stopped in /usr/ports/net/isc-dhcp41-server Reviewing config.log: configure:6430: cc -o conftest -O2 -pipe -fPIC -DLDAP_DEPRECATED -fno-strict-aliasing -D_PATH_DHCLIENT_SCRIPT='"/usr/ local/sbin/dhclient-script"' -D_PATH_DHCLIENT_CONF='"/usr/local/etc/dhclient.conf"' -D_PATH_DHCPD_CONF='"/usr/local/etc/dhcpd.conf"' -I/usr/local/include -Wl,-rpath,/usr/lib:/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib conftest.c -lldap -llber >&5 /usr/bin/ld: cannot find -lldap How-To-Repeat: Attempt to build isc-dhcp41-server with LDAP patch enabled Fix: Fix currently unknown, worked as recent as isc-dhcp41-server-4.1.e_7,2
Created attachment 145671 [details] Patch to add LDFLAGs needed for LDAP patch to build Found a simple fix, just needed to add the LDFLAGs variable...
back to Douglas for 2nd time this week... Approval needed for LDAP patch.
I think that it should be -L${LOCALBASE}/lib like the other lines in there.
(In reply to douglas from comment #3) > I think that it should be -L${LOCALBASE}/lib like the other lines in there. I agree. I also think it's strange that LDFLAGS is needed after LIBS was introduced to this port. It doesn't hurt to have both LIBS and LDFLAGS though.
denis, can you add a new attachment and make the old one "obsolete"?
Created attachment 145711 [details] Add LDFLAGs variable required to build with LDAP support Updated patch to use $LOCALBASE
A commit references this bug: Author: marino Date: Tue Aug 12 15:06:57 UTC 2014 New revision: 364711 URL: http://svnweb.freebsd.org/changeset/ports/364711 Log: net/isc-dhcp41-server: Fix build with LDAP support PR: 192584 Submitted by: denis (inferno.incoherency.net) Approved by: maintainer (Douglas Thrift) Changes: head/net/isc-dhcp41-server/Makefile
Done, thanks!