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

Re: library links...

Most likely, you didn't set a proper RPATH when building OpenLDAP. I'm
guessing this is Solaris; you can try using "ldd -vs" to verify your
search paths. If they appear incorrect, you can use crle(1) or
LD_LIBRARY_PATH environment variables (ld.so.1(1) man page) to alter the
search path at runtime. You might also consider setting LDFLAGS at build
time to alter the search path at link time.

Just because a RPATH works in your build environment doesn't necessarily
mean it'll work in your run environment.

On Tue, 4 May 2004, Mark wrote:

> so i got this error that most likely means the library linking somewhere
> is busted..
> log says
> needlefish slapd[19859]: [ID 702911 auth.error] unable to dlopen
> /usr/depot-local/SunOS_5.8_sparc/cyrus-sasl/2.1.18/lib/sasl2/libsasldb.so.2:
> ld.so.1:
> /usr/depot-local/SunOS_5.8_sparc/openldap/current/libexec/slapd: fatal:
> libdb-4.2.so: open failed: No such file or directory
> ldd shows
>  ldd /usr/depot-local/SunOS_5.8_sparc/cyrus-sasl/2.1.18/lib/sasl2/libsasldb.so.2
>         libresolv.so.2 =>        /usr/lib/libresolv.so.2
>         libsocket.so.1 =>        /usr/lib/libsocket.so.1
>         libdb-4.2.so =>  (file not found)
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libnsl.so.1 =>   /usr/lib/libnsl.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         libmp.so.2 =>    /usr/lib/libmp.so.2
>         /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> so clearly it shows that the libdb-4.2.so is not found..and hence the
> fail..right?
> but my question is..if it says not found..how did i compile the openldap
> without errors?