[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LD_LIBRARY_PATH for make test
- To: openldap-devel@OpenLDAP.org
- Subject: LD_LIBRARY_PATH for make test
- From: Michael Ströder <michael@stroeder.com>
- Date: Thu, 19 Mar 2009 14:29:11 +0100
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090303 SeaMonkey/1.1.15
HI!
I'm running make test on a system where older OpenLDAP libs are
installed from the Linux distribution packages (here RPMs of openSUSE
11.1). This leads to problems during 'make test':
LDAP vendor version mismatch: library 20413, header 20416
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory
`/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory
`/usr/src/michael/openldap/OPENLDAP_REL_ENG_2_4/openldap/tests'
make: *** [test] Error 2
$ grep -r LD_LIBRARY_PATH tests/
tests/scripts/defines.sh:LD_LIBRARY_PATH=$TESTWD/../libraries:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
Hmm...
find libraries/ -name "*.so"
libraries/libldap_r/.libs/libldap_r.so
libraries/liblber/.libs/liblber.so
libraries/libldap/.libs/libldap.so
Does setting LD_LIBRARY_PATH in tests/scripts/defines.sh have any effect?
I've changed this line to (line wrapped)
LD_LIBRARY_PATH=$TESTWD/../libraries/liblber/.libs:$TESTWD/../libraries/libldap/.libs:$TESTWD/../libraries/libldap_r/.libs:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
and now it works as expected.
This might also be the reason that some tests failed in the past
although gdb reported that the right libs were used. But the symbols
were missing in gdb's stack trace.
Ciao, Michael.