[Pdns-users] Building pdns RPMs using custom LDAP libraries/headers
a b
tripivceta at hotmail.com
Wed Apr 10 16:53:00 UTC 2013
Without looking at the SRPM, it is difficult to diagnose the
problem. I might look at it later, if I have some time. Please be
advised that this SRPM is a third party contributed SRPM, not the
canonical source package. The only package which could be con-
sidered canonical would be one from either redhat or CentOS. For
all intents and purposes, you might have uncovered a bug.
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libldap_r.so:
> undefined reference to `ber_sockbuf_io_udp'
> collect2: ld returned 1 exit status
The link editor cannot find the "ber_sockbuf_io_udp" symbol. I
need you to perform the following:
ldd /usr/lib64/libldap_r.so
nm /usr/lib64/*.so | fgrep ber_sockbuf_io_udp
See if you can find out if any shared object library has this
symbol in it. You can use nm(1) and fgrep(1) to accomplish that.
If that symbol cannot be found, then we have an answer.
> $ 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 2012 libldap-2.4.so.2 ->
> libldap.so
> -rw-r--r-- 1 root root 781914 Mar 20 15:57 libldapbackend.a
> -rwxr-xr-x 1 root root 1151 Mar 20 15:57 libldapbackend.la
> -rwxr-xr-x 1 root root 379419 Mar 20 15:57 libldapbackend.so
> lrwxrwxrwx. 1 root root 12 Sep 21 2012 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
That you have libraries there means absolutely nothing, unfor-
tunately. You are getting the error because the link editor can-
not locate the "ber_sockbuf_io_udp" symbol during the link phase.
More information about the Pdns-users
mailing list