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

RE: OpenLdap test fails



Maybe the best way to tell if you're having a dynamic linking problem on
Solaris is to use the "ldd" command, i.e.:

ldd slapd

If it reports any libraries not found, you have a problem.  The dynlinker
for Solaris 7 is pretty limited where it looks, and for Solaris 8 requires
using the crle command if you want to add default link paths.  Note that
you need to make sure you do this as the user that'll actually run the
executable, or at least be sure you don't have an LD_LIBRARY_PATH
environment variable that will skew the test.

When I have these sorts of problems I add a -R<path> option to the
LDFLAGS, like:

LDFLAGS="-L/usr/local/lib -R/usr/local/lib" ./configure ....

This embeds a link path in the executable so Solaris' linker will find it.
 Course, if you move the libraries, it may break the executable.
-Alan

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Voglmaier,
> Reinhard Erich
> Sent: martedì 27 gennaio 2004 13.33
> To: 'sh302@lycos.com'; openldap-software@OpenLDAP.org
> Subject: RE: OpenLdap test fails
>
>
> This happens when the slapd daemon fails to start. One reason could be
> that you used libraries which are located in "non standard" locations.
> Declare such locations with "LD_LIBRARY_PATH" to fix this.
>
> -----Original Message-----
> From: S D [mailto:sh302@lycos.com]
> Sent: martedì 27 gennaio 2004 2.52
> To: openldap-software@OpenLDAP.org
> Subject: OpenLdap test fails
>
>
>
> Hi, I have a solaris machine, the openldap compile have
> been successful (configure, make depend, make) but the
> "make test" fails.
>
> $ ./configure --with-cyrus-sasl --with-bdb --with-tls
> $ make depend
> $ make
> $ make test
> make[1]: Entering directory `/src/openldap-2.1.25/tests'
> ln: cannot create ./data: File exists
> make[1]: [test-bdb] Error 2 (ignored)
> ln: cannot create ./schema: File exists
> make[1]: [test-bdb] Error 2 (ignored)
> Initiating LDAP tests for BDB...
>>>>>> Executing all LDAP tests...
>>>>>> Test Directory: .
>>>>>> Backend: bdb
>>>>>> Starting test000-rootdse ...
> running defines.sh
> Datadir is ./data
> Cleaning up in ./test-db...
> Starting slapd on TCP/IP port 9009...
> Using ldapsearch to retrieve the root DSE...
> Waiting 5 seconds for slapd to start...
> Waiting 5 seconds for slapd to start...
> Waiting 5 seconds for slapd to start...
> ./scripts/test000-rootdse: kill: no such process
> ldap_bind: Can't contact LDAP server (81)
>>>>>> Test failed
>>>>>> ./scripts/test000-rootdse failed (exit 1)
> make[1]: *** [test-bdb] Error 1
>

===========
Alan Sparks, UNIX/Linux Systems Administrator    <asparks@doublesparks.net>