[Xastir-dev] Versions of DB?

Curt, WE7U archer at eskimo.com
Sun Dec 6 09:26:31 EST 2009


On Sun, 6 Dec 2009, Carl Makin wrote:

> Ok. I think FreeBSD installs the headers for each version in
> different directories so, theoretically, you can have multiple
> versions installed and compiled against without interference, you
> just have to manually specify where the headers and libraries are.
> My system has 4.1 and 4.3 installed and it seems to work ok.

Great, except that there's little control in the linker for what you
get linked against.  Berkeley DB library tends to like to crash if
you compiled for one API and then change to a newer version of the
library at link time that has a different API.

If you have a method to control what library Xastir will link
against when you run it, then you should be safe.  Because I didn't
have (or didn't know of) such a method with Linux, I added the
run-time code to disable use of the BDB library if this problem is
detected, saving Xastir from a nasty crash.

-- 
Curt, WE7U.                         <http://www.eskimo.com/~archer>
    APRS:  Where it's at!                    <http://www.xastir.org>
   Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir-dev mailing list