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

Re: Fatal error: Cannot map library libdb-4.2.so



Hi,

Just like said above, I'm running Tru64 UNIX v5.1B.

I've compiled BerkeleyDB.4.2.52 again, and OpenLDAP 2.2.13 again too. Berkeley gives no error, but when running OpenLDAP configure i've noticed the following warning:

_________________________________________________________
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no
checking for Berkeley DB link (-ldb-4.2)... yes
checking for Berkeley DB thread support... 50947:./conftest: /sbin/loader: Fatal Error: Reference to unresolvable symbol "pthread_mutexattr_init" in "/usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so"
no
checking Berkeley DB version for BDB backend... yes
_________________________________________________________

I believe it could be something wrong here when configure is running, right?

Jorge Ruão


Tim Seeley wrote:
Hello Jorge,
I've come into this thread part way through so my comment may be off the mark, but on Solaris I set LD_LIBRARY_PATH, rather than LD_RUN_PATH, for exactly this sort of issue.  What OS are you on?  Do you have LD_LIBRARY_PATH set?
Tim

At 00:15 06/07/2004, you wrote:
Hi,

I've set the LD_RUN_PATH with export, but it keeps giving me the error. I've also run lld libdb.4.2.so, everything goes as follows. Can be anything wrong with libdb-4.2.so?

root:~>cd /etc/
root:/etc>export LD_RUN_PATH="/usr/local/BerkeleyDB.4.2/lib/"

root:/etc>/usr/local/libexec/slapd
8932:/usr/local/libexec/slapd: /sbin/loader: Fatal Error: Cannot map library libdb-4.2.so

root:/etc>ldd /usr/local/libexec/slapd
8933:/usr/local/libexec/slapd: ldd: Fatal Error: Cannot generate dynamic dependencies for library libdb-4.2.so

root:/etc>cd /usr/local/BerkeleyDB.4.2/lib
root:/usr/local/BerkeleyDB.4.2/lib>ldd libdb-4.2.so

        Main  =>   libdb-4.2.so
        libc.so  =>   /usr/shlib/libc.so
root@tweety:/usr/shlib>ldd /usr/shlib/libc.so

        Main  =>   /usr/shlib/libc.so

If I should search in other place, could you please point me the direction?

Thanks,
Jorge Ruão

John Borwick wrote:
Quanah Gibson-Mount wrote:
[snip]
--On Monday, June 28, 2004 4:02 PM +0100 Jorge Ruão <jruao@fe.up.pt> wrote:
root@tweety:/usr/local/libexec>LD_RUN_PATH=/usr/local/BerkeleyDB.4.2/lib/
[snip]
root@tweety:/usr/local/libexec>ldd slapd
55883:slapd: ldd: Fatal Error: Cannot generate dynamic dependencies for
library libdb-4.2.so
[snip]

This isn't doing what you think it does.  You need to make LD_RUN_PATH available for subshells by exporting it:

tcsh: setenv LD_RUN_PATH "/usr/local/BerkeleyDB.4.2/lib/"
sh:   export LD_RUN_PATH="/usr/local/BerkeleyDB.4.2/lib/"

HTH,
John


Tim Seeley
Software Applications Developer
School of Informatics and Engineering, Flinders University
Phone: +61 8 8201 2139    (internal extension: 12139)