From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,3df91fb7571bea79,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: fc89c,3df91fb7571bea79,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 10b612,3df91fb7571bea79,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,3df91fb7571bea79,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-08-24 08:59:51 PST Xref: gmd.de comp.unix.questions:20451 comp.unix.ultrix:10624 comp.unix.programmer:8336 comp.sys.dec:9674 Newsgroups: comp.unix.questions,comp.unix.ultrix,comp.unix.programmer,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!agate!doc.ic.ac.uk!uknet!cf-cm!scocpb From: browncp@.cf.ac.uk (Chris Brown) Subject: Adv Prog in the Unix Env - compiling examples under Ultrix-4.x Message-ID: <1993Aug24.153159.2531@cm.cf.ac.uk> Sender: scocpb@thor.cf.ac.uk (Chris Brown) Organization: University of Wales College of Cardiff, Cardiff, Wales, UK Date: Tue, 24 Aug 1993 15:31:57 +0000 Hi, Is there anyone out there using Ultrix-4.2A who has compiled example code from Stevens' book "Advanced Programming in the UNIX Environment"? I'm still trying to build libmisc.a using gcc. By "fiddling" I've got make to work up to tellwait.c okay. At ttymodes.c make bails out with the following messages: ttymodes.c:6: parse error before `0x20' ttymodes.c:6: warning: data definition has no type or storage class *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. The line in question is as follows: static enum { RESET, RAW, CBREAK } ttystate = RESET; I ain't so sure about the syntax myself - reckon there should be a tag after enum though I don't know what to make it. My fiddling consists (so far) of using the SunOs stuff as a starting point and editing ourhdr.h to include the following line: typedef int ssize_t; All hints and advice is most welcome. Chris