*BSD News Article 45513


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2.0.5-RELEASE kernel compile - loading error
Date: 17 Jun 1995 18:36:01 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 42
Message-ID: <3rv7ah$m3f@sol.ctr.columbia.edu>
References: <3rt8c9$690@nyx10.cs.du.edu>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se,
Jamie Raymond (jraymond@nyx10.cs.du.edu) had the courage to say:

: I hope that someone can help with with this problem.  I've tried
: compile the 2.0.5 kernel in both the ALPHA and RELEASE versions 
: and have had the same error.  I'm using the stock makefiles.  Each
: time this is what I get:

: loading kernel
: kern_sysctl.o:  Undefined symbol (_hw_float) referenced from text segment
: ***  Error code 1

: Stop.
[snip]

: --Jamie Raymond

hw_float is declared in /sys/i386/isa/npx.c.

I'm guessing that either a) you forgot to declare npx0 in your kernel
config file or b) you took it out deliberately because you have a 386
machine with no floating point hardware and you wanted to use software
floating point emulation instead. In either case, you'll need to add it
back: you must declare npx0 whether you intend to use it or not.
(You could declare a dummy instance of hw_float and hard code it
to 0 to satisfy the linker, but many programs expect floating point
support of some kind and won't work correctly without it.)

Check the GENERIC config file for an example of how npx0 should be
configured, then add that line to your custom config file. Then
re-config and re-compile your kernel. It should link successfully now.

-Bill
 
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Møøse Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~