[GRASS-user] Compiling grass 6.2.1: i.class error

Glynn Clements glynn at gclements.plus.com
Fri Mar 9 12:59:56 EST 2007


Sean Fulton wrote:

> >> I'm trying to compile 6.2.1 on Mac OS X 10.4.8.  I get an undefined
> >> symbol (_I_vask_subgroup_old) error compliling i.class.
> >> 
> >> Can anyone point me in the right direction for resolving this? Output is below.
> > 
> > How/where did you get the source code? The file containing that
> > function (lib/imagery/vask_group.c) has been removed from the CVS
> > trunk, but is still present in the 6.2 branch.
> > 
> > Also, if you have a 6.3 version installed such that the linker will
> > find its libraries, that could potentially cause this problem.
> 
> So, are you recommending using the CVS version? (I'd rather not)

No, I was just suggesting one possible explanation. But I may have
found another.

> Is there any clue to what the problem is?

The body of lib/imagery/vask_group.c is conditionalised upon:

	#ifdef HAVE_CURSES_H

Is HAVE_CURSES_H defined in include/config.h and/or
dist.i686-apple-darwin8.8.1/include/config.h?

If not, that would explain the problem. However, failure to detect
curses.h should be a fatal configure error; unless you use
--without-curses, and I would expect more than just i.class to fail in
that situation.

[Although curses is technically an optional dependency, a lot of GRASS
components require it, and many of them don't explicitly check for its
presence; they just assume it is available and fail (with an error) if
it isn't.]

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list