From owner-freebsd-questions Fri Jan 5 18:20:54 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA17992 for questions-outgoing; Fri, 5 Jan 1996 18:20:54 -0800 (PST) Received: from ncc-1701-d.starfleet.gov (root@ix-sb1-29.ix.netcom.com [204.32.201.61]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA17986 for ; Fri, 5 Jan 1996 18:20:50 -0800 (PST) Received: (from d_burr@localhost) by ncc-1701-d.starfleet.gov (8.6.11/8.6.9) id SAA00299; Fri, 5 Jan 1996 18:24:42 -0800 Date: Fri, 5 Jan 1996 18:24:42 -0800 (PST) From: Donald Burr X-Sender: d_burr@ncc-1701-d.starfleet.gov To: Steve Gibbard cc: questions@freebsd.org Subject: Re: Problem building a new kernel In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Fri, 5 Jan 1996, Steve Gibbard wrote: > I'm trying to build a new kernel on my FreeBSD 2.1.0 machine. The config > and the make depend worked fine, but the make failed with the following > error message: > > loading kernel > kern_sysctl.o: Undefined symbol `_hw_float' referenced from text segment > *** Error code 1 This makes the (approximately) 6.02e23'rd time I've seen this asked... YOU DISABLED THE "npx0" DEVICE IN YOUR KERNEL CONFIG FILE. THE "npx0" DEVICE IN THE KERNEL IS **NOT** OPTIONAL. EVEN IF YOU DO NOT HAVE A FLOATING POINT UNIT IN YOUR COMPUTER, THIS IS STILL REQUIRED, BECAUSE IT INTERFACES TO THE SOFTWARE EMULATION CODE. So, in short, put this line back in: device npx0 at isa? port "IO_NPX" irq 13 vector npxintr #define SOAPBOX_MODE I've asked this before, and I've seen others ask it too, but shouldn't there be a comment in the GENERIC and LINT kernel files (distributed with the kernel) to the effect of "the npx0 device is mandatory!!!"... ...OR, if the user disables it, either: a) print a warning/error message when the user runs config, or b) munge up the source code so that, if npx0 is commented out, it'll still work (and refer to the software emulator?) #undef SOAPBOX_MODE Donald Burr [d_burr@ix.netcom.com], PO Box 91212, Santa Barbara CA 93190-1212 TEL (805)564-1871 / FAX 564-2315 / WWW http://www.geopages.com/WallStreet/2072 PGP Public Key available by request (send e-mail) or on Public Key Servers. ** Uphold your right to privacy - Use PGP. **