[Pdns-users] Building pdns RPMs using custom LDAP libraries/headers

a b tripivceta at hotmail.com
Wed Apr 10 17:49:21 UTC 2013


> [root at vmres x86_64]# cat /etc/ld.so.conf
> include ld.so.conf.d/*.conf
> /usr/local/berkeleydb/lib64
> /usr/local/openldap/lib64

Forget ld.so.conf; properly linked binaries and libraries will never need it.

> [root at vmres x86_64]# ls -la /usr/local/openldap/lib64/liblber*
> lrwxrwxrwx 1 ldap ldap 20 Mar 20 17:06
> /usr/local/openldap/lib64/liblber-2.4.so.2 -> liblber-2.4.so.2.9.0
> -rw-r--r-- 1 ldap ldap 160959 Mar 12 16:39
> /usr/local/openldap/lib64/liblber-2.4.so.2.9.0
> -rw-r--r-- 1 ldap ldap 101556 Mar 12 16:40
> /usr/local/openldap/lib64/liblber.a
> -rw-r--r-- 1 ldap ldap 864 Mar 12 16:39
> /usr/local/openldap/lib64/liblber.la
> lrwxrwxrwx 1 ldap ldap 20 Mar 20 17:06
> /usr/local/openldap/lib64/liblber.so -> liblber-2.4.so.2.9.0

It seems /usr/lib64 and /usr/local/openldap/lib64 are being mixed up here.

If you want to link with libraries in /usr/local/openldap/lib64, you need:

LDFLAGS="${LDFLAGS} -L/usr/local/openldap/lib64 -rpath /usr/local/openldap/lib64"; export LDFLAGS
CPPFLAGS="${CPPFLAGS} -I/usr/local/openldap/include"; export CPPFLAGS

Which one is being linked in, /usr/lib64, or /usr/local/openldap/lib64/?

It has to be one or the other, but not both. 		 	   		  



More information about the Pdns-users mailing list