--On 25 januari 2012 13.47.34 -0800 Quanah Gibson-Mount quanah@zimbra.com wrote:
--On Wednesday, January 25, 2012 9:33 PM +0000 holm@informatik.umu.se wrote:
Full_Name: ?ke Holmlund Version: 2.4.28 OS: Solaris 10, Ubuntu 10.04 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (2001:6b0:e:4a43::25)
After compiling and installing OpenLDAP, the tools and servers are linked with the wrong library path. They use the libraries in the source tree instead of the installed libraries.
It sounds to me like you failed to correctly set your paths etc while compiling and installing then. I build OpenLDAP on some 20 different Linux distributions with a large variety of gcc and kernel releases, and the RPATH always correct.
I handle OpenLDAP the same way as all other software. This is basically what I do:
cd OpenLDAPsources mkdir builddir cd builddir env CFLAGS="-O2" \ ../configure \ --prefix=/opt/OpenLDAP \ --enable-shared \ --disable-static \ --sysconfdir=/var/conf \ --localstatedir=/var/conf/openldap/var \ --disable-hdb \ --disable-monitor \ --enable-rlookups \ --enable-accesslog \ --enable-modules make make install
Everything is installed in the right place but the rpath is wrong. One interesting thing. The executables are not created in the .libs direcotrys and they are not relinked at install. The .libs directorys are created but not used. The libraries, on the other hand, ARE created in the .libs directorys and relinked at install time.
Regards, Åke Holmlund
-------------------------------------------------------------------------- Åke Holmlund Phone: 090 - 786 57 16 Umeå University Fax: 090 - 786 65 50 Dept of Informatics Email: holm@informatik.umu.se 901 87 Umeå SWEDEN
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration