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

RE: dynamic vs static linking of db in 2.2.15



I've done the etc/ld.so.conf thing and that seemed to fix things for me.  I really don't see the static configure options that were there in 2.1.25 in the 2.2.15 configure script (not using --help and not in the configure script when openend in an editor).  This is clearly different than in 2.1.25.

The ld.so.conf is likely fine though.

Thanks!

Jamey



-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Tony Earnshaw
Sent: Thursday, August 12, 2004 10:37 PM
To: Openldap list
Subject: Re: dynamic vs static linking of db in 2.2.15


tor, 12.08.2004 kl. 22.15 skrev James Courtney:

[...]

> When I compile OpenLDAP 2.2.15 with the same script
> /apps/openldap/2.2.15/sbin/slapcat errors out with:
> 
> ./sbin/slapcat: error while loading shared libraries: libdb-4.2.so:
> cannot open shared object file: No such file or directory
> 
> When I strace this I see it trying to load libdb-4.2.so from many
> default OS locations and never /apps/db/4.2.52/lib.
> 
> The contents of my /apps/db/4.2.52/lib directory is:
> libdb-4.2.a  libdb-4.2.la  libdb-4.2.so  libdb-4.so  libdb.a  libdb.so
> 
> So all appears well there.
> 
> Is the "--with-bdb-module=static" option for the configure script
> still valid for 2.2.15?
> 
> I see it when I do ./configure --help for 2.1.25 but not for 2.2.15.
> 
> Am I going to HAVE to resort to using LD_LIBRARY_PATH?

You're using RHEL3? Add /apps/db/4.2.52/lib to /etc/ld.so.conf and run
ldconfig as root.

> I'd REALLY prefer to statically link this if I could.

./configure --help | less

--Tonni

-- 
My resume - CV - says that I speak a few languages fluently. I
have academic qualifications in all of them. It doesn't mention
"catese" or "dogese". I speak fluent catese and reasonable dogese,
but I've never taken any exams in them, never needed to.

mail: tonye@billy.demon.nl
http://www.billy.demon.nl