Linux-Development-Sys Digest #898, Volume #7 Wed, 24 May 00 04:13:09 EDT
Contents:
Re: How to get returncodes from init_module (Rick Ellis)
I/F name to PCI slot number (JonTester)
Re: urgent about device driver (Rick Ellis)
I/F to pci slot number (JonTester)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux (Jim Richardson)
Re: Need ideas for university funded project for linux ("Peter T. Breuer")
Re: What !@#$ moron colorised g++? (Thaddeus L. Olczyk)
What does it mean, Kernel name? ("KyoungMo In")
IDT 77252 device driver... ("KyoungMo In")
Re: What does it mean, Kernel name? (Josef Moellers)
Re: Need ideas for university funded project for linux (Dowe Keller)
Re: Need ideas for university funded project for linux (Dowe Keller)
kernel debugger KGDB (Song Sam Liang)
Re: What !@#$ moron colorised g++? (Chetan Ahuja)
Re: glibc 2.1.2 ("Hasan Hashemi")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: How to get returncodes from init_module
Date: 24 May 2000 03:12:35 GMT
In article <8gdq1i$9d1$[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
>I wrote a simple module with an 'init_module()' function that returns
>different errorcodes for some cases (i.e. -ENOMEM for kmalloc()error
>or -EIO for PCI errors). If I 'insmod' the module and it fails with
>some of these errorcodes I get only the errorstring from insmod which
>always fails with -1. Is there a simple way to see the returncode
>from 'init_module()' (best would be directly on the terminal after
>insmod !) ?? I tried 'strace insmod....' and also to start a
>userprogram with a simple 'perror()' call directly after the
>failed 'insmod...', but i was not successful.
Why not just do a printk in init_module just before returning
the error?
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: JonTester <[EMAIL PROTECTED]>
Subject: I/F name to PCI slot number
Date: Wed, 24 May 2000 03:17:50 GMT
This is a multi-part message in MIME format.
==============B0E971D004FC780CB4EEE9B1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Is there a linux utility that will tell me which pci bus slot and
function from
the interface name.
ethernet Interface name (eth0, eth1 ..) -> PCI_SLOT(dev->devfs)
lspci only give me the interupt number and slot
ifconfig also give me the interupt number and name but on pci upto 4
devices per interupt
Thanks for your help.
Jon Tester
--
Jonathan Tester
408 252 2184
[EMAIL PROTECTED]
HTTP://members.home.net/jatester/resume.html
Pager:[EMAIL PROTECTED]
Cell phone:408 505 7993
==============B0E971D004FC780CB4EEE9B1
Content-Type: text/x-vcard; charset=us-ascii;
name="software.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for JonTester
Content-Disposition: attachment;
filename="software.vcf"
begin:vcard
n:Tester;Jonathan
tel;pager:[EMAIL PROTECTED]
tel;cell:408 505 7993
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Jonathan Tester
end:vcard
==============B0E971D004FC780CB4EEE9B1==
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: urgent about device driver
Date: 24 May 2000 03:18:11 GMT
In article <[EMAIL PROTECTED]>,
Kai Li <[EMAIL PROTECTED]> wrote:
>I need a Ethernet NIC card for my linux
Why is that a problem?
>and also source code for this driver.
The kernel is full of ethernet drivers and the kernel comes
as source. What exactly are you looking for?
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: JonTester <[EMAIL PROTECTED]>
Subject: I/F to pci slot number
Date: Wed, 24 May 2000 03:30:12 GMT
This is a multi-part message in MIME format.
==============4FD0313DC11FAC8B0F0EFB9C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Is there a linux utility that will tell me which pci bus slot and
function from
the interface name.
ethernet Interface name (eth0, eth1 ..) -> PCI_SLOT(dev->devfs)
lspci only give me the interupt number and slot
ifconfig also give me the interupt number and name but on pci upto 4
devices per interupt
Thanks for your help.
Jon Tester
--
Jonathan Tester
408 252 2184
[EMAIL PROTECTED]
HTTP://members.home.net/jatester/resume.html
Pager:[EMAIL PROTECTED]
Cell phone:408 505 7993
==============4FD0313DC11FAC8B0F0EFB9C
Content-Type: text/x-vcard; charset=us-ascii;
name="software.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for JonTester
Content-Disposition: attachment;
filename="software.vcf"
begin:vcard
n:Tester;Jonathan
tel;pager:[EMAIL PROTECTED]
tel;cell:408 505 7993
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Jonathan Tester
end:vcard
==============4FD0313DC11FAC8B0F0EFB9C==
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 23 May 2000 23:18:16 -0500
In article <[EMAIL PROTECTED]>,
David Steuber <[EMAIL PROTECTED]> wrote:
>' I'm not arguing about your right to do whatever you want, I
>' am just saying that I don't understand what motivates you
>' to create a situation where I can download code, have it
>' on my machine and use it in any way I want, but only in
>' cases where I can do the linking myself. If another needed
>' component is controlled by someone else with an equal
>' right to choose their license, I won't be able to obtain
>' and use the combination together.
>
>Ok, now I am really confused. Could you please give me some example
>of where you have two pieces of code that you want to use together,
>but can't because of license restrictions?
If you obtain the parts separately, you can probably combine
them as long as you don't redistribute them again. However,
the FSF insists that 'user-does-the-link' violates the
GPL restrictions if it creates something that could not
be distributed under GPL terms (i.e. where source for
all components cannot be redistributed freely).
>On my machines, I have code with quite a variety of licenses. Those
>include GPL, BSD, QPL, Perl's Artistic License, the TCL license, and a
>bunch of others. The base system is GNU/Linux. A bunch of libraries
>in use are either GPL or LGPL, including libc.
>
>Have I violated someone's license?
Just putting the code on the same machine is not a problem.
You must create a 'derived work', which has been commonly
described as code linked in a single process. Linking
GNU readline (GPL, not LGPL) into a database control
program that used a commercial client library would be
an example. While you can probably get away with building
such a program yourself, distributing it would be at
least questionable, especially if you redistributed a copy
of the GPL'd readline with it. Now for something even
more confusing, consider what happens if you have a
perl script that dynamically loads readline and also
uses DBI which can pull in an assortment of database
client libraries at runtime, including commercial versions.
If this ends up linking to (say) Oracle libs, does it
become illegal to distribute the script?
For an even stranger case, consider mod_perl, compiled into apache,
both of which can dynamically link other modules and the process
lifetime spans many requests. If one web requests runs a script
that links a GPL'd library, and another pulls in a commercial
library, you now have a derived work (by some definition)
that is not allowed, yet no single thing is responsible for it.
>I am not trying to create a situation where you or anyone else can't
>use code that I write or code that is derived from code that I write.
>I am trying to avoid the situation where improvements to my code are
>not returned to me or to others. The whole point of FSF style free
>software is to advance the state of the art by not shackling code with
>proprietary licensing.
The GPL instead shackles any other code linked into a derived
work with its own restrictions, or in the cases where
other code already has different restrictions it makes the
combination impossible.
>If there is a better way to achieve this goal, please tell me about
>it.
In the case of a complete stand-alone package, restrictions on
derived works may not be a problem. For things that would
be useful as a component, the LGPL or BSD style opens up
more possibilities.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Need ideas for university funded project for linux
Date: 23 May 2000 23:43:08 -0500
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>David Steuber <[EMAIL PROTECTED]> writes:
>
>> If Windows is so great, why do you have to reboot when you change your
>> IP address?
>
>You don't.
For 1 value of windows. Why do you have to reboot when you
change the machine name?
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Jim Richardson)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Tue, 23 May 2000 21:12:52 -0700
Reply-To: [EMAIL PROTECTED]
On Tue, 23 May 2000 09:00:00 GMT,
David Steuber, in the persona of <[EMAIL PROTECTED]>,
brought forth the following words...:
>"Anthony W. Youngman" <[EMAIL PROTECTED]> writes:
>
>' Every time I've tried to install an RH rpm on SuSE, it's given me
>' dependency nightmares. SuSE use a different rpm naming convention, and
>' apparently that's the cause :-(
>
>R otten
>P ackage
>M anagement
>
>Then again, InstallSheild, possibly the best installer in Windows
>land, is even worse. Go figure.
>
>Do people really have trouble with ./configure, make, make install?
>It has _never_ been a problem for me. Maybe I am just lucky. Even
>though I changed my compiler, libc, and libtools.
>
>--
>David Steuber | Hi! My name is David Steuber, and I am
>NRA Member | a hoploholic.
>
>All bits are significant. Some bits are more significant than others.
> -- Charles Babbage Orwell
The problem with ./configure;make;make install is that it has no
dependency checking for upgrades and removals. I can't check what program
/sbin/foo belongs too. RPM, while not without it's flaws (name conflicts in
SuSE being one of them) does allow this and other nicities.
--
Jim Richardson
Anarchist, pagan and proud of it
WWW.eskimo.com/~warlock
Linux, because life's too short for a buggy OS.
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 24 May 2000 05:40:13 GMT
In comp.os.linux.misc Jim Richardson <[EMAIL PROTECTED]> wrote:
: The problem with ./configure;make;make install is that it has no
: dependency checking for upgrades and removals. I can't check what program
Eh? Some of us do make file lists for the software we install, you know!
I have no problems with dependencies.
(check out man find .. -cnewer, and mkpkg).
Peter
------------------------------
From: [EMAIL PROTECTED] (Thaddeus L. Olczyk)
Subject: Re: What !@#$ moron colorised g++?
Date: Wed, 24 May 2000 05:56:49 GMT
Reply-To: [EMAIL PROTECTED]
On 23 May 2000 20:43:56 +1000, [EMAIL PROTECTED] (Matthew
Palmer) wrote:
>[EMAIL PROTECTED] is of the opinion:
>>now. But it would exist even if Microsoft did not. It's all part of the
>>dumbing down of computing. The real problem is that it is being coupled
>>with uniformity that forces everyone to the least common denominator.
>
>Oh yes. We could be here for hours listing the examples of that - RedHat's
>linuxconf is the latest and greatest that I've seen...
>
>I think it's the first example of a linux virus/worm/trojan - you try to get
>rid of it, but it just keeps coming back somehow...
>
Actually linuxconf is probably the one thing that most bothered me
before this one.
>
>If you're getting several error messages from different modules you need to
>be programming more incrementally.
>
The problem is that you may be modifying a header or inline. If you
make five changes in three typos, you can generate hundreds of
messages for each typo.
>>| I can't use next-error. Can anyone help me to fix this?
>>
>>The key is there needs to be a way to turn it off. Once that is in place
>>then the debate is whether it should default on or off and I would not
>>have a problem with either course on that.
>
>Definitely.
>
>I must admit that I haven't seen this behaviour on my particular gcc/g++
>(2.95.2, IIRC) but if it arrives, I either turn it off or downgrade. I am
>*not* having colour in my errors, just like I don't have colours in my
>source code.
I guess it is the default for Mandrake.
------------------------------
From: "KyoungMo In" <[EMAIL PROTECTED]>
Subject: What does it mean, Kernel name?
Date: Wed, 24 May 2000 15:11:35 +0900
I got a linux-2.3.99-pre6.tar.gz.
It has ATM modul maybe.
I don't know what does it mean, pre6?
Anyone, let me know that.
thanks for future answer.
------------------------------
From: "KyoungMo In" <[EMAIL PROTECTED]>
Subject: IDT 77252 device driver...
Date: Wed, 24 May 2000 15:18:26 +0900
Do anyone have IDT 77252 SAR device driver or develope for linux?
If anyone having driver, Let me know and contact me and help please...!
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: What does it mean, Kernel name?
Date: Wed, 24 May 2000 08:27:28 +0200
KyoungMo In wrote:
> =
> I got a linux-2.3.99-pre6.tar.gz.
> It has ATM modul maybe.
> =
> I don't know what does it mean, pre6?
> Anyone, let me know that.
AFAIK, a few months ago, Linus decided that it would be time to really
go for a production kernel 2.4.xx, so he jumped from 2.3.something to
2.3.99. However, time was not right for The Big Step. Rather than
release a buggy 2.4.xx (and spend billions on advertising so people do
use it), a few new rounds of iterations are spent. The "pre" (as in
pre-processor, pre-decessor) means, it's a sub-release just befor The
Final.
-- =
Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1
------------------------------
From: [EMAIL PROTECTED] (Dowe Keller)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 23 May 2000 22:29:55 -0700
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>David Steuber <[EMAIL PROTECTED]> writes:
>
>> Do people really have trouble with ./configure, make, make install?
>> It has _never_ been a problem for me. Maybe I am just lucky. Even
>> though I changed my compiler, libc, and libtools.
>
>That precise process usually works out fine. However, a number of
>these processes require manual modification of the Makefile or a
>custom configuration file. I've also encountered several configure
>scripts that break, and when that happens, you're doomed to rewriting
>the Makefile by hand. And there are still a few programs that just
>provide you with a grab-bag of Makefiles, and you get to pick which
>one you want. Those are *always* disasters, but usually the Makefiles
>are at least short enough that fixing them isn't impossible.
Yow, you make it sound like brain surgery. I can count the number of
times that I had to hack Makefiles to get a program to make on the
fingers of one hand. And multiple make files are a good thing if you
have to do special stuff to get a program to compile on a particular
system. I'd rather there be three makefiles named:
Makefile.AIX
Makefile.Linux
Makefile.BSD
Than to have to edit a single Makefile to work.
--
dowe [EMAIL PROTECTED]
---
grep me no patterns and I'll tell you no lines.
------------------------------
From: [EMAIL PROTECTED] (Dowe Keller)
Crossposted-To:
comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Need ideas for university funded project for linux
Date: 23 May 2000 23:32:37 -0700
On 23 May 2000 00:16:15 -0500, Leslie Mikesell <[EMAIL PROTECTED]> wrote:
>Webmin is often handier to control a single item, but a browser
>is only a so-so interface. It would be nice if there were
>a real X GUI that could be used locally with the browser
>interface optional for when you are working remotely from
>a non-X platform.
I find vi to be an excellent configuration tool that works with a wide
range of config files :-}
--
dowe [EMAIL PROTECTED]
---
grep me no patterns and I'll tell you no lines.
------------------------------
From: Song Sam Liang <[EMAIL PROTECTED]>
Subject: kernel debugger KGDB
Date: Tue, 23 May 2000 23:35:00 -0700
Hello,
Has anybody used the kernel debugger KGDB
(http://oss.sgi.com/projects/kgdb/)? What's your experience
with it?
There is very little information as to how to set it up.
How should I connect the machine on which I run the kernel
and the machine on which I run gdb? Should I use a so
called "null modem cable", with pin #2 and pin #3
crossed-over?
Other than applying the patch and recompile the kernel, do
I need to do any other configuration on either machine?
Thanks for your help,
Sam
--
==========================================================================
Song Sam Liang
http://graphics.stanford.edu/~sliang
Ph.D Candidate, Department of Electrical Engineering,
Stanford University
[EMAIL PROTECTED]
==========================================================================
------------------------------
From: Chetan Ahuja <[EMAIL PROTECTED]>
Subject: Re: What !@#$ moron colorised g++?
Date: 24 May 2000 07:17:28 GMT
Mike Dowling <[EMAIL PROTECTED]> spoke thusly:
> On 23 May 2000 06:30:05 GMT, Chetan Ahuja <[EMAIL PROTECTED]> wrote:
>>> Who is responsible for that piece of idiocy? I mean, could the author of
>>> that bright idea please stand up, name himself and receive his, erm, due?
>>
>> More quotes from the gcc script on my system ( And this is the last one... lookup
>> your own distribution if you're curious)
>>
>>
>> # Author: Jamie Moyers <[EMAIL PROTECTED]>
>> # Started: April 20, 1999
>> # Licence: GNU Public License
> Perhaps those that do should stand up and name and shame their
> distributions, for it is definitely introduced by a distribution.
Yes. This is from Mandrake 7.0. I have two computers running linux
here at home and both are running mandrake (apart from the firewall
which is on modified LRP floppy). The color gcc bothered me as
emacs can't parse the compiler generated error messages. And the
script doesn't even work as advertised when I tried to get rid of
the color. So yes, I WAS exasperated initially. But I slightly
hacked the script so now all is well.
But overall, I like the Mandrake distribution. I have been using
linux since it had to be installed from 20 floppies too and am
glad not to have to do that now. Yes, distros like RH and Mandrake
sometimes try to do too much ( almost a la MS even) but it's
mostly done in shell or perl, hence easy enough to hack it to my
satisfactions. The big wins for me are the ease of installation of
new software (i.e. rpm). These days it takes me about a couple of hours
starting from parts ( CPU, motherboard, memory) etc. to a fully
functional linux system. Much of it is due to easy to install
distros. So I can't be too hard on those people who have made it
possible. You may have different tastes of course.
Chetan
> I don't use distributions, and I don't have the problem, whence it
> follows that some distributio(s) introduced it.
> Cheers,
> Mike
------------------------------
From: "Hasan Hashemi" <[EMAIL PROTECTED]>
Subject: Re: glibc 2.1.2
Date: Wed, 24 May 2000 09:51:08 +0200
"Andreas Jaeger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> >>>>> Hasan Hashemi writes:
>
> > I have a problem with glibc version 2.1.2 compiling. After configure I
try
> > to compile (make PARALLELMFLAFS=-j4) but I get an error: Error 2 leave
> > dirrectory ../db2, although all conditions are ok.
>
> The current version is 2.1.3. Please show the exact error message
> (copy & paste), everything should work just fine.
>
> Andreas
> --
> Andreas Jaeger
> SuSE Labs [EMAIL PROTECTED]
> private [EMAIL PROTECTED]
The error message:
: /home/hashemi/glibc/glibc-2.1.2/compile/db2/libdb.a
/home/hashemi/glibc/glibc-2.1.2/compile/elf/ld-linux.so.2: undefined
reference to `__libc_global_ctors'
collect2: ld returned 1 exit status
make[2]: *** [/home/hashemi/glibc/glibc-2.1.2/compile/db2/db_dump185] Error
1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/hashemi/glibc/glibc-2.1.2/db2'
make[1]: *** [db2/others] Error 2
make[1]: Leaving directory `/home/hashemi/glibc/glibc-2.1.2'
make: *** [all] Error 2
Hasan
------------------------------
** 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
******************************