[Bug 1071928] Re: isc-dhcp-server-ldap (4.2.4-1ubuntu10.1) is not capable of ldap
Christian Hoffmann
1071928 at bugs.launchpad.net
Tue Jan 15 22:21:33 UTC 2013
I stumbled upon this problem as well.
The root cause is an error in the build process, more specifically the
debian/rules Makefile.
First, the ldap flavour of the binary is built and moved to isc-dhcp-server-ldap/dhcpd. This works as expected, the resulting binary contains ldap symbols as expected.
Then, the normal flavour is built. The binary is left in server/dhcpd (like in a vanilla build).
Then, both of these steps are repeated again, and this is the actual
problem. First, it's a useless step, second, it leads to the broken ldap
binary as no make (dist)clean is invoked inbetween which makes "make"
think that server/dhcpd is already the correct ldap binary (which it is
not; it is a left-over from the first normal build); afterwards, the
build process (debian/rules) overwrites the correct ldap binary in isc-
dhcp-server-ldap/dhcpd with a vanilla binary. The normal flavour is
"built" again as well, but this does not break anything.
The problem is complex and the patch is trivial, but I don't know if it
is correct. Works for me, but YMMV. The patch fixes this problem and
probably reduces build time, as the process runs only twice instead of 4
times.
The actual problem is that the "clean" target is invoked between builds,
which also calls dh_clean, which in fact removes all the *stamp files,
which usually avoid accidental duplicate builds. I've modified the build
target to call "buildclean", which does the same thing as before, just
without the dh_clean.
I would also consider this bug report really severe, as it renders the
given package completely unusuable and breaks existing setups.
** Patch added: "isc-dhcp-4.2.4-fix-ldap-build.patch"
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1071928/+attachment/3484291/+files/isc-dhcp-4.2.4-fix-ldap-build.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1071928
Title:
isc-dhcp-server-ldap (4.2.4-1ubuntu10.1) is not capable of ldap
Status in “isc-dhcp” package in Ubuntu:
New
Bug description:
When I try to start dhcpd (ldap) I get this error:
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 14: semicolon expected.
ldap-server "10.0.0.1"
^
/etc/dhcp/dhcpd.conf line 15: semicolon expected.
ldap-port 389;
^
Also ldd /usr/sbin/dhcpd is not reporting any ldap dependency
linux-vdso.so.1 => (0x00007fffff9ff000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3420324000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3420af7000)
And in the package dependency libldap is also not listed. So I guess isc-dhcp-server-ldap ist not compiled against ldap library.
I know from version 4.1.ESV-R4-0ubuntu5.5 that isc-dhcp-server-ldap
requires the libldap-2.4-2 library.
-Ivo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1071928/+subscriptions
More information about the foundations-bugs
mailing list