[GRASSLIST:3904] Re: Grass5.0.0pre4 Installation Problems(cont.)

Glynn Clements glynn.clements at virgin.net
Tue Jun 18 11:15:06 EDT 2002


Neil.Murphy at axa.ie wrote:

> I feel the problem lies with curses.h. The directory
> /dist.i686-pc-linux-gnu/etc/ is missing lock and quite a few others aswell
> I checked all packages installed and all looks ok.Curses is definately
> installed and curses.h is there.
> 
> One of the errors from the config log is as follows
> 
> configure:3634: checking for curses.h
> configure:3642: gcc -E   conftest.c >/dev/null 2>conftest.out
> configure:3673: checking curses.h WINDOW structure component
> configure:3685: gcc -c -g -O2   conftest.c 1>&5
> configure: In function `main':
> configure:3681: structure has no member named `maxy'
> configure: failed program was:
> #line 3676 "configure"
> #include "confdefs.h"
> #include <curses.h>
> int main()
> {WINDOW w; w.maxy = 0;
> ; return 0; }
> configure:3703: gcc -c -g -O2   conftest.c 1>&5
> 
> Unfortunately I don't have the experience to know the next step so any help
> would be appreciated.

This is to be expected. The field may be named either maxy or _maxy;
configure.in checks for both:

	AC_TRY_COMPILE([
	#include <curses.h>
	  ],[WINDOW w; w.maxy = 0;],
	  CURSES_MAXY=maxy)

	AC_TRY_COMPILE([
	#include <curses.h>
	  ],[WINDOW w; w._maxy = 0;],
	  CURSES_MAXY=_maxy)

One of these tests is bound to fail.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-user mailing list