Linux-Development-Sys Digest #29, Volume #8 Tue, 18 Jul 00 21:13:11 EDT
Contents:
floating point issue ([EMAIL PROTECTED])
Re: floating point issue (Grant Edwards)
Re: Installation of Oracle 8.1.16 for Linux (Stephen Harris)
Re: My own distribution (Kevin Lacquement)
Re: kernel-2.4.0-test4 parport module is not working... (mlw)
Re: is there a port to windows media player? (Stewart Honsberger)
Re: floating point issue (Kevin Lacquement)
Re: floating point issue (Erik Max Francis)
Re: floating point issue ([EMAIL PROTECTED])
Programming giude for the network device drvier like an ethernet or adsl modem
("�ڼ���")
Re: strange "mv" bug (Robert Lynch)
Re: kernel-2.4.0-test4 parport module is not working... (Robert Lynch)
Re: kernel-2.4.0-test4 parport module is not working... (Steve McCall)
Re: floating point issue (Michael Meissner)
Re: floating point issue (Michael Meissner)
Re: strange "mv" bug (Daniel R. Grayson)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: floating point issue
Date: Tue, 18 Jul 2000 22:12:18 GMT
Hi there,
Is that possible to have floating point caculation in the driver
module? I wrote a program like this to verify:
#include <linux/module.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <math.h>
int init_module(void)
{
printk("init_module called.\n");
printk("%d\n", (short)(log(2.0)*10));
return 0;
}
void cleanup_module(void)
{
printk("cleanup_module called.\n");
}
I compiled it by "gcc -D__KERNEL__ -DMODULE -c main.c", and load it.
But, it said "main.o: unresolved symbol log"
I need to do floating point calculation (like log(), pow(), sqrt(),
etc) in my driver, but how can I achieve it?
Thanks in advance!
-- Sam
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: floating point issue
Date: Tue, 18 Jul 2000 22:22:53 GMT
In article <8l2knj$ep8$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>Is that possible to have floating point caculation in the driver
>module?
Last time I checked (about 6 months ago) the answer was no.
> I wrote a program like this to verify:
>But, it said "main.o: unresolved symbol log"
>
>I need to do floating point calculation (like log(), pow(), sqrt(),
>etc) in my driver, but how can I achieve it?
The short answer is you can't.
--
Grant Edwards grante Yow! Is it NOUVELLE
at CUISINE when 3 olives are
visi.com struggling with a scallop
in a plate of SAUCE MORNAY?
------------------------------
From: [EMAIL PROTECTED] (Stephen Harris)
Subject: Re: Installation of Oracle 8.1.16 for Linux
Date: Tue, 18 Jul 2000 19:45:02 GMT
[EMAIL PROTECTED] wrote:
: You only must set the enviroment variable ORACLE_HOME=/usr/local/oracle
First create an "oracle" user and a "dba" group (which Oracle has as a
the primary group).
ORACLE_HOME should be set to the directory where you want to install
oracle. Or better, ORACLE_BASE set to the base of the oracle tree
(eg if set to /oracle then it _should_ install to
/oracle/app/oracle/product/version
).
However the installer should allow you to override this.
At run time (eg when trying to log into the database) ORACLE_HOME should
be set to the full path.
: and the ORACLE_SID should be your password.
No, ORACLE_SID should be set to a database identifier (eg "testdb" or
"firstdb"). This is how Oracle determines which database (out of all
the ones installed) to use.
Again, the installer _should_ let you override these.
I haven't played with the latest Oracle/Linux versions. Earlier versions
had a permission problem in that a lot of the programs installed in
$ORACLE_HOME/bin didn't have exec bit set! And $ORACLE_HOME/lib needed
to be put in the system library path, because some versions of Linux don't
allow LD_LIBRARY_PATH to be used on _any_ setuid programs.
--
Stephen Harris
[EMAIL PROTECTED] http://www.spuddy.org/
The truth is the truth, and opinion just opinion. But what is what?
My employer pays to ignore my opinions; you get to do it for free.
* Meeeeow ! Call Spud the Cat on > 01708 442043 < for free Usenet access *
------------------------------
From: Kevin Lacquement <[EMAIL PROTECTED]>
Subject: Re: My own distribution
Date: Tue, 18 Jul 2000 22:40:37 GMT
Mike Dowling wrote:
> <SNIP>
>
> In a sense, I have always had my own distribution. I.e., I have never
> used a distribution. The advantage for me is obvious; I know where
> everything is and how it is configured.
<SNIP>
I've been thinking of doing this. One question, though. How do you get
started without a distribution to compile stuff on?
Cheers,
Kevin
------------------------------
From: mlw <[EMAIL PROTECTED]>
Subject: Re: kernel-2.4.0-test4 parport module is not working...
Date: Tue, 18 Jul 2000 18:45:53 -0400
Nikos Kalogridis wrote:
>
> I recently updated my kernel from 2.4.0-test2 to test4 and the following
> problem occurs. The parport module although compiled normally together
> with the parport_pc module (I have a RH 6.2 tailored to my taste more or
> less) does not seem to work. After doing a modprobe parport_pc and
> according to the kernel logging messages loading normally the parport
> module does not seem to call the client modules that are registered in
> the parport interface to take control of the new port(s) found. I tried
> that both with plip, lp, and other modules with no success. Does anyone
> has the same problem with me?
> Here is the log messages that I am getting when I do 'modprobe
> parport_pc':
>
> Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ...
> SMSC Super-IO detection, now testing Ports 2F0, 370 ...
> 0x378: FIFO is 16 bytes
> 0x378: writeIntrThreshold is 16
> 0x378: readIntrThreshold is 16
> 0x378: PWord is 8 bits
> 0x378: Interrupts are ISA-Pulses
> 0x378: ECP port cfgA=0x10 cfgB=0x40
> 0x378: ECP settings irq=<none or set by other means> dma=<none or set by
> other means>
> parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,COMPAT,ECP]
> parport0: irq 7 detected
> parport0: cpp_mux: aa55f00f52ad51(86)
> parport0: cpp_daisy: aa5500ff(80)
> parport0: assign_addrs: aa5500ff(80)
> parport0: cpp_mux: aa55f00f52ad51(86)
> parport0: cpp_daisy: aa5500ff(80)
> parport0: assign_addrs: aa5500ff(80)
>
> and then when I do a 'modprobe lp' the following appears:
>
> lp: driver loaded but no devices found
>
> Thanks for your help
> Nikos Kalogridis
If it is of any help, I had the same experience.
I tried both making it a module and compiling it in.
--
Mohawk Software
Windows 9x, Windows NT, UNIX, Linux. Applications, drivers, support.
Visit http://www.mohawksoft.com
Nepotism proves the foolishness of at least two people.
------------------------------
From: [EMAIL PROTECTED] (Stewart Honsberger)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.x
Subject: Re: is there a port to windows media player?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 18 Jul 2000 22:46:37 GMT
On 18 Jul 2000 21:00:34 GMT, Rick Ellis wrote:
>>>Perhaps, but there are plenty of .asp only sources on the net.
>
>>Check http://www.shoutcast.com - you'll find literally hundreds of streaming
>>MP3 servers. Pick and choose according to genre, bandwidth, and bitrate.
>
>How would that solve his desire to listen to a source that is only asp?
He only said that there are plenty of .asp only sources. I offered him
an alternative. Since Microsoft isn't being very forthcoming in offering
either a port of their product or the structs of their format, I'd just
as soon abandon it completely in favour of something more open.
With the number of ShoutCast sites available, I'm sure he'll find something
that suits his needs.
--
Stewart Honsberger (AKA Blackdeath) @ http://sprk.com/blackdeath/
[EMAIL PROTECTED] (Remove 'thirteen' to reply privately)
Humming along under SuSE 6.4, Linux 2.4.0-test4
------------------------------
From: Kevin Lacquement <[EMAIL PROTECTED]>
Subject: Re: floating point issue
Date: Tue, 18 Jul 2000 22:50:50 GMT
Grant Edwards wrote:
>
> In article <8l2knj$ep8$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>
> >Is that possible to have floating point caculation in the driver
> >module?
>
> Last time I checked (about 6 months ago) the answer was no.
>
> > I wrote a program like this to verify:
>
> >But, it said "main.o: unresolved symbol log"
> >
> >I need to do floating point calculation (like log(), pow(), sqrt(),
> >etc) in my driver, but how can I achieve it?
>
> The short answer is you can't.
>
You could try borrowing the code from the libm sources (part of glibc, I
think).
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: floating point issue
Date: Tue, 18 Jul 2000 15:50:45 -0700
Grant Edwards wrote:
> [EMAIL PROTECTED] wrote:
>
> >But, it said "main.o: unresolved symbol log"
> >
> >I need to do floating point calculation (like log(), pow(), sqrt(),
> >etc) in my driver, but how can I achieve it?
>
> The short answer is you can't.
The long answer is that you'll probably have to write your own
approximators. Any good maths-oriented computer science text will have
these.
--
Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ My land's only borders lie / Around my heart
\__/ The Russian, _Chess_
Crank Dot Net / http://www.crank.net/
Cranks, crackpots, kooks, & loons on the Net.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: floating point issue
Date: Tue, 18 Jul 2000 23:17:11 GMT
In article <1N4d5.1582$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Grant Edwards) wrote:
> In article <8l2knj$ep8$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>
> >Is that possible to have floating point caculation in the driver
> >module?
>
> Last time I checked (about 6 months ago) the answer was no.
>
> > I wrote a program like this to verify:
>
> >But, it said "main.o: unresolved symbol log"
> >
> >I need to do floating point calculation (like log(), pow(), sqrt(),
> >etc) in my driver, but how can I achieve it?
>
> The short answer is you can't.
>
> --
> Grant Edwards grante Yow! Is it
NOUVELLE
> at CUISINE when 3
olives are
> visi.com struggling with a
scallop
> in a plate of
SAUCE MORNAY?
>
Could you tell me what's the major cause? Performance? effective? or
mission impossible?
I am just wondering there is not any driver which runs in kernel mode
and use floating point?
Is there any expereienced guy can tell me?
Thanks so much!
-- Sam
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "�ڼ���" <[EMAIL PROTECTED]>
Subject: Programming giude for the network device drvier like an ethernet or adsl modem
Date: Wed, 19 Jul 2000 09:07:50 +0900
Dear All
I am interested in the programming of the network device driver.
If you have the related information to this, please let me know it or the
URL....
Thankyou very much..
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: strange "mv" bug
Date: Tue, 18 Jul 2000 17:19:11 -0700
Reply-To: [EMAIL PROTECTED]
Mario Klebsch wrote:
>
> Robert Lynch <[EMAIL PROTECTED]> writes:
>
> >[EMAIL PROTECTED] wrote:
> >>
> >> It appears in Linux (Slackware 7.0 with 2.2.16 in this case, but also
> >> in Redhat 6.0 with 2.2.10):
> >>
> >> phil@procyon:/home/phil 2> ls -ld d f1 f2
> >======
> >Works for me on RH 6.2:
>
> Does not work on my self compiled Linux system. My mv(1) is taken from
> fileutils-4.0.
>
> 73, Mario
> --
> Mario Klebsch [EMAIL PROTECTED]
> PGP-Key available at http://www.klebsch.de/public.key
> Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB 1483 30CE 9FB2 A047 9CE0
> Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5 8B98 9464 53FF 9382 F518
$ rpm -qf /bin/mv
fileutils-4.0-21
$ strace mv f1 f2 d > /tmp/mv.err 2>&1
$ cat /tmp/mv.err
====
...
close(3) = 0
geteuid() = 500
umask(0) = 02
stat64(0xbffffae4, 0xbffff868) = 0
lstat64(0xbffffade, 0xbffff7a4) = 0
lstat64(0x8054540, 0xbffff744) = -1 ENOENT (No such file or
directory)
rename("f1", "d/f1") = 0
lstat64(0xbffffae1, 0xbffff7a4) = 0
lstat64(0x8054c78, 0xbffff744) = -1 ENOENT (No such file or
directory)
link("d/f1", "d/f2") = 0
brk(0x8056000) = 0x8056000
brk(0x8057000) = 0x8057000
lstat64(0xbffffae1, 0xbffff7dc) = 0
unlink("f2") = 0
_exit(0)
====
which seems reasonable, since I find it works for me.
Cheers, Bob L.
P.S. However, FWIW, I am running:
$ uname -r
2.4.0-test5
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: kernel-2.4.0-test4 parport module is not working...
Date: Tue, 18 Jul 2000 17:22:17 -0700
Reply-To: [EMAIL PROTECTED]
Nikos Kalogridis wrote:
>
> I recently updated my kernel from 2.4.0-test2 to test4 and the following
> problem occurs. The parport module although compiled normally together
> with the parport_pc module (I have a RH 6.2 tailored to my taste more or
> less) does not seem to work. After doing a modprobe parport_pc and
> according to the kernel logging messages loading normally the parport
> module does not seem to call the client modules that are registered in
> the parport interface to take control of the new port(s) found. I tried
> that both with plip, lp, and other modules with no success. Does anyone
> has the same problem with me?
I found the same thing. After fruitlessly futzing around for a while I
upgraded to test5-pre1 and the problem went away.
HTH. Bob L.
> Here is the log messages that I am getting when I do 'modprobe
> parport_pc':
>
> Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ...
> SMSC Super-IO detection, now testing Ports 2F0, 370 ...
> 0x378: FIFO is 16 bytes
> 0x378: writeIntrThreshold is 16
> 0x378: readIntrThreshold is 16
> 0x378: PWord is 8 bits
> 0x378: Interrupts are ISA-Pulses
> 0x378: ECP port cfgA=0x10 cfgB=0x40
> 0x378: ECP settings irq=<none or set by other means> dma=<none or set by
> other means>
> parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,COMPAT,ECP]
> parport0: irq 7 detected
> parport0: cpp_mux: aa55f00f52ad51(86)
> parport0: cpp_daisy: aa5500ff(80)
> parport0: assign_addrs: aa5500ff(80)
> parport0: cpp_mux: aa55f00f52ad51(86)
> parport0: cpp_daisy: aa5500ff(80)
> parport0: assign_addrs: aa5500ff(80)
>
> and then when I do a 'modprobe lp' the following appears:
>
> lp: driver loaded but no devices found
>
> Thanks for your help
> Nikos Kalogridis
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: Steve McCall <[EMAIL PROTECTED]>
Subject: Re: kernel-2.4.0-test4 parport module is not working...
Date: Wed, 19 Jul 2000 00:32:16 GMT
I have the same problem. Modprobe reported similar errors except that
when I loaded parport_pc, details of my printer were accurately detected and
reported.
On Tue, 18 Jul 2000, Nikos Kalogridis wrote:
>I recently updated my kernel from 2.4.0-test2 to test4 and the following
> problem occurs. The parport module although compiled normally together
> with the parport_pc module (I have a RH 6.2 tailored to my taste more or
> less) does not seem to work. After doing a modprobe parport_pc and
> according to the kernel logging messages loading normally the parport
> module does not seem to call the client modules that are registered in
> the parport interface to take control of the new port(s) found. I tried
======details redacted========
>
>Thanks for your help
>Nikos Kalogridis
------------------------------
Subject: Re: floating point issue
From: Michael Meissner <[EMAIL PROTECTED]>
Date: 18 Jul 2000 20:32:06 -0400
[EMAIL PROTECTED] writes:
> Could you tell me what's the major cause? Performance? effective? or
> mission impossible?
>
> I am just wondering there is not any driver which runs in kernel mode
> and use floating point?
In general, the problem is when running in the kernel, the floating point
registers are not saved (to save the cost of saving/restoring 8x80 bit
registers), so you will modify whatever program which happened to be running at
the time registers behind its back. On some architectures like the PowerPC,
the Linux Makefiles add -msoft-float, so that the compiler will not touch the
floating point unit (the powerpc compiler tends to believe it can use the fpu
to move aligned 64-bit items around which take 1 memory reference for
load/store, rather than the 2 it takes to use the gprs in 32-bit mode).
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: [EMAIL PROTECTED] phone: +1 978-486-9304
Non-work: [EMAIL PROTECTED] fax: +1 978-692-4482
------------------------------
Subject: Re: floating point issue
From: Michael Meissner <[EMAIL PROTECTED]>
Date: 18 Jul 2000 20:34:59 -0400
[EMAIL PROTECTED] writes:
> Could you tell me what's the major cause? Performance? effective? or
> mission impossible?
>
> I am just wondering there is not any driver which runs in kernel mode
> and use floating point?
I forgot to mention, that there were i386s and i486s without floating point (I
don't recall if there were any Pentiums without it), and the kernel had to
implement the floating point functions whenever it got the unimplemented
instruction trap. I would imagine that in kernel mode, you would like get a
double fault NMI (non-maskable interrupt) if it encountered a floating point
instruction in interrupt mode.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: [EMAIL PROTECTED] phone: +1 978-486-9304
Non-work: [EMAIL PROTECTED] fax: +1 978-692-4482
------------------------------
Subject: Re: strange "mv" bug
From: [EMAIL PROTECTED] (Daniel R. Grayson)
Date: 18 Jul 2000 19:48:57 -0500
It turns out to be a memory allocation bug. Sometimes "mv" has to copy the
files, instead of moving them, for example, when moving from one filesystem
to another. So keeps track of the inode numbers of the files it's already
moved, so in case it is about to move another link to a file it's already
moved, it can simply make a new link on the new file system. Unfortunately,
when it saves the destination name of that earlier file, it forgets to create
a new copy of the string, so the memory for that string gets freed, the next
string gets the same memory, and over-writes it.
Here is a fix.
rhenium# diff -u fileutils-4.0/src/cp-hash.c-orig fileutils-4.0/src/cp-hash.c
--- fileutils-4.0/src/cp-hash.c-orig Tue Jul 18 19:40:37 2000
+++ fileutils-4.0/src/cp-hash.c Tue Jul 18 19:40:42 2000
@@ -156,7 +156,7 @@
ep = *hp = &ht->entry_tab[ht->first_free_entry++];
ep->ino = ino;
ep->dev = dev;
- ep->node = (char *) node;
+ ep->node = (char *) strdup(node);
ep->coll_link = ep2; /* ep2 is NULL if not collision. */
return NULL;
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************