On Tue, 19 Mar 2002, Clifford Thurber wrote:

> Hello,
> I recently installed BerkeleyDB 4.0.14 on a 7.1 system in order to run the 
> Cyrus IMAP server. When I try to start the application I am getting the 
> error message:
> 
> Compiled against 4.0.14 but linked against 3.1

 Sounds like you ended up linking to /lib/libdb.so and that was 3.x,
not your 4.x lib.  Make sure that ld is searching /usr/local/lib first
at link time, rather than run time, which is what LD_LIBRARY_PATH is
specifying.  You might need to link against "-ldb-4.0" not "-ldb" too.

> I have set my LD_LIBRARY_PATH variable to search /usr/local first. However 
> this has no effect on the behavior causing the message. I then edited 
> /etc/ld.so.config and placed /usr/local/lib near the top and ran ldconfig. 
> This didn't seem to remedy the problem either. It looks like the 3.1 
> library that is getting used for run time linking is part of the Red Hat 
> Distro so I don't want to muck with it. Can anybody give me some feedback 
> as to a work around for this?

 It sounds like you need to rebuild your app, at least redo the link
step, to make sure that you are looking for the right library.  It
sounds to me like ld is searching for the wrong library, in which case
it won't matter what search order you are using.

> Thanks



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to