From: James Petts <pettsj@visigoth.demon.co.uk>
Subject: Help with zmachine on SGI
Organization: No Affiliation
Date: Tue, 10 Nov 1992 13:18:33 GMT
X-Useragent: Nuntius v1.1

I am not a C programmer (at all) and I'm having trouble compiling 
zmachine on an SGI. I can get everything apart from zbios.c to compile by 
putting the flag -cckr (standard K&R flag) n the makefile. The error I 
get with zbios .c is:

iris1 106% make
        cc -O -Dunix -cckr -c zbios.c
ccom: Error: zbios.c, line 18: unknown size
      struct sgttyb otermio,ntermio;
      ---------------------^
ccom: Error: zbios.c, line 18: unknown size
      struct sgttyb otermio,ntermio;
      ---------------------^
ccom: Error: zbios.c, line 18: unknown size
      struct sgttyb otermio,ntermio;
      -----------------------------^
ccom: Error: zbios.c, line 18: unknown size
      struct sgttyb otermio,ntermio;
      -----------------------------^
ccom: Error: zbios.c, line 413: TIOCGETP undefined
                ioctl(0, TIOCGETP, &otermio);
      ---------------------------^
ccom: Error: zbios.c, line 415: sg_flags undefined
                ntermio.sg_flags |= RAW;
      -------------------------^
ccom: Error: zbios.c, line 415: member of structure or union required
                ntermio.sg_flags |= RAW;
      -------------------------^
ccom: Error: zbios.c, line 415: RAW undefined
                ntermio.sg_flags |= RAW;
      ---------------------------------^
ccom: Error: zbios.c, line 415: operands of |= have incompatible types
                ntermio.sg_flags |= RAW;
      ---------------------------------^
ccom: Error: zbios.c, line 416: member of structure or union required
                ntermio.sg_flags &= ~(0000010|CRMOD);
      -------------------------^
ccom: Error: zbios.c, line 416: CRMOD undefined
                ntermio.sg_flags &= ~(0000010|CRMOD);
      ---------------------------------------------^
ccom: Error: zbios.c, line 416: operands of &= have incompatible types
                ntermio.sg_flags &= ~(0000010|CRMOD);
      ----------------------------------------------^
ccom: Error: zbios.c, line 417: TIOCSETP undefined
                ioctl(0, TIOCSETP, &ntermio);
      ---------------------------^
ccom: Error: zbios.c, line 756: sg_flags undefined
        if (ntermio.sg_flags & RAW)
      ---------------------^
ccom: Error: zbios.c, line 756: member of structure or union required
        if (ntermio.sg_flags & RAW)
      ---------------------^
ccom: Error: zbios.c, line 756: RAW undefined
        if (ntermio.sg_flags & RAW)
      ----------------------------^
ccom: Error: zbios.c, line 756: operands of & have incompatible types
        if (ntermio.sg_flags & RAW)
      ----------------------------^
ccom: Error: zbios.c, line 757: TIOCSETP undefined
                ioctl(0, TIOCSETP, &otermio);
      ---------------------------^
*** Error code 1

Any help, please??


James Petts

********************************************************************
* "We use the classical theory on Mondays, Wednesdays and Fridays, *   
*  and the quantum theory on Tuesdays, Thursdays and Saturdays."   *
************************************** Wm. Bragg *******************
Newsgroups: rec.games.int-fiction