From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29724 invoked from network); 8 Aug 1998 00:48:55 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 8 Aug 1998 00:48:55 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id CAA31399; Sat, 8 Aug 1998 02:46:46 +0200 Date: Sat, 8 Aug 1998 02:46:46 +0200 Message-Id: <199808080046.CAA31399@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: (message from Larry Creech on Fri, 7 Aug 1998 19:01:00 -0500 (CDT)) Subject: Re: Missing data types? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.1.113 i586) References: Hi ! > I've been trying to compile the 2.1.1xx kernels. I have no problem on the > Intel box, but trying to compile the same video for linux driver for the > Alpha I get these errors: > > drivers/char/char.a(radio-aztech.o): In function `az_setfreq': > radio-aztech.c(.text+0x2f0): undefined reference to `__floatdidf' > I've done a recursive grep though the filesystem trying to find them, but > no luck. The problem is easy: radio-aztech.c uses floating-point code in kernel which is not allowed. We use -msoft-float to dedect this. __floatdidf is a emulation call but the kernel will not be linked against fp-emu code. The fix is easy: --- linux/drivers/char/radio-aztech.c~ Mon Jul 20 22:17:01 1998 +++ linux/drivers/char/radio-aztech.c Sat Aug 8 02:44:21 1998 @@ -113,7 +113,7 @@ { int i; - frequency = (frequency / 16.0) * 100; /* massage data a bit */ + frequency = (frequency * 100 + 8) / 16; /* massage data a bit */ frequency += 1070; /* tuning needs 24 data bits */ frequency /= 5; ciao - Stefan. -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com