[Xastir] Cygwin Xastir help needed

Tom Russo russo at bogodyn.org
Sat Nov 13 08:59:04 EST 2004


On Sat, Nov 13, 2004 at 06:39:47AM -0700, we recorded a bogon-computron collision of the <russo at bogodyn.org> flavor, containing:
> On Sat, Nov 13, 2004 at 06:38:07AM -0700, we recorded a bogon-computron collision of the <russo at bogodyn.org> flavor, containing:
> > On Sat, Nov 13, 2004 at 04:31:48AM -0800, we recorded a bogon-computron collision of the <kk6rw at kk6rw.com> flavor, containing:
> > > Hello all,
> > > 
> > > I've tried to install shapelib support for Xastir under Cygwin. I seem to 
> > > have installed it properly but now I am getting errors during the 'make" 
> > > and 'make install' process. There are many error that I cannot type them 
> > > all here but I was hoping to get some help in learning how to dump out a 
> > > test listing to a file as it displays in the BASH shell. I've looked 
> > > through the BASH help but cannot find any mention of this function. Could 
> > > someone offer assistance?
> > > 
> > > It seems my problems are with a database as one of the first error lines 
> > > says:
> > > map_cache.c:37:16: db.h No such file or directory
> > 
> > There is new code here that is probably broken on Cygwin (and any other
> > platform that doesn't have Berkeley DB code.  Probably an un-ifdefed block 
> > somewhere.
> > 
> > I'll take a look and see if I can fix it.
> 
> OOOH!  No, maybe not.  

Actually, yes.  There is no ifdef of any sort that disables compilation of
map_cache if db.h doesn't exist, even though there's a configure test for it.
This is a bug that will prevent xastir from building on cygwin.

The fix should be simple --- I'm test compiling it on cygwin now and will 
commit it in a few minutes.  The anonymous CVS repository won't be up to date 
for a few hours (I think), so the fix is this: in map_cache.c there's an 
#ifdef USE_MAP_CACHE whose matching #endif is immediately after the "warning".  
Move the #endif to the end of the file so the entire thing is skipped 
if USE_MAP_CACHE isn't defined.  USE_MAP_CACHE is only defined if the Berkeley 
DB library and headers is found.

-- 
Tom Russo    KM5VY     SAR502  DM64ux         http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://www.qsl.net/~km5vy/
 "Politics consists of choosing between the disastrous and the unpalatable."
                                      -- John Kenneth Galbraith



More information about the Xastir mailing list