*BSD News Article 33762


Return to BSD News archive

Xref: sserve comp.windows.x.i386unix:10918 comp.os.386bsd.apps:1321 comp.os.386bsd.questions:12028
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!ihnp4.ucsd.edu!agate!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!urmel.informatik.rwth-aachen.de!news.rhrz.uni-bonn.de!saph2.physik.uni-bonn.de!juengst
From: juengst@saph2.physik.uni-bonn.de (Henry G. Juengst)
Newsgroups: comp.windows.x.i386unix,comp.os.386bsd.apps,comp.os.386bsd.questions
Subject: Re: __NetBSD__ X11R6 i386
Date: 2 Aug 1994 22:13:18 GMT
Organization: Physikalisches Institut der Universitaet Bonn
Lines: 43
Distribution: world
Message-ID: <31mgdu$s9d@news.rhrz.uni-bonn.de>
References: <30dr4j$phk@darum.uni-mannheim.de> <bakulCtsIBF.4BH@netcom.com>
Reply-To: juengst@saph2.physik.uni-bonn.de
NNTP-Posting-Host: saph2.physik.uni-bonn.de


In article <bakulCtsIBF.4BH@netcom.com>, bakul@netcom.com (Bakul Shah) writes:
>Andrew Wheadon (andrew@wipux2.wifo.uni-mannheim.de) writes:
>> When making World it's failing after trying to create a new Makefile
>> with the compiled imake. It fails with both gnumake and bsdmake.
>
>This is due to the 64 bit off_t type in NetBSD-current.  To fix

Of course, NetBSD-current uses off_t as 64 bit type. Why not ?! But,
that's not the reason why imake doesn't work. The real reason is, that
imake.c uses long instead of off_t in its lseek function call. And it does
not use the OS specific prototype. That's scrap. That's C - K&R C.

>this you need to either have a proper lseek() declaration in
>imake.c's scope, or a quick and dirty fix is to just  use a

"A proper lseek() declaration in imake.c's scope" ? What did you study ?
Dentistry ?  :-)

Lseek is a function of your OS. So, please add the required #include
statements, use what your OS declares and use a C compiler which handles
prototypes. Do not use an old cc.

Declarations of OS specific identifiers have nothing to do in applications.

>(off_t) in the lseek call in imake.c.  BTW, this is the same fix
>that is required in X11R5.  I did a compile back when X11R6 first
>came out -- most things did work.... I stopped wasting time on it
>because Xfree-2.1.1 is good enough for me.

Oh, I hope the previous hint helps you to save your time in the future.

>
>Bakul Shah

Henry

--
juengst@saph2.physik.uni-bonn.de   [131.220.221.12]  (internet)
juengst@boss1.physik.uni-bonn.de   [131.220.221.30]
saph2::juengst                     [13.259]          (decnet)

Any opinions in this mail are my own.