[Xastir] problems with xastir

Tom Russo russo at bogodyn.org
Thu Dec 20 14:52:05 EST 2012


On Thu, Dec 20, 2012 at 01:14:00PM -0500, we recorded a bogon-computron collision of the <lee.bengston at gmail.com> flavor, containing:
> On Wed, Dec 19, 2012 at 9:29 PM, Tom Russo <russo at bogodyn.org> wrote:
> > On Wed, Dec 19, 2012 at 08:31:27PM -0500, we recorded a bogon-computron collision of the <lee.bengston at gmail.com> flavor, containing:
> >> On Tue, Dec 18, 2012 at 10:38 PM, Denton Larson <wb0zur at gmail.com> wrote:
> >>
> >> Try this line instead:
> >>
> >> sudo apt-get install gpsman gpsmanshp libpcre3-dev libproj0
> >> libproj-dev libdb5.1-dev python-dev libax25-dev shapelib libshp-dev
> >> festival festival-dev libmagickcore-dev libgeotiff-dev
> >
> > AFAIK, Xastir doesn't use versions of Berkeley DB newer than 4.9.  That's
> > because its configure only probes up to that level --- if you look in
> > acinclude.m4, you'll find a loop over versions that starts at 4.9 and works
> > backward.
> >
> > I believe if you only have bdb 5.1 on your system, configure will report that
> > it can't do map caching.
> >
> > It *may* be possible to use these newer versions of BDB with Xastir --- if
> > so, then all it will take is changing that loop, rebootstrapping, reconfiguring,
> > and rebuilding.  But AFAIK nobody has tested it with such a new version.
> >
> > If you test Xastir and find that map caching works just fine with BDB 5.1,
> > then I'll happily modify the acinclude.m4 file in CVS.
> 
> I did get a 'yes' to everything except GDAL at the end of the
> configure script (left GDAL out on purpose).  Help about shows
> 'map_caching' as one of the libraries used.

How odd.   I can't see how Xastir's configure would find that.

Look at your config.log --- when it reports that it found a BDB, does it 
say it is using -ldb5.1 or something like it (search down for where it
is probing for berkeley db, and it should say first:

checking for a library containing db_create

and much later something like:

result: -ldbXXX

Or are you playing some game with $LIBS and $LDFLAG that is letting it find
db_create before it probes anything else?

The loop in acinclude's XASTIR_BERKELEY_DB_CHK_LIB macro does NOT probe
for the 5.x versions, only 4.9 down to 4.0.  I have no idea how it would pick
up any 5.x version unless you had done something special to help it out.

The only question in my mind is whether maybe you ALSO have a 4.x version
installed and it's finding that.  "Help->About" doesn't actually report the
db version it found, only whether it found a usable one (in which case it
reports "map_caching" as a "library used" which is misleading).

If you do an ldd on the xastir binary, which shared library version of Berkeley
DB does it say it's linked against?

> Just noticed that the latest version of Berkeley DB available for
> Ubuntu 12.10 is actually 5.3 - including a dev package, so I probably
> should have tried that.  Version 5.1 seems to be working - is there a
> way to verify for certain that map caching is functioning in Xastir?

Move the directory containing cached maps to someplace else, and go pull down
an online map other than OSM (which uses a different mechanism) such as a 
terraserver map.  If it creates a cache file and then subsequently doesn't 
pause to download a new copy, it's working.

You can then move your cache directory back so you don't lose any previously
cached maps.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
 echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]

 





More information about the Xastir mailing list