Mike Camann writes:
Take a look at $GIS/src/libes/src/intr_char.c. The incomplete struct
and the undefined symbols refer to definitions that should be found in
<sgtty.h> when #ifdef USE_TERMIO is undefined, as is the case on my
system. The <sgtty.h> file in SunOS 5.4 is VASTLY different, however,
from the one in SunOS 4.1.1, where I have successfully compiled GRASS
many times (and where this particular preprocessor directive works
fine). That's /usr/include/sgtty.h. Under SunOS 4.1.1, tchars and
TIOCGETC are actually defined in <sys/ttold.h>, which is #included in
<sgtty.h>; t_intrc is an element of (struct) tchars. These definitions
are entirely missing in the SunOS 5.4 version of <sgtty.h> which does
not #include <sys/ttold.h>.
Am I correct in assuming that this is the root of the problem? Should
I add #include <sys/ttold.h> to the preprocessor directives in
intr_char.c? If so, why wasn't this done in the source code prior to
release? The fact that it wasn't makes me suspect that this is not a
good solution.Can anyone who has successfully compiled GRASS under Solaris 5.4 tell
me how to fix this? Are there any other surprises in store?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%Michael Camann camann@dial.pick.uga.edu
Department of Entomology camann@sparc.ecology.uga.edu
University of Georgia (706) 542-2303 voice
Athens, GA 30602 (706) 542-2640 FAX
I've compiled GRASS for Solaris 5.4, and, right or wrong, I included
<sys/ttold.h> in intr_char.c and dig_dev.c.
Seems to work fine
T.
--------------------------------------------------------------------------------
Thomas Orth Alberta Research Council
Research Officer 3rd Floor, 6815 8th Street N.E.
Advanced Computing & Engineering Calgary, Alberta T2E 7H7
Spatial Information Management and Analysis Canada
--------------------------------------------------------------------------------
Email: Phone: Fax: WWW:
orth@arc.ab.ca (403) 297-7571 (403) 297-2339 http://www.arc.ab.ca
--------------------------------------------------------------------------------
I'd be really surprised if my opinions reflected those of my employers.
--------------------------------------------------------------------------------