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

Sean Fulton seanasy at gmail.com
Tue Mar 13 11:34:09 EDT 2007


On 2007-03-09 12:59:56 -0500, Glynn Clements <glynn at gclements.plus.com> said:

> 
> 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.]

Actually, I'm an idiot.

I forgot to 'make clean' before making changes to configure and 
recompiling. The older built libs were still in the dist directory.

Sorry for bugging you. Hopefully it will serve as a lesson for someone 
in the future.

	Sean





More information about the grass-user mailing list