Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!sco!chapman From: chapman@sco.COM (Brian Chapman) Newsgroups: comp.unix.xenix Subject: Re: xenix header file problems Message-ID: <407@sco> Date: Fri, 27-Nov-87 19:35:58 EST Article-I.D.: sco.407 Posted: Fri Nov 27 19:35:58 1987 Date-Received: Sat, 5-Dec-87 06:39:20 EST References: <166@madnix.UUCP> Reply-To: chapman@sco.COM (Brian Chapman Mx321) Organization: The Santa Cruz Operation, Inc. Lines: 43 Keywords: xenix SCO 2.2.1 file.h include circular moria In article <166@madnix.UUCP> ray@madnix.UUCP (Ray P. Hill) writes: < < I'm having problems compiling "umoria" on my SCO 2.2.1 XENIX. < < My most current problem seems to be related to the XENIX system include files. < "umoria" wants to use the include file, however the "file" < structure in file.h needs the structure "inode" defined. No problem, I'll < include . But wait, the "inode" structure uses the "iisem" < structure which in turn uses the "file" structure. Is there anyway to get the < file structure defined? < (I ran into this same problem with "month") < If I'm doing something wrong make sure and tell me. < Thanks < Ray Hill I complied umoria on SCO 286 2.2.1 (almost) straight off the net. 1) Declared "cave" to be huge and padded cave_type to 16 bytes. 2) fixed some very bad code in (misc2.c)insert_str() 3) fixed function pointer usage by changing "destroy(arg)" to "(*destroy)(arg)" as described in an earlier posting. 3) changed calls to cbreak(), nocbreak(), setterm() and resetterm() into calls to crmode(), nocrmode(), setty() and resetty() 4) Messed with the Makefile a little [ started with Makefile.USG ] [ use -LARGE -Mle ] [ use -ND for monsters.c, treasure1.c treasure2.c ] [ and variables.c ] *But*, I had no problem with the include files. does not require the "inode" structure definition. It needs the definition of "inodep_t" which the moria source includes from which is #define'ed "struct inode far *" so you do need the -Me complier switch. You don't need the definition of "struct inode" because that type is not used anywhere in moria. There may be 16 problems. The first time I kill a monsters my experience goes negative. -------- ihnp4!--\ Brian Chapman microsof!sco!chapman uunet!--/