*BSD News Article 37510


Return to BSD News archive

Newsgroups: comp.os.386bsd.apps
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!caen!zip.eecs.umich.edu!panix!news.mathworks.com!uhog.mit.edu!uw-beaver!june.cs.washington.edu!herron
From: herron@june.cs.washington.edu (Gary Herron)
Subject: Re: Anyone succesfully compiled chimera+term for NetBSD-1.0_BETA??
Message-ID: <CyqH97.J43@beaver.cs.washington.edu>
Sender: news@beaver.cs.washington.edu (USENET News System)
Organization: Computer Science & Engineering, U. of Washington, Seattle
References:  <397obg$cra@nntp1.u.washington.edu>
Date: Fri, 4 Nov 1994 08:07:38 GMT
Lines: 37

In article <397obg$cra@nntp1.u.washington.edu>, buckwild@u.washington.edu (Mark Tamola) writes:
|> Has anyone out there successfully gotten chimera+term to work for
|> NetBSD-1.0_BETA??  I compiled it fully, but whenever I try to execute
|> it, it pops the window up, but then quickly goes away, and I get a 
|> segmentation fault, and then it dumps core.

Yes, I got chimera-1.61 (and several previous versions) working
with term-2.2.3.  Only one change needed to be made.  In NetBSD-1.0,
file sizes are now 64 bit integers, whereas one procedure in
chimera-1.61 expects it as a 32 bit integer, and another procedure
expects it as type `off_t' (which is typdef'ed correctly).  I
don't remember which procedure needs to change, but there are
only two candidates.  Check the following two procedures in
their respective files and make the misfit match:

In chimera-1.61/src/local.c:
  LoadFile(filename, size, mtlist)
  char *filename;
  off_t size;


In chimera-1.61/src/cache.c
  InsertCacheInfo(path, atime, size)
  char *path;
  time_t atime;
  off_t size;

BTW, If this code were written with ansi prototypes, this
problem would be caught at compile time.  Is there a reason
for sticking with the old style?  I see none.  Gnu's
protoize can easily fix about 99% of the code, so the conversion
is really very little work.

-- 
Dr. Gary Herron         |  Email: gjh@ag.wa.com
Applied Geometry        |  Snail: PO Box 4561
206-628-0342		|         Seattle WA 98104