Subject: | DHCP server with ldap support cannot link dynamically against bind |
Date: | Mon, 3 Apr 2017 15:15:43 +0200 |
To: | dhcp-bugs@isc.org |
From: | "Petr Menšík" <pemensik@redhat.com> |
Hi ISC,
there is problem with conflicting symbols. If dhcp server is configured
--with-ldap and --disable-static, it will use getaddrinfo from glibc
library.
However if bind library is linked dynamically using --with-libtool, it
will provide getaddrinfo symbol from irs library. If such bind library
is used in --with-libbind in dhcp, it breaks the server. It compiles fine.
However when started, recent openldap library will try to use
hint=AI_ADDRCONFIG in getaddrinfo. See [1] Because bind implementation
of lib/irs/getaddrinfo.c does no support such flag, it will always
return failure. Do I miss a way to link dhcp with ldap support, while
using only dynamic linking?
I have already reported it as suggestion #44024. Is there other
workaround than mentioned?
Best Regards,
Petr Menšík
[1]
https://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=blob;f=libraries/libldap/os-ip.c;h=c7cee927ad42dfb4412b72754fe47ae4d6a71541;hb=HEAD#l599