[pkg-dhcp-devel] Bug#692808: isc-dhcp-server-ldap: "Semicolon expected" error for some LDAP/DHCP config options

Christian Hoffmann christian at hoffie.info
Wed Jan 16 21:31:57 UTC 2013


Hi,

I think the actual problem is that the binary provided by
isc-dhcp-server-ldap actually lacks LDAP support due to a build logic error.

I've been hit by this problem myself (although on Ubuntu, but I think
they use the same source) and I analyzed it and have a workaround (see
attached patch).

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.


Kind regards,

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: isc-dhcp-4.2.4-fix-ldap-build.patch
Type: text/x-patch
Size: 1028 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20130116/e1ea78c9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20130116/e1ea78c9/attachment.pgp>


More information about the pkg-dhcp-devel mailing list