[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5929) 'make test' uses installed libldap_r/liblber

Full_Name: Hallvard B Furuseth
Version: HEAD
OS: RedHat Linux x86_64
Submission from: (NULL) (
Submitted by: hallvard

"make test" uses installed instead of newly built libraries,
with ./configure --enable-dynamic LDFLAGS=<installed lib>.

It works if either --enable-dynamic or LDFLAGS is omitted.

Minimal test:

p=/site/ldap/install    # ...or wherever OpenLDAP is installed
./configure --quiet --prefix=$p --enable-dynamic \
	--disable-databases --disable-overlays --enable-ldap \
	CPPFLAGS="-I$p/include" LDFLAGS="-L$p/lib -Wl,-rpath,$p/lib"
make -s depend all

Edit servers/slapd/slapd (a wrapper script from libtool): Insert
      echo ""
      ldd  "$progdir/$program" | grep libl >&2
      printenv | egrep '^(GCC|[A-Z_0-9]*PATH).*/' >&2
      exec "$progdir/$program" ${1+"$@"}

cd tests
./run -b ldif test029-ldapglue

Now "./run -b ldif test029-ldapglue" shows
        libldap_r-2-devel.so.0 => /site/ldap/install/lib/libldap_r-2-devel.so.0

        liblber-2-devel.so.0 => /site/ldap/install/lib/liblber-2-devel.so.0 

slapd#2 crashes unless the installed OpenLDAP is from February,
otherwise testrun/slapd.2.log says symbol ldap_pvt_search is missing.