[Pdns-users] 2.9.22 compile problem with ldap
Gary at primeexalia.com
Wed Jun 24 19:45:04 UTC 2009
I'm going to try a couple different approaches. First I'll see if I can 86's the /usr/lib files and see if it defaults to the proper place. For some reason, when I install the mysql-devel rpm package, it intalls 32+64 bit in turn install ldap 32+64, which could be causing the problem.
Barring that, I will put the LDFLAG into the spec file set to the environment lib, which in this case should default to /usr/lib64.
When I find the solution, I'll update the list.
From: pdns-users-bounces at mailman.powerdns.com [pdns-users-bounces at mailman.powerdns.com] On Behalf Of Norbert Sendetzky [norbert at linuxnetworks.de]
Sent: Wednesday, June 24, 2009 12:27 PM
To: pdns-users at mailman.powerdns.com
Subject: Re: [Pdns-users] 2.9.22 compile problem with ldap
On Mon June 22 2009 19:41:30 Gary Smith wrote:
> checking for ldap_set_option in -lldap_r... no
> checking for ldap_set_option in -lldap... no
> configure: error: ldap library (libldap) not found
> Reverting back to 184.108.40.206, it compiles fine. Obvisouly ldap is installed.
In 2.9.21 there are no checks if the LDAP libraries are available. Compilation
just fails without any notice before during the ./configure run.
> [root at BUILD x86_64 pdns-2.9.22]$ ls -l /usr/lib64/libldap*
> lrwxrwxrwx 1 root root 21 Jun 19 18:49 /usr/lib64/libldap-2.3.so.0 ->
> libldap-2.3.so.0.2.15 -rwxr-xr-x 1 root root 238504 Jul 9 2008
> /usr/lib64/libldap-2.3.so.0.2.15 -rw-r--r-- 1 root root 478330 Jul 9 2008
> lrwxrwxrwx 1 root root 21 Jun 20 07:25 /usr/lib64/libldap.so ->
> libldap-2.3.so.0.2.15 lrwxrwxrwx 1 root root 23 Jun 19 18:49
> /usr/lib64/libldap_r-2.3.so.0 -> libldap_r-2.3.so.0.2.15 -rwxr-xr-x 1 root
> root 256720 Jul 9 2008 /usr/lib64/libldap_r-2.3.so.0.2.15 -rw-r--r-- 1
> root root 526432 Jul 9 2008 /usr/lib64/libldap_r.a
> lrwxrwxrwx 1 root root 23 Jun 20 07:25 /usr/lib64/libldap_r.so ->
It looks like in 64Bit mode only the libraries in /usr/lib are found which
aren't usable in this case so configure fails. Could you try use
LDFLAGS="-L/usr/lib64" ./configure ...
Perhaps it helps. I haven't found much on the web about autoconf and this
OpenPGP public key
More information about the Pdns-users