Linux-Development-Sys Digest #610, Volume #6 Sat, 10 Apr 99 09:14:04 EDT
Contents:
Re: The Auto Sleep of Linux?? (Adam P. Jenkins)
Re: Question about gdb (Peter Samuelson)
MPEG player source code for Linux? (Kendall Bennett)
Re: CodeWarror for Linux (was: Re: Programming tools for ...) (Christopher B. Browne)
modprobe error at start up and shutdown (Julio De Gregorio)
Re: MPEG player source code for Linux? (Adam P. Jenkins)
Online Kernel debugger (Ravi Wijayaratne)
Re: kernel compilation error (Jim Roberts)
Re: Proposal: "Linux 2000 Platform" (Roberto Pavan)
Re: Ramdisk: Why not boot compressed from hda ? ("B. James Phillippe")
kernel_thread()'s become zombies ("B. James Phillippe")
Re: help with gcc and a.out (Ray Wallace-Watson)
Re: Proposal: "Linux 2000 Platform" ("G. Sumner Hayes")
Help: ksymoops does not compile: -lbfd: no such file (Thomas Jaeger)
Re: dump and kernels 2.2.5 (SMP) ( master/slave protocol botched ) (Andreas Dilger)
Re: How to test if /dev/fd0 exists (Phil Howard)
----------------------------------------------------------------------------
Subject: Re: The Auto Sleep of Linux??
From: [EMAIL PROTECTED] (Adam P. Jenkins)
Date: 09 Apr 1999 23:14:59 -0400
[EMAIL PROTECTED] (Edmond Song) writes:
> I sent an enquiry days ago and got suggestions about the Auto sleep function.
> Most of them suggested that I recompile the kernel which is a painful
> process. I don't get the rational of this, my friend had another Compaq
> Presario, he didn't compile the kernel and the apm works. Why should I
> recompile in order to let it work? Does the compilation process take
> some information from the bios or other hardware?
You may not need to recompile either if your kernel has already been
compiled with apm support. However I don't know why you say it's
painful to recompile the kernel. Just log in as root, and run the
following commands:
$ cd /usr/src/linux
$ make xconfig
$ make dep zImage modules
If you're not running under X, you can use "make config" or "make
menuconfig" instead of "make xconfig". In the config screen, find the
"character devices" section and enable apm support.
--
Adam P. Jenkins
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: Question about gdb
Date: 9 Apr 1999 21:03:33 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Christopher Swanson <[EMAIL PROTECTED]>]
> I'm about to do a project which will fork several new processes. I am
> curious to know if gdb is able to debug a forked process. If so,
> might anyone relay how I may be able to do this? Thanks for any help.
Nope. gdb will continue to debug the parent process.
The gdb info file (i.e. the documentation) suggests that you insert a
sleep() call in the child process, then when you hit the fork, do a
`ps' listing to find the child (or of course look at the parent's
return value...), run another instance of gdb and attach it to the
child. Details are in the info file.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: [EMAIL PROTECTED] (Kendall Bennett)
Subject: MPEG player source code for Linux?
Date: Fri, 9 Apr 1999 16:48:54 -0700
Hi All,
We are looking at implementing hardware assisted MPEG2/DVD playback under
non-Windows OS'es including Linux. Does anyone know if there are any Open
Source MPEG2 decoders available? What does Linux currently use for MPEG
players, since I know that Red Hat ships with an MPEG player of some
description?
Regards,
--
+----------------------------------------------------------------------+
| SciTech Software - Building Truly Plug'n'Play Software! |
+----------------------------------------------------------------------+
| Kendall Bennett | To reply via email, remove nospam from |
| Director of Engineering | the reply to email address. Do NOT send |
| SciTech Software, Inc. | unsolicited commercial email! |
| 505 Wall Street | ftp : ftp.scitechsoft.com |
| Chico, CA 95928, USA | www : http://www.scitechsoft.com |
+----------------------------------------------------------------------+
------------------------------
From: [EMAIL PROTECTED] (Christopher B. Browne)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development.apps
Subject: Re: CodeWarror for Linux (was: Re: Programming tools for ...)
Reply-To: [EMAIL PROTECTED]
Date: Sat, 10 Apr 1999 04:01:06 GMT
On Fri, 9 Apr 1999 18:14:25 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> posted:
>In article <7elpdr$hg0$[EMAIL PROTECTED]>,
>[EMAIL PROTECTED] says...
>> In article <[EMAIL PROTECTED]>,
>> [EMAIL PROTECTED] writes:
>> > Agreed, X sucks.
>>
>> No, he said Motif sucks. Big difference!
>
>If the foundation is weak, why would the higher level abstractions be any
>better?
There is diverse disagreement as to the merit of the thesis that "X
sucks." Many of the assertions commonly made about the "evils" of X
are misleading or downright false.
There is much wider-spread agreement that Motif is severely flawed,
and that is not a factor that forcibly applies to all other high level
abstractions.
>> >> This is partly
>> >> historical accident (generalizing from the transition
>> >> of MS-Dos to MS-Windows), partly socialization (Windows
>> >> users are trained to be application oriented rather
>> >> than tool and data format oriented and trained to learn
>> >> by trial and error rather than by reading documentation),
>> >
>> > That's not a particular correct way to state it. The fundamental
>> > principle is that people can relate to pushing buttons and such just like
>> > most can use a stereo system.
>>
>> And most people can't operate their VCR for anything other than straight
>> playback either. Single examples don't prove much of anything.
>
>The analogy fits almost perfectly. Just go try and sell stereo systems
>after you remove all the front panels. That's what you're advocating.
>
>> > I think the defensive posture taken by your kind is probably because you
>> > just don't have a GUI that is useful or elegant (X sucks) so you have to
>> > patronize yourselves. Right?
>>
>> Can you name this "useful or elegant" GUI? (Opening myself up to the Mac
>> fanatics!) It sure isn't WinDoze for the types of activities I use a computer
>> for.
>
>I didn't say that the perfect one exists. But you have to at least get
>in range of a useable product. Windows obviously has done that. The
>UNIX crowd could have improved on it but instead chose to give up the
>competition. Oh well.
Motif is a good candidate to which to attribute fault in that; between
bugs and technical flaws, and the rather severe licensing flaws, I
would suggest that Motif set things back by 5 years.
I'm not sure that there was anything else hiding out in the wings that
could have been a reasonable replacement; the three notable
abstractions at around that time were Fresco, which wasn't proprietary
enough to have monied advocates, NeWS, which would have given Sun
Total Control, or NeXTStep, which would have given NeXT Total Control.
Note that over the last three years, some new abstraction APIs *have*
come along, notably GTK and Qt, but also GNUstep (representative of a
"NeXTStep clone"), Berlin (which seems to be making use of what
learning came from Fresco), and FLTK (it's another one...). It is
well worth noting that while all of these GUI APIs run on X, they are
not forcibly dependent on X, and generally do run on other graphical
infrastructures.
Code developed for these APIs are not, in any overly essential way,
"tied to X," particularly when many applications are getting
crossported to Win32 using the same APIs.
Which all goes to say that:
a) It is *not* true to say that the competition has been given up, and
b) It is *not* true to say that everything is forcibly X-based.
Add to this that the "GGI" project is (perhaps not at infinite speed)
working towards providing an alternative "frame buffer"-oriented way
of getting at graphical hardware.
I don't think it is likely that X will go away any time soon, but
there are enough things moving forward that there *are* paths leading
away from at least some of the ugly bits of X.
--
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer <http://www.hex.net/~cbbrowne/lsf.html>
[EMAIL PROTECTED] - "What have you contributed to free software today?..."
------------------------------
From: Julio De Gregorio <[EMAIL PROTECTED]>
Subject: modprobe error at start up and shutdown
Date: Sat, 10 Apr 1999 01:30:12 -0300
Hi,
I'm running on RH5.2, I've just recompiled the kernel and the
modules.
Everything seems to work just fine but I get modprobe errors at start up
like this
modprobe: can't find module mod-ip3
modprobe: can't find module mod-ip4
modprobe: can't find module mod-ip4
modprobe: can't find module mod-ip5
this errors happen at system boot and shutdown. What are they warning
me?
Note: this errors don't show with de demsg command... :(
------------------------------
Subject: Re: MPEG player source code for Linux?
From: [EMAIL PROTECTED] (Adam P. Jenkins)
Date: 10 Apr 1999 01:54:01 -0400
[EMAIL PROTECTED] (Kendall Bennett) writes:
> Hi All,
>
> We are looking at implementing hardware assisted MPEG2/DVD playback under
> non-Windows OS'es including Linux. Does anyone know if there are any Open
> Source MPEG2 decoders available? What does Linux currently use for MPEG
> players, since I know that Red Hat ships with an MPEG player of some
> description?
Search the Linux Software Map, at http://www.boutell.com/lsm/, for
mpeg players, and you'll find a bunch. Do a keyword search for
"mpeg". xanim is probably the most common mpeg player on Linux. For
DVD try MpegTV.
--
Adam P. Jenkins
[EMAIL PROTECTED]
------------------------------
From: Ravi Wijayaratne <[EMAIL PROTECTED]>
Subject: Online Kernel debugger
Date: Fri, 09 Apr 1999 12:11:48 -0500
Reply-To: [EMAIL PROTECTED]
Hi,
I am looking for an online kernel debugger for linux 2.0.33 kernel
version.
Are there any avialbale for the later versions of linux ? If so where ?
Thank you
Ravi
------------------------------
From: [EMAIL PROTECTED] (Jim Roberts)
Subject: Re: kernel compilation error
Date: Fri, 09 Apr 1999 18:10:31 GMT
SNIP
'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
>-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
>-malign-functions=2 -DCPU=686 -DMODULE -DMODVERSIONS -include
>/usr/src/linux/include/linux/modversions.h -c -o cpqarray.o cpqarray.c
> In file included from cpqarray.c:54:
> cpqarray.h:34: linux/md.h: No such file or directory
> /usr/src/linux/include/linux/blk.h:398: warning: `do_ida' defined but not used
> make[2]: *** [cpqarray.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.2.5/drivers/block'
> make[1]: *** [_modsubdir_block] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.2.5/drivers'
> make: *** [_mod_drivers] Error 2
>
> what's wrong?
>
Looks like you didn't create the link from the linux-2.2.5 source tree
to linux.
ie: ln -s linux-2.2.5 linux
--
Jim Roberts Never enough time!
[EMAIL PROTECTED]
------------------------------
From: Roberto Pavan <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.linux.misc
Subject: Re: Proposal: "Linux 2000 Platform"
Date: Sat, 10 Apr 1999 07:00:16 GMT
"G. Sumner Hayes" wrote:
> grail supports python applets. At least one of the tcl ones supported
> tcl applets, and there's the safeTCL plugin for Netscape.
>
> arena, amaya, grail, surfit, tkwww, opera, netscape, chimera, xmosaic,
> netscape, lynx, emacs-w3, kfm, gnome-helper, gzilla, IE, cello,
> spry mosaic, redbaron, visage-web
>
> Any others worth mentioning?
kfm?
--
Your faithful narrator,
Roberto Pavan [EMAIL PROTECTED]
In some countries what I do is considered normal.
------------------------------
From: "B. James Phillippe" <[EMAIL PROTECTED]>
Subject: Re: Ramdisk: Why not boot compressed from hda ?
Date: Sat, 10 Apr 1999 00:20:09 -0700
On Wed, 7 Apr 1999, Vipin Malik wrote:
> My problem is this: If I try to boot a compressed kernel into ramdisk
> from the hard drive (hda1), it fails! This works successfully if I do
...
> I traced this behaviour to a source line in "rd.c" where it tests to see
> if the Major # of the booting device is for the floppy! Why ?
>
> I commented this line out and now I can load a compressed Kernel from
> hda1 into ram0.
...
> I am using a flash disk for my bootdisk and main fs, and Flash disk is
> currently 3-5 times more $$ than ram, hence I want to run out of
> RAM(disk) rather than hda1.
Hi Vipin,
We ran into the same problem. We produce a firewall appliance product
based on Linux, and it too boots from flash memory. I found the exact
same solution as you, made the same change, and we have had no problems
with it for almost a year. I asked the same question on linux-kernel but
never got a response. I can only assume that the check was in there simply
because the author did not consider the practicality of such an
application.
cheers,
-bp
--
B. James Phillippe . [EMAIL PROTECTED]
Software Engineer, WGT Inc. . http://www.terran.org/~bryan
------------------------------
From: "B. James Phillippe" <[EMAIL PROTECTED]>
Subject: kernel_thread()'s become zombies
Date: Sat, 10 Apr 1999 00:41:12 -0700
Greetings,
I'm writing a module (for 2.2) which starts a kernel thread at insmod time.
I have run into two problems. The first is that my thread is a child of
insmod unless I start it from outside process context. Currently I work
around that by launching it from a kernel timer which expires momentarily
after insmod. The other problem is that when my thread functions exits, it
becomes a zombie. Is there a way for me to cleanly remove the thread at
rmmod time when it is finished doing it's work?
thanks,
-bp
--
B. James Phillippe . [EMAIL PROTECTED]
Software Engineer, WGT Inc. . http://www.terran.org/~bryan
------------------------------
From: Ray Wallace-Watson <[EMAIL PROTECTED]>
Subject: Re: help with gcc and a.out
Date: Sat, 10 Apr 1999 09:14:43 +0100
The most probable cause is not having the current directory on your path.
Try typing in ./a.out, that will probably work.
If that fails, make sure you have execute permission on the a.out file.
Hope this helps.
Ray
Michael Ruel Loehr wrote:
> , I just installed redhat 5.2. I want to develop c++ programs on it. I
> tried to make a hello world program but I run into a problem. It compiles
> fine
> g++ helloworld.cc
>
> If i look in my directory i see the files
> helloworld.cc a.out
>
> but if i type a.out I get a bash error command not found or something like
> that
>
> If i go into the debugger, the program runs fine?
> One of my friends mentioned that I have to type ./ or something, but I
> couldn't get that to work either?
>
> (if you know of a solution e mail me [EMAIL PROTECTED] )
> Someone help, please
>
> Ruel Loehr
------------------------------
From: "G. Sumner Hayes" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.linux.misc
Subject: Re: Proposal: "Linux 2000 Platform"
Date: Sat, 10 Apr 1999 04:01:21 -0400
Roberto Pavan wrote:
>
> "G. Sumner Hayes" wrote:
> > arena, amaya, grail, surfit, tkwww, opera, netscape, chimera,
> > xmosaic, netscape, lynx, emacs-w3, kfm, gnome-helper, gzilla, IE,
^^^
> > cello, spry mosaic, redbaron, visage-web
> >
> > Any others worth mentioning?
>
> kfm?
^^^
;^)
In addition to the two that Christopher Browne added (Closure and
Skate), I forgot Hotjava. Doh.
--Sumner
------------------------------
From: Thomas Jaeger <[EMAIL PROTECTED]>
Subject: Help: ksymoops does not compile: -lbfd: no such file
Date: Sat, 10 Apr 1999 10:55:58 +0200
Hi Linux folks,
I just tried to compile the ksymoops programm in linux/scripts/ksymoops
my problem is the following message:
/usr/i586-pc-linux-gnulibc1/bin/ld: cannot open -lbfd: No such file or
directory
What's wrong? What library is missing and where can I get it?
Any help welcome.
Cheers
Thomas Jaeger
mailto:[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Andreas Dilger)
Subject: Re: dump and kernels 2.2.5 (SMP) ( master/slave protocol botched )
Date: 10 Apr 1999 11:05:01 GMT
In article <[EMAIL PROTECTED]>, Bruce <[EMAIL PROTECTED]> wrote:
>When I run dump (locally) using a DLT tape drive, I get the following almost
>immediately
>
>[root@wolf bin]# dump 7ufbB /dev/nst0 20 20000000 /
> DUMP: Date of this level 7 dump: Fri Apr 9 10:15:22 1999
> DUMP: Date of last level 0 dump: Thu Apr 8 16:21:40 1999
> DUMP: Dumping /dev/sda8 (/) to /dev/nst0
> DUMP: mapping (Pass I) [regular files]
> DUMP: mapping (Pass II) [directories]
> DUMP: estimated 6079 tape blocks on 0.00 tape(s).
> DUMP: dumping (Pass III) [directories]
> DUMP: master/slave protocol botched.
> DUMP: The ENTIRE dump is aborted.
Actually, I was having somewhat similar problems, and it only showed up
when I was doing a network (remote) dump. I think it has to do with the
signal handlers... In the Makefile for dump, it defines "_USE_BSD_SIGNAL",
but if you look in /usr/include/signal.h (on my old Slackware and Debian
at least), it is looking for "__USE_BSD_SIGNAL" (two leading underscores).
Once I changed that, it worked 100% when it was failing 100% before.
I sent this fix to the Debian maintainer, since I have never heard back
from Remy Card, the original dump author. I suggest you submit it to
Red Hat as well, if it fixes your problem.
Cheers, Andreas
--
Andreas Dilger University of Calgary \"If a man ate a pound of pasta and
Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \ cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/ hungry?" -- Dogbert
------------------------------
From: [EMAIL PROTECTED] (Phil Howard)
Subject: Re: How to test if /dev/fd0 exists
Date: Sat, 10 Apr 1999 11:46:24 GMT
On Fri, 9 Apr 1999 12:51:28 GMT [EMAIL PROTECTED] wrote:
| Phil Howard <[EMAIL PROTECTED]> wrote:
|
| > The output from the "dmesg" command also shows the floppy even if it is not
| > physically there. Apparently the floppy driver doesn't actually care if the
|
| Is this perhaps because it is seeing the floppy disk controller rather
| than the bit of metal that a disk goes into ?
| All of the Compaqs here come with ls-120 drives and no floppy drive, but
| linux still shows an FDC as being present.
It probably is seeing the controller. One of the messages confirms the
controller type.
I believe LS-120's actually include floppy because you can use it as a
floppy and it has to be able to boot a normal floppy that has boot sectors
that expect to read via BIOS device 0x00. Of course a BIOS could emulate
0x00 on another LS-120 mechanism much like El Torito does for CD.
--
Phil Howard KA9WGN
[EMAIL PROTECTED] [EMAIL PROTECTED]
------------------------------
** 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
******************************