GRASS4.1 & Solaris 2.2

GRASSuser's

We are attempting to compile GRASS4.1 on a SPARClassic running Solaris
2.2, using gcc 2.4.5 as the compiler:. We are getting a failure at
/src/libes/gis , with error messages showing

intr_char.c: In function 'G_intr_char':
intr_char.c:17 storage size of 'buf' not known
intr_char.c:19 'TIOCGETC' undeclared
*** Error code 1
make: fatal error: ....
GISGEN failure at step: /src/libes/GIS

Any ideas as to why we are bombing out so early in the compilation?

We are using the following "head" file:

CC = gcc
ARCH = classic

GISBASE = /opt/grass4.1
UNIX_BIN = /opt/grass4.1/local/bin

DEFAULT_DATABASE = /data2/romo
DEFAULT_LOCATION = working

COMPILE_FLAGS = -ansi -w
LDFLAGS = -s

XCFLAGS = -D_NO_PROTO
XLDFLAGS =
XINCPATH = /usr/openwin/share/include
XMINCPATH =
XLIBPATH = -L/usr/openwin/lib
XTLIBPATH = -L/usr/lib
XMLIBPATH = -L/usr/lib
XLIB = -lX11
XTLIB = -lXt
XMLIB = -lXm
XEXTRALIBS =

TERMLIB = -ltermlib
CURSES = -lcurses $(TERMLIB)
MATHLIB = -lm

# LIBRULE = ar ruv $@ $?
# LIBRULE = ar ruv $@ $?; ranlib $@
# LIBRULE = ar ruv $@ $?; ar ts $@
# LIBRULE = ar rc $@ `lorder $(OBJ) | tsort`
LIBRULE = ar ruv $@ $?

USE_TERMIO =
USE_MTIO = -DUSE_MTIO
USE_FTIME =
DIGITFLAGS =
VECTLIBFLAGS = -DPORTABLE_3
GETHOSTNAME = -DGETHOSTNAME_UNAME

Any help would be appreciated.

^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^
   Ronald Thomas ^ ront@meeker.cfnr.colostate.edu
    Natural Resources Spec. (GIS) ^
     Resources Management Division ^ Phone: 303-586-3565 x285
      Rocky Mountain National Park ^ 700-323-7285 (FTS)
       Estes Park, CO 80517 ^ FAX: 303-586-4702
^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^

Ronald Thomas (ront@niwot.CFNR.ColoState.EDU) writes on 11 Aug 93:

We are attempting to compile GRASS4.1 on a SPARClassic running Solaris
2.2, using gcc 2.4.5 as the compiler:. We are getting a failure at

I did it under 2.1 with Sun's C.

/src/libes/gis , with error messages showing

intr_char.c: In function 'G_intr_char':
intr_char.c:17 storage size of 'buf' not known
intr_char.c:19 'TIOCGETC' undeclared
*** Error code 1
make: fatal error: ....
GISGEN failure at step: /src/libes/GIS

Any ideas as to why we are bombing out so early in the compilation?

yes, one quick peek at intr_char.c reveals the problem

We are using the following "head" file:

COMPILE_FLAGS = -ansi -w

                        ^^^^ this may or may not cause problems later

XCFLAGS = -D_NO_PROTO

XEXTRALIBS =

you may need:
XEXTRALIBS = -lsocket -lnsl
depending on which linker you are using

USE_TERMIO =

Here's the problem:
USE_TERMIO = -DUSE_TERMIO

Hope this helps.

--Darrell