Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cbatt!ihnp4!inuxc!pur-ee!beatyr From: beatyr@pur-ee.UUCP (Robert Beaty) Newsgroups: comp.sys.amiga Subject: Re: Lattice 3.10 compiler Message-ID: <5052@pur-ee.UUCP> Date: Sun, 14-Dec-86 00:39:03 EST Article-I.D.: pur-ee.5052 Posted: Sun Dec 14 00:39:03 1986 Date-Received: Tue, 16-Dec-86 02:46:54 EST References: <974@cuuxb.UUCP> Reply-To: beatyr@pur-ee.UUCP (Robert Beaty) Organization: Electrical Engineering Department , Purdue University Lines: 35 In article <974@cuuxb.UUCP> pej@cuuxb.UUCP (jatkowski) writes: >I received my 3.10 lattice compiler the other day and have been having >frequent consultations with the guru ever since. Dave Wecker's vt100 2.2 >bites the dust trying to fopen the init script. Since I can't get my hands >on the 1.2 workbench I thought maybe the problem was in the libraries. >After re-linking with the 3.03C libraries things seem better (It doesn't >die until I try to Ascii Capture to prt:). > >Anybody got any ideas? (Please no Manx comments!!!). >BTW, I have a bug report in at Lattice, I'll post the/any results. > > > Paul Jatkowski > {ihnp4!}cuuxb!pej I spent the entire day figuring this one out. I finally got it! In Lattice 3.10, there are AmigaDOS functions for opening, reading, and closing AmigaDOS files. Two of these are called dopen() and dclose(). In the file expand.c there are three (3) routines: dopen(), dnext() and dclose(). These are supposed to be for directories. There seems to be a conflict in the calling functions and fopen() must use part of the AmigaDOS dopen() code. When this is redefined you get Guru's. The fix is simple! Get into your favorite editor and do a global search and replace of dopen() with diropen(), dnext() with dirnext() and dclose() with dirclose(). Recompile and there should be no problem. If this does not work, let me know (because I have gotten it to work) I will go through all the files and make extensive diffs. This should work though. Bob ---------- ... ihnp4!pur-ee!beatyr <- usenet ... beatyr@ed.ecn.purdue.edu <- arpa-net ... beatyr@pur-ee.UUCP <- UUCP ----------