*BSD News Article 87053


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!www.nntp.primenet.com!nntp.primenet.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2.2Beta kernel compile\
Date: 19 Jan 1997 10:20:52 GMT
Organization: Private BSD site, Dresden
Lines: 26
Message-ID: <5bssi4$8vt@uriah.heep.sax.de>
References: <5bjbip$19e@onlyx.coolsurf.de> <5bo9dt$56i@onlyx.coolsurf.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34247

thomey@coolsurf.de (Thorsten Meyer) wrote:

> : ../../i386/isa/lpt.c:1258: warning: comparison between signed and unsigned
> : 
> : the comparison between... is it a big problem and how to fix it?

> Fixed the problem by deleting the /usr/src/sys directories and installing
> new source. Why? 2.2 have installed thesrc over the 2.1.5R sources wrong.

The ``Holzhammer-Methode''. :-)

Of course, you haven't fixed anything, except that you've now lowered
the warning level that is in effect for the kernel compilation.

There are thousands of comparisions of signed with unsigned in the
code, unfortunately.  Starting with version 2.7, gcc now complains
about this if some warning level is in effect (-W i think).  It's a
non-trivial task to fix all of them, since somebody has to walk the
entire tree.  Most of them arise out of two or three nested typedefs.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)