Problem compiling src/libes/gis

Jay jjwright at gandalf.rutgers.edu
Wed Jun 21 08:00:00 EDT 1995


I am trying to compile some of the src.contrib programs. 
I have a problem doing this because the copy of grass we have 
is just a binary taken from another machine.  

To make a long story short, the file /opt2/grass41/src/libes/LIB.sun4/libgis.a 
is missing and needs to be re-created first.  I am trying to compile
/opt2/grass41/src/libes/gis which creates this file, but when I do I
get an error, which follows:

climate{root}32: sh GISGEN.sun4 | & tee /tmp/GISGEN.out
GISBASE=/opt2/grass41
SRC=/opt2/grass41/src
CMD=/opt2/grass41/src/CMD
HEADER=sun4
ARCH=sun4
####################################################################
GISGEN                              Wed Jun 21 13:48:36 EDT 1995
 GISBASE = /opt2/grass41
 SRC     = /opt2/grass41/src
 CMD     = /opt2/grass41/src/CMD
 HEADER  = sun4
 ARCH    = sun4

first step: src/libes/gis

GISGEN: src/libes/gis - Wed Jun 21 13:48:46 EDT 1995

#################################################################
/opt2/grass41/src/libes/gis
  make -f OBJ.sun4/make.rules

rm -f OBJ.sun4/intr_char.o
gcc -O -DGETHOSTNAME_UNAME -I/opt2/grass41/src/include  -c intr_char.c
intr_char.c: In function `G_intr_char':
intr_char.c:17: storage size of `buf' isn't known
*** Error code 1
make: Fatal error: Command failed for target `OBJ.sun4/intr_char.o'
GISGEN failure at STEP: src/libes/gis
climate{root}33: 

THE CODE OF THIS ROUTINE IS:

climate{jjwright}5: more intr_char.c
#ifdef USE_TERMIO
# include <termio.h>
# define TYPE termio
# define C c_cc[VINTR]
# define GET TCGETA
#else
# include <sgtty.h>
# define TYPE tchars
# define C t_intrc
# define GET (('t'<<8)|18)
#endif

char
G_intr_char()
{
    char c;
    struct TYPE buf;

    ioctl (2, GET, &buf);
    c = buf.C;
    return c;
}
climate{jjwright}6: 

--

It seems as though tchars and termio are not declared in the headers
that are included in the file.  I've been looking for a declaration of
tchars elsewhere, but that is giving me troubles too.  Whats missing
or needs to be changed to make this run??

Thanks for any help,

Jay Wright
Rutgers University, Geography





More information about the grass-dev mailing list