Linux-Development-Sys Digest #626, Volume #6 Thu, 15 Apr 99 06:14:28 EDT
Contents:
Uncleanly Unmounted (Kernel 2.2.5) (Yazid)
Re: a debate between Linux & NT (Wolfram Till Arnold)
Re: SMP Linux, Any Catches? ("Clint Byrum")
Re: a problem with scanf ("Richard Heathfield")
Re: a debate between Linux & NT (Wolfram Till Arnold)
Re: a problem with scanf (Peter Samuelson)
Re: a problem with scanf (Peter Samuelson)
Re: M-systems binary only drivers & GPL (Tristan Wibberley)
Re: how do i program a "mail server"? (Peter Samuelson)
Re: Kernel problem (PANIC) (Koh)
how do i program a "mail server"? ("Brendan Reville")
Re: Minimum size for Linux kernel (Peter Samuelson)
Re: x86 PC emulator for x86 PC??? (Craig Graham)
Q: Is it possible to compile binaries for a different processor? (Chris Gahan)
threads, how????? (Sander Zijlstra)
Re: x86 PC emulator for x86 PC??? (David T. Wang)
Re: depend: how do I learn?? (Paul Kimoto)
Re: loading a driver twice without stacking (Mark Tranchant)
Re: Problems with 2.2.5 & sound & apm (Roope Anttinen)
----------------------------------------------------------------------------
From: Yazid <[EMAIL PROTECTED]>
Subject: Uncleanly Unmounted (Kernel 2.2.5)
Date: Thu, 15 Apr 1999 12:33:31 +1000
Reply-To: [EMAIL PROTECTED]
Hi...
Every once and a while, my Linux does not unmount my \ partitoin
cleanly. I don't know why. I use 2.2.5 kernel and banshee server. help
me.. i fear my Linux won't succesfully face the situation in the future.
(It never happen using my old kernel(donwloaded)). This 2.2.5 kernel is
self-compiled.
Thank you.
------------------------------
From: Wolfram Till Arnold <[EMAIL PROTECTED]>
Subject: Re: a debate between Linux & NT
Date: Wed, 14 Apr 1999 20:35:00 -0700
JZ wrote:
> I have got a debate betwwen Linux & NT.
> Can somebody tell me what focus of
> linux is better than NT?
> How shall I do? I rise Linux.
Take a look at http://www.unix-vs-nt.org/
Especially the Kirch paper is an impressive piece of work and manifesto
for Linux.
Good luck
-- WA
------------------------------
From: "Clint Byrum" <[EMAIL PROTECTED]>
Subject: Re: SMP Linux, Any Catches?
Date: Wed, 14 Apr 1999 16:23:16 -0700
bill davidsen wrote in message
<7f311h$g2c$[EMAIL PROTECTED]>...
>In article <7f0emm$[EMAIL PROTECTED]>,
>Clint Byrum <[EMAIL PROTECTED]> wrote:
>| Where can i get the 2.2.x kernel? I haven't updated the kernel outright
>| since I upgraded my 2.0.16 kernel to 2.0.22. As far as 14 processors go,
I
>| don't think I'd want all the eggs in one basket like that. I'd rather use
>| beowulf and do clustered processing... More fault tolerant.
>
>You also need to update many utilities, module tools, networking... at
>some point it becomes desirable to simply save the good stuff and
>reload, when it's far less work than evolving. I've done a few systems
>each way, a clean install from time to time is a good idea anyway.
>
I have Installed RedHat 5.2 on our server just recently. What I meant was, I
haven't put JUST the kernel on a machine for a while. I found the 2.2.5
kernel at (where else?) http://www.kernel.org
------------------------------
From: "Richard Heathfield" <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c
Subject: Re: a problem with scanf
Date: Thu, 15 Apr 1999 00:19:07 +0100
Bobby B wrote in message ...
>>> This question has nothing to do with the C language. In fact it
>stops
>>> being legal C when you typed "void main(void)"...
>
>
>Could you be any less of a dick? Excuse the world for not using int
>main(void). This newsgroups needs to stop all this "C AND ONLY C
>crap" and answer these questions. Are you telling me that every line
>of code you write is strictly C and thats it? I doubt it.
>
I agree. This newsgroup should stop discussing C. Let's all talk about
skateboarding instead. And we can get comp.unix.programmer to cover Outlook
Express, which will leave comp.os.ms-windows.* free to discuss this summer's
schedule for British Airways.
I see that this thread is cross-posted to
news:comp.os.linux.development.system. No doubt they will be only too happy
to be relieved of that arduous subject, in favour of the history of mouse
and keyboard manufacturing, concentrating on the period 1988 to 1996 (the
glory years).
Anyone for tennis?
------------------------------
From: Wolfram Till Arnold <[EMAIL PROTECTED]>
Subject: Re: a debate between Linux & NT
Date: Wed, 14 Apr 1999 20:35:08 -0700
JZ wrote:
> I have got a debate betwwen Linux & NT.
> Can somebody tell me what focus of
> linux is better than NT?
> How shall I do? I rise Linux.
Take a look at http://www.unix-vs-nt.org/
Especially the Kirch paper is an impressive piece of work and manifesto
for Linux.
Good luck
-- WA
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: comp.lang.c
Subject: Re: a problem with scanf
Date: 14 Apr 1999 23:07:01 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[G.Pohl <[EMAIL PROTECTED]>]
> Did you ever hear about such nasty things like libraries or or
> standard libraries so ? -- But you are right, C constists of some
> hands of full of keywords and operators. Everything out of this
> cannot be C
You are missing the point. The ISO C standard defines not only the
syntax of C but the general contents of quite a few standard header
files and the behavior of quite a few standard library functions.
Jack was complaining about tty_raw() not being one of these. His logic
is not that hard to follow: since the posted program uses functions
that are not in the C standard, comp.lang.c is a poor place to ask why
the program doesn't work. The proper newsgroup was probably
comp.os.linux.development.apps, actually, unless the symptom could be
reproduced in other Unices, in which case comp.unix.programmer would
have been appropriate.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: comp.lang.c
Subject: Re: a problem with scanf
Date: 14 Apr 1999 23:00:32 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
> >> This question has nothing to do with the C language. In fact it
> >> stops being legal C when you typed "void main(void)"...
[Bobby B <[EMAIL PROTECTED]>]
> Could you be any less of a dick? Excuse the world for not using int
> main(void).
Aside from the issue of void main() invoking undefined behavior (i.e. a
compiler would be fully within its rights to generate, from the above,
code to reboot your computer), there are *very* good reasons not to
want main() defined as void.
Whoever the poster was who suggested discussing skateboarding: sharp
bit of satire there, unlike the clumsy stuff one finds a lot of in
Usenet these days. Good work.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: Tristan Wibberley <[EMAIL PROTECTED]>
Subject: Re: M-systems binary only drivers & GPL
Date: Wed, 14 Apr 1999 01:03:32 +0100
Reply-To: [EMAIL PROTECTED]
Markus Kohler wrote:
>
> [EMAIL PROTECTED] (Fabrice Bellard) writes:
>
> > I saw that several compagnies are using the M-Systems
> > (http://www.m-sys.com) disk-on-chip products with Linux. It emulates a
> > hard disk with flash memory.
> >
> > This disk-on-chip is not like an IDE drive, so it needs a special
> > block driver. The driver is provided by M-Systems in binary form only.
> >
> > Since this disk-on-chip is used for booting, the binary Linux driver
> > is statically linked with the Linux kernel (it is *not* a module).
> >
> > My question is: is it legal ? Do Linus & the other copyright holders
> > of Linux allow that a binary only driver is statically linked with the
> > kernel ?
>
> My understanding is that it's illegal.
DISCLAIMER: I AM NOT A LAWYER. DO *NOT* USE MY OPINIONS TO JUSTIFY YOUR
ACTIONS. I DO NOT CONDONE *ANY* ACTIONS IN WHAT I SAY BELOW.
The GPL makes no statement that static linking is simply always illegal.
If the kernel has been specially compiled to keep the code text for the
driver well separated and clearly identifiable, then it is legal
according to the GPL.
--
Tristan Wibberley Linux is a registered trademark
of Linus Torvalds.
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: how do i program a "mail server"?
Date: 14 Apr 1999 22:51:28 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Brendan Reville <[EMAIL PROTECTED]>]
> i want to write a little hotmail-style mail system, which i'll run on
> my isp's linux box...
> i need to be able to send email via a perl/cgi script or a cgi
> program. Do I use "sendmail" via the shell? or can i send mail more
> directly?
Why not invoke sendmail without going through a shell? Use fork/exec.
> and for incoming mail, i need to accept incoming mail and then output
> .html for this mail, i guess. how do i accept this incoming mail?
> (my guess is that i interact with a mail server..)
"Interact" is a flexible word. You need not actually talk to any mail
server software. The following paragraph assumes your MTA uses an MDA
with the standard feature set, which most likely it does. (MTA == mail
transfer agent, which is the network server that sends and receives
mail across machines; MDA == mail delivery agent, which takes a message
from the MTA and delivers it locally.)
The standard MDA dumps messages, one after another, into a mail spool
file, which is just a text file, usually located in
/var/spool/mail/USERNAME. Each message starts with an "envelope", that
is, a line beginning with "From ", not to be confused with a line a few
lines later that will start with "From:". The "From " is what you
search for to delimit messages. To take a message off the server, read
the mail spool file and write back the abbreviated version.
You will be asking for trouble if you do this without locking the file.
(Sooner or later the MDA will try to deliver something while you're
mucking with the spool file and mail will be lost or corrupted.) See
the `movemail' program that comes with Emacs for one way to do this
properly. (There are different issues involved, so I won't try to
explain it all here.)
> I guess I need some resources to give me an introduction to this
> stuff. Any good introductory webpages or books?
Everything I've described is more or less standard Unix -- nothing
Linux-specific -- so just look for Unix resources....
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: Koh <[EMAIL PROTECTED]>
Subject: Re: Kernel problem (PANIC)
Date: Thu, 15 Apr 1999 12:27:45 +0800
These is what I got before Linux compiler kick me out...
These is the message I got:
Partition check:
hda: hda1 hda2 <hda5 hda6>
[MS-Dos FS Rel, 12, FAT 0, check=n, conv=b, uid=0, gid=0, umask=022,
bmap]
[me=0x0, cs=0, #f=0, fs=0, fl=0, ds=0, de=0, data=0, se=0, ts=0, ls=0]
Transaction block size=512
[MS-Dos FS Rel, 12, FAT 0, check=n, conv=b, uid=0, gid=0, umask=022,
bmap]
[me=0x0, cs=0, #f=0, fs=0, fl=0, ds=0, de=0, data=0, se=0, ts=0, ls=0]
Transaction block size=512
Kernel panic: VFS: Unable to mount root fs on 03:01
KOH.
=================================
Rik van Riel wrote:
> On Tue, 13 Apr 1999, Koh wrote:
>
> > BUT during boot up, it STOP at mouting to root
> > directory. The message is "(something)..... PANIC ...."
> ^^^^^^^^^^^
> > and the system hang.
>
> I have a hint for you: there's a good chance that
> the (something) contains all the information we need
> to help you solve your problem...
>
> Too bad you snipped the useful part :(
>
> Rik -- Open Source: you deserve to be in control of your data.
> +-------------------------------------------------------------------+
> | Le Reseau netwerksystemen BV: http://www.reseau.nl/ |
> | Linux Memory Management site: http://humbolt.geo.uu.nl/Linux-MM/ |
> | Nederlandse Linux documentatie: http://www.nl.linux.org/ |
> +-------------------------------------------------------------------+
------------------------------
From: "Brendan Reville" <[EMAIL PROTECTED]>
Subject: how do i program a "mail server"?
Date: Thu, 15 Apr 1999 11:14:15 +1000
hi all,
this is probably a dumb question because i'm just starting to learn about
these things... i want to write a little hotmail-style mail system, which
i'll run on my isp's linux box...
i need to be able to send email via a perl/cgi script or a cgi program. Do I
use "sendmail" via the shell? or can i send mail more directly?
and for incoming mail, i need to accept incoming mail and then output .html
for this mail, i guess. how do i accept this incoming mail? (my guess is
that i interact with a mail server..)
I guess I need some resources to give me an introduction to this stuff. Any
good introductory webpages or books?
thanks!
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: Minimum size for Linux kernel
Date: 14 Apr 1999 23:19:33 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Tony Moutaux <[EMAIL PROTECTED]>]
> I'm looking for information about the minimum size a Linux system
> could have to run on an embedded device. Let's talk about a PC
> compatible machine, which is more realistic. Can somebody tell me how
> much ROM and RAM spaces I need to run Linux with some features like
> the network and the memory management of course.
Try it. Compile a kernel with what you consider a minimal feature set,
then add the kernel to lilo.conf set to boot with the command line
"mem=4M" or "mem=3M" or whatever. Reboot and see how well it works.
Repeat until you have a sufficient answer to your question.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: Craig Graham <[EMAIL PROTECTED]>
Subject: Re: x86 PC emulator for x86 PC???
Date: Thu, 15 Apr 1999 07:45:10 +0000
Tom Lynch wrote:
>
> recursive emulation
>
> I have heard someone was working on this. Any info appreciated.
Check out www.bochs.com
That's probably what you're looking for - emulates
well enough to boot Linux,DOS or Windows on the
emulated CPU & run's on intel or non-intel platforms.
Craig.
------------------------------
From: [EMAIL PROTECTED] (Chris Gahan)
Crossposted-To: comp.os.linux.alpha,comp.os.linux.questions,comp.os.linux
Subject: Q: Is it possible to compile binaries for a different processor?
Date: Thu, 15 Apr 1999 07:03:07 GMT
I was wondering if it is indeed possible to compile x86 binaries, for
example, on an Alpha. I thought about this, and it definitely seems
possible. I figure that if you get the x86 version of GCC, and
compile it on an Alpha, it would spit out x86 binaries. Am I way off
with this, or is this something that I can do right now? :)
------------------------------
From: Sander Zijlstra <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: threads, how?????
Date: Thu, 15 Apr 1999 09:06:46 +0200
Recently I started using pthreads for my program which I'm writing
within my graduating-project, but I'm kinda new to programming under
Linux and especially with thread programming. Here's my question about
threads:
I want to make three threads running simultaniously, and processing on
the same data.
One thread has to read in the data from a socket (later on it will be a
I/O-device), while the next thread performs a FFT on that data, and
finally the last thread demodulates it (because the data represents a
modulated signal) and writes it to a file...
My question is this; which scheme must I use to let these threads do
their jobs simultaniously without bugging each other... do I use mutexes
or semaphores... and what's the best way of handling the data between
the processes through a buffer???
--
Sander Zijlstra,
HTS afstudeer-student.
Technische Universiteit Delft.
Faculteit Informatietechnologie en systemen. (ITS)
Mobile Multimedia Communication Project. (MMC)
E-mail: [EMAIL PROTECTED]
Room: 11.110
Phone: +31 (0)15-2783234
url: http://mmc.et.tudelft.nl/~sander
--- Microsoft SELLS you Windows, Linux GIVES you the whole house ---
------------------------------
From: [EMAIL PROTECTED]@Glue.umd.edu (David T. Wang)
Subject: Re: x86 PC emulator for x86 PC???
Date: 15 Apr 1999 08:53:22 GMT
Craig Graham ([EMAIL PROTECTED]) wrote:
: Tom Lynch wrote:
: >
: > recursive emulation
: >
: > I have heard someone was working on this. Any info appreciated.
: Check out www.bochs.com
: That's probably what you're looking for - emulates
: well enough to boot Linux,DOS or Windows on the
: emulated CPU & run's on intel or non-intel platforms.
: Craig.
http://www.vmware.com/
About a year ago, I asked if this could be done, and someone soundly
proclaimed that it could not because the X86 processor could not
virtualize itself. Apparently what VMWare is doing is trapping and
emulating the critical instructions, but allowing the "safe" user
mode instructions to execute normally. This would be a lot faster than
boch's software emulation solution. The person responsible for boch
is now starting a VMWare clone type of thing called FreeMWare to do
the same thing that VMWare does, but free and open I suppose. the details
on that effort maybe found by following the bochs link.
--
No SPAM or email wholly without substance please
Kyoto, Japan.
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: depend: how do I learn??
Date: 15 Apr 1999 01:02:41 -0500
Reply-To: [EMAIL PROTECTED]
This is not a system question. Followups redirected.
In article <7f3913$[EMAIL PROTECTED]>, Dan Miller wrote:
> for example, I'm looking at a Makefile that has a 'depend' command in
> it: 'depend .depend dep' ... looks like someone stuttered...
> I have two questions:
>
> 1. What does this mean?? I presume it represents SOME mechanism
> for updating files based upon their header dependencies (but Make
> does that anyway, doesn't it), but I don't know how it actually works.
> Besides, there's no .depend file anywhere here...
Makefiles are made up of targets and rules for making them. Often
there are dependency targets (i.e., stuff on the LHS of ":") that
are used to update Makefiles or auxiliary files that are incorporated
into Makefiles.
> 2. What's a good reference for learning basic *nix programming lore
> such as this???
The documentation? The "make" docs should be in /usr/info, in the
(notorious) "info" format. Read them with emacs, the standalone
"info" program, or your favorite pager.
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: Mark Tranchant <[EMAIL PROTECTED]>
Subject: Re: loading a driver twice without stacking
Date: Thu, 15 Apr 1999 08:02:27 +0100
Reply-To: [EMAIL PROTECTED]
Eric Hegstrom wrote:
>
> As Homer would say, "Dolt!". Sometimes I really wonder about myself.
>
It's "D'oh!".
:-)
Mark.
------------------------------
From: Roope Anttinen <[EMAIL PROTECTED]>
Subject: Re: Problems with 2.2.5 & sound & apm
Date: 15 Apr 1999 07:34:54 GMT
Reply-To: [EMAIL PROTECTED]
Kent Ritchie <[EMAIL PROTECTED]> wrote:
> Roope Anttinen ([EMAIL PROTECTED]) wrote:
> Do you remember which package. The one I was trying to compile (and did
> under 2.2.x) needed sock_packet configured in the kernel. Perhaps it was
> introduced to 2.0.x after 34? Or perhaps it was a different DHCP client.
> Do you remember where you found the DHCP client that worked with 2.0.x?
Sorry no. It was one of my coworkers who did it and I believe it was quite
regular RH-5.1 installation he did. Doesn't it come with kernel 2.0.35? But
anyway he did get the dhcp stuff work but I gave him permanent IP after we
discowered that the buggy NT dhcp server gave his IP address away after one
day of uptime. So NT's dhcp assumes that any client can't be alive that long
time ;)
Roope
--
MicroSoft? is that some kind of a toilet paper?
PS: Look for address here, not from headers. And remove NOSPAM's
___________________________________________________________________________
[EMAIL PROTECTED] / [EMAIL PROTECTED]
+358 9 812 7567 / +358 500 445 565 / +358 49 445 565
http://myy.helia.fi/~anttiner/index.html
===========================================================================
Helsinki Business Polytechnic - Institute of information technology
------------------------------
** 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
******************************