Linux-Development-Sys Digest #850, Volume #7 Sat, 13 May 00 00:13:16 EDT
Contents:
Re: Instruction Access Exception (Sam E. Trenholme)
Re: DNS problem (Steve)
Re: ANSI C & void main() (Erik Max Francis)
Re: ANSI C & void main() (Erik Max Francis)
Re: ANSI C & void main() (Erik Max Francis)
Please help me find a Modem Driver ("Marina")
Re: Object oriented OS (?) ("Maxim S. Shatskih")
es1371 modules problem (David Ronis)
Re: Object oriented OS (?) (Lew Pitcher)
Re: ANSI C & void main() (David Wragg)
Re: ANSI C & void main() (Kaz Kylheku)
Is there a free CTRACE? (dmedhora)
Re: Other than console ("prabha")
Re: Other than console (Robert Redelmeier)
Re: ANSI C & void main() (Horst von Brand)
Re: depmod -a : not an ELF file ! (Allin Cottrell)
Re: DNS problem (Thomas F. Drescher)
Re: Instruction Access Exception ([EMAIL PROTECTED])
Re: Instruction Access Exception ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Sam E. Trenholme)
Crossposted-To: comp.os.linux.setup,comp.os.linux.misc
Subject: Re: Instruction Access Exception
Date: 12 May 2000 13:16:27 -0700
>I'm trying to recompile the kernel on my SPARCstation 10.
>
>I downloaded the source (2.2.12 and 2.2.14 tried) from tsx-11, make
>config, make dep, make vmlinux, make modules, copied vmlinux to
>/boot/vmlinux-2.2.14 (also moved the System.map), and updated silo.conf
>appropriately.
Try this:
Instead of using a stock Kernel, use the kernel that comes with your
distribution. This is usually available as a .src.rpm on the source CD
your distribution came with. It will, in the compile process, add a lot
of patches, including the one needed to make it work with your Sparc 10.
Either that, or compile your kernel with a minimum of drivers that may be
causing it to crash.
- Sam
--
Please post, and not email, questions you have about my answers
Go to http://samiam.org/cgi-bin/mailme to get my email address
------------------------------
From: [EMAIL PROTECTED] (Steve)
Crossposted-To: comp.os.linux.networking,comp.os.linux.misc
Subject: Re: DNS problem
Reply-To: [EMAIL PROTECTED]
Date: 12 May 2000 21:31:10 GMT
In the messages log file it gives you a pid in square brackets (process ID),
to into the /proc directory as root, see if there's a directory for that
pid that you got from the messages file, enter that directory, and there's
a file called environ, which gives you the environment variables for that
user such as username, hostname etc.
Hope this helps.
--
Cheers
Steve email mailto:[EMAIL PROTECTED]
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.ndirect.co.uk/~sjlen/
or http://start.at/zero-pps
4:56pm up 15 days, 18:57, 4 users, load average: 1.12, 1.10, 1.08
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: ANSI C & void main()
Date: Fri, 12 May 2000 13:45:47 -0700
Johan Kullstam wrote:
> yes this true. i've done "void main" for embedded systems which don't
> really have any operating system.
Note that the Standard explicitly states that in a "freestanding
environment" (i.e., where a C program can execute without an operating
system involved), the startup function called and its prototype are
implementation defined. Obviously, if you're dealing with an embedded
system, the function which first gets called may not be called 'main' at
all.
--
Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Shooters, looters / Now I got a laptop computer
\__/ Ice Cube
blackgirl international / http://www.blackgirl.org/
The Internet resource for black women.
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: ANSI C & void main()
Date: Fri, 12 May 2000 13:49:08 -0700
Mark Graybill wrote:
> Tell me when the original standard was published. (Hint: 16 >> 4; 144
> >> 4;
> 128 >> 4; 144 >> 4;)
>
> Where you programming in C then?
What does this have to do with anything?
> You misread. I said I doubt the current standard includes void main()
> as
> legal, so why pay $135 to get it.
Sorry, you're right.
> Why would I read comp.lang.c.FAQ? Unless it's run by ANSI committe
> members,
> it's contents are not the standard anymore than my book written by the
> creators of C themselves, is the standard.
It's written by people aware of the Standard, and references the
Standard frequently. It is a good place to look up information on
Standard C and writing Standard-conforming, whereas many books are not.
> All the compilers I've used allows for its use, and they don't produce
> erratic behavior, or undefined behavior as you call it. This is
> probably
> due to legacy compatibility (a good attention to detail to have.)
Again, you do not seem to understand the definition of the word
"undefined behavior." When something is marked in the Standard as
resulting in undefined behavior, it means: DO NOT DO THIS. YOU ARE NOT
GUARANTEED THAT THIS CODE WILL WORK. IF YOU INVOKE THIS BEHAVIOR, YOUR
PROGRAM WILL NOT BE PORTABLE. IT MAY WORK FOR YOU NOW, ON THIS
COMPILER, ON THIS PLATFORM, BUT YOU HAVE NO GUARANTEES THAT IT WILL
CONTINUE WORKING TOMORROW. Clear now?
--
Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ The revolution will not televised
\__/ Public Enemy
Crank Dot Net / http://www.crank.net/
Cranks, crackpots, kooks, & loons on the Net.
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Subject: Re: ANSI C & void main()
Date: Fri, 12 May 2000 13:51:41 -0700
Paul Kimoto wrote:
> K&R2, in the summary of changes between K&R (first edition) and the
> ANSI
> standard, says (p. 259):
>
> : New keywords (void, const, volatile, signed, enum) are introduced.
Indeed. void is an ANSIism. It did not exist in so-called
"traditional" (legacy) or even K&R C.
--
Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ The revolution will not televised
\__/ Public Enemy
Crank Dot Net / http://www.crank.net/
Cranks, crackpots, kooks, & loons on the Net.
------------------------------
From: "Marina" <[EMAIL PROTECTED]>
Subject: Please help me find a Modem Driver
Date: Fri, 12 May 2000 14:23:30 -0700
HELP!!!!! I have a Aztech Labs modem. It works fine in Windows, but I need
a driver to use in Linux. I am currently running both Win 98 and Mandrake
Linux 7.0...
Does any one know where I might be able to find one, or how I can make my
modem work??
I prefer to work in Linux, but in order to go on line and such I have to go
into windows....HELP ME PLEASE!!
Marina
--
Without the Joy of Java, Life doesn't amount to a Hill of Beans
------------------------------
From: "Maxim S. Shatskih" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.development
Subject: Re: Object oriented OS (?)
Date: Thu, 11 May 2000 23:37:34 +0400
> Sending TCP over loopback will not go over UNIX domain sockets or any
> other short circuit. It will be handled by going all the way down to the
> loopback adapter. All the TCP protocol mechanisms are still in place.
Will BSD skip TCP (body) and IP (header) checksums calculation on
127.0.0.1?
BTW - checksums in TCP/IP seems to be the only nastiness in it. According
to OSI, it is the job of _data link_ (MAC) - not transport or network
layers - to
stamp/check the checksums.
What is the reason of checking the CPU for bugs on each packet? :-)
Max
------------------------------
From: David Ronis <[EMAIL PROTECTED]>
Subject: es1371 modules problem
Date: Fri, 12 May 2000 22:34:00 GMT
I'm running 2.2.15 and am trying to get the es1371 module to auto-load.
I have the following lines in my modules.conf file:
alias sound es1371
alias sound-slot-1 es1371
alias sound-service-1-0 es1371
alias sound-service-1-2 es1371
alias sound-service-1-3 es1371
alias sound-service-1-4 es1371
alias sound-slot-0 es1371
alias sound-service-0-0 es1371
alias sound-service-0-2 es1371
alias sound-service-0-3 es1371
alias sound-service-0-4 es1371
and if I do a modprobe sound things work. However, without me
explicitly loading the driver, all sound apps fail. (questioning if I
have sound compiled into the kernel (gmix), or complainging about not
being able to open /dev/dsp (mpg123)--both work if the module is
manually loaded).
Other loadable modules load and unload automatically as expected. I'm
probably missing something in the modules.conf file.
David
------------------------------
From: Lew Pitcher <[EMAIL PROTECTED]>
Crossposted-To: alt.os.development
Subject: Re: Object oriented OS (?)
Date: Fri, 12 May 2000 23:32:48 GMT
"Maxim S. Shatskih" wrote:
>
> > I don't know. I sort of assumed that was the case because performance
> > was so bad :-) (i.e. 55,000 cycles for a same-machine, null-RPC).
>
> Maybe TCP/IP checksums are computed even for loopback? :-)))
>
> > Anyone know how to get null-RPC to improve on (say) Linux?
>
> Linux has pipes, named pipes (UNIX FIFOs, nothing to do with SMB named
> pipes), UNIX domain sockets, IP stack and SysV messages. This is all.
You forgot shared memory :-)
> I don't think Linux guys will invent some cardinally new IPC - they will
> wait till it
> will be POSIX...
>
> Max
--
Lew Pitcher
Master Codewright and JOAT-in-training
------------------------------
From: David Wragg <[EMAIL PROTECTED]>
Subject: Re: ANSI C & void main()
Date: 12 May 2000 23:38:35 +0000
Erik Max Francis <[EMAIL PROTECTED]> writes:
> Paul Kimoto wrote:
> > K&R2, in the summary of changes between K&R (first edition) and the
> > ANSI
> > standard, says (p. 259):
> >
> > : New keywords (void, const, volatile, signed, enum) are introduced.
>
> Indeed. void is an ANSIism. It did not exist in so-called
> "traditional" (legacy) or even K&R C.
IIRC, void return was an AT&Tism.
While C89/90 had many additions over K&R1, it had relatively few
syntatical innovation that were purely due to the standards process
(const was new, and prototypes were new but borrowed from C++).
Between K&R1 and ANSI, the compilers from AT&T were very influential,
and added features that were adopted by other compilers.
void pointers came later than void return, but I'm not sure if ANSI
introduced them or if they were in a version of the AT&T compiler
before that.
David Wragg
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: ANSI C & void main()
Reply-To: [EMAIL PROTECTED]
Date: Sat, 13 May 2000 00:13:31 GMT
On 12 May 2000 23:38:35 +0000, David Wragg <[EMAIL PROTECTED]> wrote:
>Erik Max Francis <[EMAIL PROTECTED]> writes:
>> Paul Kimoto wrote:
>> > K&R2, in the summary of changes between K&R (first edition) and the
>> > ANSI
>> > standard, says (p. 259):
>> >
>> > : New keywords (void, const, volatile, signed, enum) are introduced.
>>
>> Indeed. void is an ANSIism. It did not exist in so-called
>> "traditional" (legacy) or even K&R C.
>
>IIRC, void return was an AT&Tism.
>
>While C89/90 had many additions over K&R1, it had relatively few
>syntatical innovation that were purely due to the standards process
>(const was new, and prototypes were new but borrowed from C++).
>Between K&R1 and ANSI, the compilers from AT&T were very influential,
>and added features that were adopted by other compilers.
>
>void pointers came later than void return, but I'm not sure if ANSI
>introduced them or if they were in a version of the AT&T compiler
>before that.
I believe that the type void, and function prototypes, came from C++.
(So at theast the AT&T influence is right).
------------------------------
From: dmedhora <[EMAIL PROTECTED]>
Subject: Is there a free CTRACE?
Date: Fri, 12 May 2000 10:08:35 -0700
==============D141177F4004D51E63E2F31A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello all, Is there a free ctrace like program that I can download to
use on Linux?
I don't like to use gdb and cousins..
==============D141177F4004D51E63E2F31A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello all, Is there a free <b>ctrace</b> like program that I can download
to use on Linux?
<br>I don't like to use gdb and cousins..
<br> </html>
==============D141177F4004D51E63E2F31A==
------------------------------
From: "prabha" <[EMAIL PROTECTED]>
Subject: Re: Other than console
Date: Fri, 12 May 2000 18:14:50 -0700
Like the "ifconfig" command. This works only in the console not on telnet
terminals.
Thanks
-prabha
"Rick Ellis" <[EMAIL PROTECTED]> wrote in message
news:8fhfre$evu$[EMAIL PROTECTED]...
> In article <8ff1u6$gbf$[EMAIL PROTECTED]>, prabha <[EMAIL PROTECTED]>
wrote:
>
> >Some commands are not working in terminals other than console on a RH 6.0
> >system. I know there is a file to change all these stuff, but don't know
> >where it is.
>
> What do you mean by "not working?" What are you using for "other than
> console?"
>
> Could it be the terminal type (the TERM environment variable) is
> set wrong?
>
> --
> http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: Robert Redelmeier <[EMAIL PROTECTED]>
Subject: Re: Other than console
Date: Fri, 12 May 2000 21:28:46 -0500
prabha wrote:
>
> Like the "ifconfig" command. This works only in the console not on telnet
> terminals.
doh! I bet `ifconfig` works, but you won't like the effect of
being disconnected. Same with `route`. If you mess with either,
`telnetd` is likely to get very unhappy when it's sockets don't
reply. AFAIK, hitting `ifconfig` also resets the routing tables.
Of course you can always use `ifconfig` or `route` to dump info,
not changing anything.
So if you want to try any of these over a telnet connection,
make sure you get all commands absolutely correct, put them
in a script file, and run it in such a way that when your telnet
session closes, it won't die (AFAIK, modern shells don't kill
their children automatically, otherwise `nohup`). Then if
everything has gone right, you can telnet back into the box.
Otherwise, it's a trip to the console.
-- Robert
------------------------------
From: [EMAIL PROTECTED] (Horst von Brand)
Subject: Re: ANSI C & void main()
Date: 13 May 2000 02:10:05 GMT
Reply-To: [EMAIL PROTECTED]
On Fri, 12 May 2000 12:55:12 GMT, Mark Graybill <[EMAIL PROTECTED]> wrote:
[...]
>Why would I read comp.lang.c.FAQ? Unless it's run by ANSI committe members,
>it's contents are not the standard anymore than my book written by the
>creators of C themselves, is the standard. Besides, for one, I don't
>program in C anymore; for two, if I did, I wouldn't be doing very well to
>need to read answers to FAQ to C programming after more than a decade of C
>programming. :)
If you don't program in C, why are you arguing about C anyway?
BTW, after some 15 years programming in C, the cited FAQ does help me
refresh my understanding when rereading it, say once a year, and has taught
me a point or two. It sure isn't the standard, but its contents have been
checked over and over by people who know it inside out.
[...]
>When C first came out, it allowed for void main(). I'm sure Dennis Ritchie
>has an original copy in his archives. I will see if he will consult it.
Impossible. Original (K&R C) didn't have void at all.
[...]
>All the compilers I've used allows for its use, and they don't produce
>erratic behavior, or undefined behavior as you call it. This is probably
>due to legacy compatibility (a good attention to detail to have.)
Giving a random exit value sure is "erratic behaviour" in my eyes. And the
standard is written so that machines which do not implement function return
values in registers (as almost all do) do work. On them, your "void main()"
would most probably simply crash on exit. Not erratic, deterministic. ;-)
--
Horst von Brand [EMAIL PROTECTED]
Casilla 9G, Vi�a del Mar, Chile +56 32 672616
------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: depmod -a : not an ELF file !
Date: Fri, 12 May 2000 22:45:40 -0400
Samuel Tran wrote:
> When I type "depmod -a" I got the message : "depmod : not an ELF file".
Please post this sort of thing to comp.os.linux.misc.
Take a look at /sbin/depmod E.g. "file /sbin/depmod". It's supposed
to be an executable file (in ELF format). If /sbin/depmod is OK,
see if there's an imposter around:
which depmod
There could be a spurious file of that name somewhere in your "path"
prior to the one you want. If that's the case, and the file was put
there by a Debian update, then send a bug report to Debian.
Allin Cottrell.
------------------------------
From: Thomas F. Drescher <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.misc
Subject: Re: DNS problem
Date: Sat, 13 May 2000 05:40:10 GMT
Cheers Mark,
shouldn't that be defined as:
%HAV-E-NICEDAY Error not enough coffee !S pps
- AFAI remember by heart ...or even !U?
;^) Thomas
>>>>>>>>>>>>>>>>>> Urspr=FCngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 11.05.00, 23:30:29, schrieb [EMAIL PROTECTED]=20
(Mark(un-MASK)Forsyth) zum Thema Re: DNS problem:
> On 9 May 2000 18:45:02 GMT, Steve <[EMAIL PROTECTED]> wrote:
> >
> [deletia]
> >--
> >Cheers
> >Steve email mailto:[EMAIL PROTECTED]
> >
> >%HAV-A-NICEDAY Error not enough coffee 0 pps.
> Oh man...AT least get the error message correct. It really should read=
=20
:-
> %HAV-E-NICEDAY Error not enough coffee !AS pps.
> or the original error :-
> %EYE-I-CLOSED No cafeine eyes closed.
> This is the root cause of the problem. The second error is a=20
consequence.
> [1]
> >
> >web http://www.ndirect.co.uk/~sjlen/
> >
> >or http://start.at/zero-pps
> >
> > 9:40am up 12 days, 11:41, 2 users, load average: 1.08, 1.02, 1.0=
0
> [1] Non OpenVMS-heads can safely ignore this.
> --
> Mark F...
> unMASK for e-mail
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.setup,comp.os.linux.misc
Subject: Re: Instruction Access Exception
Date: 13 May 2000 03:31:44 GMT
In comp.os.linux.development.system Anand Krishnamoorthy <[EMAIL PROTECTED]> wrote:
: Did you run 'lilo' after updating the lilo.conf? Try that out if you
: haven't..
SPARC uses SILO, not LILO. You don't have to rerun 'silo' after a kernel
recompile (although I tried it both ways anyway).
--J
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.setup,comp.os.linux.misc
Subject: Re: Instruction Access Exception
Date: 13 May 2000 03:30:51 GMT
In comp.os.linux.development.system Sam E. Trenholme <[EMAIL PROTECTED]>
wrote:
:>I'm trying to recompile the kernel on my SPARCstation 10.
:>
:>I downloaded the source (2.2.12 and 2.2.14 tried) from tsx-11, make
:>config, make dep, make vmlinux, make modules, copied vmlinux to
:>/boot/vmlinux-2.2.14 (also moved the System.map), and updated silo.conf
:>appropriately.
: Try this:
: Instead of using a stock Kernel, use the kernel that comes with your
: distribution. This is usually available as a .src.rpm on the source CD
: your distribution came with. It will, in the compile process, add a lot
: of patches, including the one needed to make it work with your Sparc 10.
: Either that, or compile your kernel with a minimum of drivers that may be
: causing it to crash.
Actually, I tried that first.
The RedHat distro I'm using came with the sources for the running kernel
in /usr/src/linux. I tried those many times. After a while, I figured
out that I was compiling in drivers that weren't going to work (IPX, for
instance), so I pared it down to the BARE minimum.
At that point, 'make vmlinux' and 'make modules' work, but the 'make'
process on a SPARC isn't like on Intel. It doesn't copy the kernel
anywhere for you (I checked the timestamp on all the 'vmlinu[xz]' files I
could find).
It seems like there's some step I need to do before or after I copy
/usr/src/linux/vmlinux to /boot/vmlinux (SILO supports both compressed and
uncompressed) so that it will run. I know SILO finds the kernel, but it
won't execute.
I've never done kernel debugging before, although I'd be willing to dive
in to get this solved. I figure it'll help me when it's time to tackle
Linux on the Mac IIci and the Alpha anyway (yes, those are future
projects).
Thanks!
--J
------------------------------
** 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
******************************