[Xastir] compile error

Curt Mills hacker at tc.fluke.com
Wed Jul 23 13:57:13 EDT 2003


On Wed, 23 Jul 2003, Curt Mills, WE7U wrote:

> On Wed, 23 Jul 2003, vic wrote:
>
> > now what am I missing:
> >
> > cc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -I/usr/X11R6/include
> > -DXASTIR_DATA_BASE=\"/usr/local/share/xastir\"  -g -O2 -pipe -pthread -c
> > `test -f 'map_geo.c' || echo './'`map_geo.c
> > map_geo.c: In function `draw_geo_image_map':
> > map_geo.c:154: `XpmAttributes' undeclared (first use in this function)
> > map_geo.c:154: (Each undeclared identifier is reported only once
> > map_geo.c:154: for each function it appears in.)
> > map_geo.c:154: parse error before "atb"
> > map_geo.c:670: `atb' undeclared (first use in this function)
> > map_geo.c:1169: `XpmSuccess' undeclared (first use in this function)
>
> It looks to me like the ifdef's that separate the code into XPM and
> ImageMagick pieces are broken in that routine.  It looks like
> map_tiger.c and maps.c are broken in a similar manner.
>
> If a system has neither ImageMagick nor XPM, or else just has
> ImageMagick but not XPM, things will break.  Is your system in one
> of these categories?  If so, don't fix that by installing either of
> them.  Let's get this problem fixed the right way first.

One more case:  XPM installed but not ImageMagick.  The only working
setup right now would be to have both libraries installed.  We need
to fix this.  This bug may have crept in when maps.c was broken up
into several source files.

It should be easy to test:  Tweak config.h in order to fake Xastir
out:  Tell it that one or both libraries are missing and recompile.
I can do that on my systems even though both libraries are
installed.

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list