[Pdns-users] Building pdns RPMs using custom LDAP libraries/headers
Nikolaos Milas
nmilas at admin.noa.gr
Tue Mar 19 18:13:12 UTC 2013
On 19/3/2013 6:02 μμ, bert hubert wrote:
> Can you try LIBS=-L/usr/local/openldap/lib64 ./configure ...
> ?
>
> And can you double check a libldap.so lives there?
Thanks,
I just tried:
LIBS="-L/usr/local/openldap/lib64"
and (just in case):
LIBS="${LIBS} -L/usr/local/openldap/lib64"
but it always fails:
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ldap_set_option in -lldap_r... no
checking for ldap_set_option in -lldap... no
configure: error: ldap library (libldap) not found
error: Bad exit status from /var/tmp/rpm-tmp.Ng5O8F (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.Ng5O8F (%build)
although:
$ ls -la /usr/local/openldap/lib64
total 4368
drwxr-xr-x. 2 ldap ldap 4096 Sep 21 23:20 .
drwxr-xr-x. 10 ldap ldap 4096 Sep 21 23:20 ..
lrwxrwxrwx. 1 ldap ldap 20 Sep 21 23:20 liblber-2.4.so.2 ->
liblber-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 160919 Sep 21 23:14 liblber-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 101556 Sep 21 23:15 liblber.a
-rw-r--r--. 1 ldap ldap 864 Sep 21 23:14 liblber.la
lrwxrwxrwx. 1 ldap ldap 20 Sep 21 23:20 liblber.so ->
liblber-2.4.so.2.8.4
lrwxrwxrwx. 1 ldap ldap 20 Sep 21 23:20 libldap-2.4.so.2 ->
libldap-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 1121334 Sep 21 23:14 libldap-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 543372 Sep 21 23:15 libldap.a
-rw-r--r--. 1 ldap ldap 924 Sep 21 23:14 libldap.la
lrwxrwxrwx. 1 ldap ldap 22 Sep 21 23:20 libldap_r-2.4.so.2 ->
libldap_r-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 1230174 Sep 21 23:14 libldap_r-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 602292 Sep 21 23:15 libldap_r.a
-rw-r--r--. 1 ldap ldap 947 Sep 21 23:14 libldap_r.la
lrwxrwxrwx. 1 ldap ldap 22 Sep 21 23:20 libldap_r.so ->
libldap_r-2.4.so.2.8.4
lrwxrwxrwx. 1 ldap ldap 20 Sep 21 23:20 libldap.so ->
libldap-2.4.so.2.8.4
lrwxrwxrwx. 1 ldap ldap 21 Sep 21 23:20 libslapi-2.4.so.2 ->
libslapi-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 464586 Sep 21 23:14 libslapi-2.4.so.2.8.4
-rw-r--r--. 1 ldap ldap 207304 Sep 21 23:15 libslapi.a
-rw-r--r--. 1 ldap ldap 862 Sep 21 23:14 libslapi.la
lrwxrwxrwx. 1 ldap ldap 21 Sep 21 23:20 libslapi.so ->
libslapi-2.4.so.2.8.4
But, as I mentioned, it even fails without any change in the spec file,
simply trying to build with the standard CentOS 6 OpenLDAP packages. In
that case, it should be using the default system lib dir:
$ ls -la /usr/lib64/ | grep ldap
drwxr-xr-x. 4 root root 4096 Mar 11 16:06 evolution-openldap
lrwxrwxrwx. 1 root root 10 Sep 21 15:16 libldap-2.4.so.2 -> libldap.so
lrwxrwxrwx. 1 root root 12 Sep 21 15:16 libldap_r-2.4.so.2 ->
libldap_r.so
lrwxrwxrwx 1 root root 29 Mar 11 16:06 libldap_r.so ->
/lib64/libldap_r-2.4.so.2.5.6
lrwxrwxrwx 1 root root 27 Mar 11 16:06 libldap.so ->
/lib64/libldap-2.4.so.2.5.6
-rwxr-xr-x 1 root root 40320 Feb 22 09:49 libsmbldap.so.0
Any other ideas?
Thanks,
Nick
More information about the Pdns-users
mailing list