Linux-Development-Sys Digest #792, Volume #7 Fri, 21 Apr 00 12:13:19 EDT
Contents:
Re: Where can I find syntax page for make utility for Linux (John Gluck)
unload a module (Yung-Hsiang Lu)
Re: Trouble installing GNU C from Red Hat 6.0 CD (Raptor)
"defunct" child process (Dave)
Re: unload a module (Kaz Kylheku)
Re: "defunct" child process (Frank Sweetser)
Re: "defunct" child process (Daniel de Rauglaudre)
Module compile error ([EMAIL PROTECTED])
fine tracing memory usage ? ("Eric GAUDET")
Two really easy (I'm sure) questions (Tandem Guy)
Re: Two really easy (I'm sure) questions (Sang Yong Lee)
Linking error at mdelay() function ("���Ӳ�")
2.3.99-pre5 and umount problem (Daniel Weiskopf)
Re: IBM Etherjet 10/100 Cardbus PCMCIA Card (Allen Laack)
Kernel support for i810E mobos (Jan Just Keijser)
Re: Porting our compiler to Linux (William Burrow)
Allocating memory at a specific physical locaation (Timur Tabi)
Re: Porting our compiler to Linux (Mario Klebsch)
----------------------------------------------------------------------------
From: John Gluck <[EMAIL PROTECTED]>
Subject: Re: Where can I find syntax page for make utility for Linux
Date: Thu, 20 Apr 2000 21:47:59 -0400
Long wrote:
>
> Thanks in advance.
>
> Long
You can go to http://www.fsf/org There are some links to various
downloadable formats of GNU docs. Make is one of them.
--
John Gluck (Passport Kernel Design Group)
(613) 765-8392 ESN 395-8392
Unless otherwise stated, any opinions expressed here are strictly my own
and do not reflect any official position of Nortel Networks.
------------------------------
From: Yung-Hsiang Lu <[EMAIL PROTECTED]>
Subject: unload a module
Date: 21 Apr 2000 05:06:07 GMT
Hi,
I create a module for the purpose of "faking" a system call (check
http://www.redhat.com/mirrors/LDP/LDP/lkmpg/node20.html).
However, I cannot unload it using "rmmod". Linux would say
rmmod: module xxx.o not loaded
even though "lsmod" shows it is indeed there unused.
"rmmod -a" does not help, either :-(
suggestion? thanks!
--
Sincerely,
Yung-Hsiang Lu
[EMAIL PROTECTED]
------------------------------
From: Raptor <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development
Subject: Re: Trouble installing GNU C from Red Hat 6.0 CD
Date: Thu, 20 Apr 2000 23:36:06 -0600
Lorenzo Bettini wrote:
>
> Jason wrote:
> > This all makes sense except that when I type 'rpm -i *egcs*' I get a
> > bunch of errors indicating that things couldn't be installed because of
> > various dependency issues. I'm not sure how to proceed. Also, the
>
> These errors say that, in order to install this package, first you have
> to install the packages it depends on... this is recursive, i.e. while
> installing one of these package you may have to install other package as
> well...
>
> Lorenzo
I'm a newbie myself, but the book says you can frequently ignore the
warnings and install the package anyway. Tell rpm to ignore the
situation; see the man page. There's a good chance it'll work, but it
could also crash hard.
I installed my RedHat 6.2 as a server, which gave me a no X, no GNOME,
etc. By paying attention to the dependancy errors in linuxconf, I was
able to get X running, at least, while stomping right on by dozens of
warnings.
--
Lynn Wallace http://www.xmission.com/~lawall
Be patient! It took us forty million years for us to develop a thumb.
It'll probably take us forty million years to get it out of our ass.
------------------------------
From: Dave <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: "defunct" child process
Date: Thu, 20 Apr 2000 23:00:35 -0700
I'm doing some programming for class under linux. This is really the
first time I've used forking of processes for anything serious. I have
my program that does some schedualing routines then forks at appropiat
times for what I want to do. As far as I can tell, the stuff that
actually exicutes in the child fork is going just fine. It run,
completes, then exits (supposidly). However, somthing really weird
shows up. Below is a ps dump:
ps -ef | grep a.out
root 30706 30475 0 20:08 ttyp2 00:00:00 a.out
root 30707 30706 0 20:08 ttyp2 00:00:00 [a.out <defunct>]
root 30727 30706 0 20:10 ttyp2 00:00:00 [a.out <defunct>]
root 30730 30706 0 20:12 ttyp2 00:00:00 [a.out <defunct>]
root 30731 30706 0 20:13 ttyp2 00:00:00 [a.out <defunct>]
root 30732 30706 0 20:14 ttyp2 00:00:00 [a.out <defunct>]
root 30733 30706 0 20:14 ttyp2 00:00:00 [a.out <defunct>]
root 30736 30706 0 20:16 ttyp2 00:00:00 [a.out <defunct>]
root 30737 30706 0 20:16 ttyp2 00:00:00 [a.out <defunct>]
root 30740 30706 0 20:18 ttyp2 00:00:00 [a.out <defunct>]
root 30741 30706 0 20:18 ttyp2 00:00:00 a.out
root 30745 30677 0 20:18 ttyp3 00:00:00 grep a.out
What in the heck does that defunct mean??? What causes it? where can I
read more about it?
Thanks
Dave
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: unload a module
Reply-To: [EMAIL PROTECTED]
Date: Fri, 21 Apr 2000 06:04:39 GMT
On 21 Apr 2000 05:06:07 GMT, Yung-Hsiang Lu <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I create a module for the purpose of "faking" a system call (check
>http://www.redhat.com/mirrors/LDP/LDP/lkmpg/node20.html).
>
>However, I cannot unload it using "rmmod". Linux would say
>
>rmmod: module xxx.o not loaded
>
>even though "lsmod" shows it is indeed there unused.
Hint: what *name* does lsmod show? Do you see any .o sufixes on the module
names listed by lsmod?
>"rmmod -a" does not help, either :-(
>
>suggestion? thanks!
My suggestion is that you get the source for rmmod and fix it so that
it strips the .o from the module name it is given. It seems that many people
are unable to figure this out; I see the question in this newsgroup at least
once a week, or so it seems.
People seem to want to rmmod the same name that they insmod'ed so why
not make it work that way?
--
#exclude <windows.h>
------------------------------
From: [EMAIL PROTECTED] (Frank Sweetser)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: "defunct" child process
Date: 21 Apr 2000 06:23:30 GMT
Dave <[EMAIL PROTECTED]> wrote:
>I'm doing some programming for class under linux. This is really the
>first time I've used forking of processes for anything serious. I have
>my program that does some schedualing routines then forks at appropiat
>times for what I want to do. As far as I can tell, the stuff that
>actually exicutes in the child fork is going just fine. It run,
>completes, then exits (supposidly). However, somthing really weird
>shows up. Below is a ps dump:
the <defunct> means that the process has gone zombie. check out
man 2 wait
--
Frank Sweetser rasmusin at wpi.edu, fs at suave.net
Full-time WPI Network Tech, Part time Linux/Perl guy
last|perl -pe '$_ x=/(..:..)...(.*)/&&"'$1'"ge$1&&"'$1'"lt$2'
That's gonna be tough for Randal to beat... :-)
-- Larry Wall in <[EMAIL PROTECTED]>
------------------------------
From: Daniel de Rauglaudre <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: "defunct" child process
Date: Fri, 21 Apr 2000 07:16:54 +0000
> root 30706 30475 0 20:08 ttyp2 00:00:00 a.out
> root 30707 30706 0 20:08 ttyp2 00:00:00 [a.out <defunct>]
> root 30740 30706 0 20:18 ttyp2 00:00:00 [a.out <defunct>]
> root 30741 30706 0 20:18 ttyp2 00:00:00 a.out
> root 30745 30677 0 20:18 ttyp3 00:00:00 grep a.out
>
> What in the heck does that defunct mean??? What causes it? where can I
> read more about it?
It seems that all your <defunct> processes are son of the process 30706.
When 30706 terminates, all the defunct will disappear.
When you fork processes, you have to wait for their termination.
Otherwise when they terminate, they become <defunct>. A solution to
avoid being blocked by "wait" is to use a double fork:
You fork a process x which forks again a process y. In x you terminate
immediately after the fork. In the main process you wait for x but as x
terminates immediately, you don't wait actually. You make the job in the
process y. It has no more parent process, then it does not become
defunct at end.
--
Daniel de RAUGLAUDRE
[EMAIL PROTECTED]
http://cristal.inria.fr/~ddr/
------------------------------
From: [EMAIL PROTECTED]
Subject: Module compile error
Date: Fri, 21 Apr 2000 09:47:35 GMT
After i compile my bare bones linux kernel module and try to insmod it,
i receive a message "undefined symbol __put_user_X"
whaddido ?
- [EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Eric GAUDET" <[EMAIL PROTECTED]>
Subject: fine tracing memory usage ?
Date: Fri, 21 Apr 2000 19:00:56 +0900
hi all, I'm looking for some way to ask the kernel all sort of
informations about memory usage :
- list of all the current mallocs
- which process owns one malloc
- buffers informations
- cache informations
I need that in order to release "lost" mallocs and flush unused caches and
buffer, or at least know which process is eating all available memory.
Is there any way to limit the maximum memory usage of one process ?
Thanks.
Eric
------------------------------
From: Tandem Guy <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Two really easy (I'm sure) questions
Date: Fri, 21 Apr 2000 10:17:09 GMT
Hello. I've recently installed Linux and am trying to do some C++
programming and have a couple of questions.
First question: I'm trying to compile the following code:
BEGIN CODE
#include <iostream.h>
int
main( )
{
cout << "Hello World\n";
return 0;
}
END CODE
This code is in the file hello.cc and I'm issuing the following command:
gcc hello.cc
The compiler spits back the following errors:
/tmp/cc.JqnaTp.o: In function 'main':
/tmp/ccJqnaTp.o(.text+0x9): undefine reference to 'cout'
/tmp/ccJqnaTp.o(.text+0xe): undefined reference to
'ostream::operator<<(char const *)'
collect2: Id returned 1 exit status
What am I doing wrong. I'm dying to see Hello World on my screen and I
can't make it happen :)
Second question: How can I direct the compiler's output (the error
messages) to a file? I've tried gcc hello.cc > testfile and testfile is
created but not written to. So how can I do this? Thanks in advance
for any help!
------------------------------
From: Sang Yong Lee <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Two really easy (I'm sure) questions
Date: Fri, 21 Apr 2000 10:25:37 GMT
Tandem Guy wrote:
> Hello. I've recently installed Linux and am trying to do some C++
> programming and have a couple of questions.
>
> First question: I'm trying to compile the following code:
>
> BEGIN CODE
>
> #include <iostream.h>
>
> int
> main( )
> {
> cout << "Hello World\n";
> return 0;
> }
>
> END CODE
>
> This code is in the file hello.cc and I'm issuing the following command:
>
> gcc hello.cc
g++ hello.cc
>
>
> The compiler spits back the following errors:
>
> /tmp/cc.JqnaTp.o: In function 'main':
> /tmp/ccJqnaTp.o(.text+0x9): undefine reference to 'cout'
> /tmp/ccJqnaTp.o(.text+0xe): undefined reference to
> 'ostream::operator<<(char const *)'
> collect2: Id returned 1 exit status
>
> What am I doing wrong. I'm dying to see Hello World on my screen and I
> can't make it happen :)
>
> Second question: How can I direct the compiler's output (the error
> messages) to a file? I've tried gcc hello.cc > testfile and testfile is
> created but not written to. So how can I do this? Thanks in advance
> for any help!
You can redirect standard error output by "2>" like this:
g++ hello.cc 2> testfile
Sangyong.
------------------------------
From: "���Ӳ�" <[EMAIL PROTECTED]>
Subject: Linking error at mdelay() function
Date: 21 Apr 2000 11:11:10 GMT
Hello ,
I wrote a program and use mdelay() function call
But a linking error throw to me ,tell me
>undefined reference to __const_udelay
>undefined reference to __udelay
Dose eveybody tell me why ?
Thanks
Kevin
------------------------------
From: [EMAIL PROTECTED] (Daniel Weiskopf)
Subject: 2.3.99-pre5 and umount problem
Date: 21 Apr 2000 13:28:00 GMT
Hi. I recently upgraded from 2.2.14 to 2.3.99-pre5, and now when I
shutdown my system, my /home and /usr partitions don't umount cleanly
because init claims they're busy. The result is a lengthy fsck when I
reboot. I'm using SysVinit 2.76 and util-linux 2.10k. Never had the
problem with the earlier kernels, and I upgraded everything that was
mentioned in the 2.3 Changes file. Any suggestions?
Thanks,
DAW
--
Daniel Weiskopf
Dept. of Philosophy / Philosophy-Neuroscience-Psychology Program
Washington University in St. Louis
URL: http://www.byz.org/~debaser/
------------------------------
From: Allen Laack <[EMAIL PROTECTED]>
Subject: Re: IBM Etherjet 10/100 Cardbus PCMCIA Card
Date: Fri, 21 Apr 2000 08:58:53 -0500
I sort of got is working too. It works fine up to the point where you
shutdown the computer. At that
point the pcmcia tries to shutdown the EtherJet card, but it hangs.
Go to www.linuxhq.com. Go to the documenation section, select the
Hardware compatibility-HOWTO, look at the laptop section, follow the
instructions for IBM Thinkpad 600X. That's what I used. You should
specify what hardware you are using as well. Configuring the pcmcia is
different for certain machines.
Peter Muangxong wrote:
>
> Anyone get this card to work in linux? I had kinda working for a bit. The
> card gets a link from it to the hub. But that's about it. Not too sure
> whether it's working or just toying with me. :-)
>
> Any ideas would greatly be appreciated.
--
+----------------------+
| [EMAIL PROTECTED] |
| http://www.guild.com |
+----------------------+
------------------------------
From: [EMAIL PROTECTED] (Jan Just Keijser)
Subject: Kernel support for i810E mobos
Date: Fri, 21 Apr 2000 15:26:16 GMT
Hi,
what's the status of kernel support for intel i810E motherboards, esp. the
i810E IDE controller? I have two PC's with it and am trying to run RedHat
6.[12] on em, but the kernel does not want to enable DMA support for them
using a lilo.conf
append="ide0=dema"
line. You can force DMA on using hdparm -d1 /dev/hda, but I'd rather not do
that - I have seen that fail on other motherboards (esp dual HD's with SiS
5513 chipsets).
I know VA Linux has an entry level box using the i810E mobo, but I couldn't
see if they are using the i810E IDE controller as well; does anybody have any
experience with those boxes (XP2, I believe).
TIA,
JJK
================================================================
Jan Just (JJ) Keijser -- Release Engineer & Unix Hacker
http://www.sightpath.com:
Cutting-edge Solutions for Intelligent Web Content Delivery
Your mouse has moved. Windows must be restarted for
the change to take effect. Reboot now? [OK]
My views are my own...
flames > /dev/null 2>&1
===============================================================
------------------------------
From: [EMAIL PROTECTED] (William Burrow)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Porting our compiler to Linux
Date: 21 Apr 2000 15:23:42 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 20 Apr 2000 12:41:26 -0700,
Norman Black <[EMAIL PROTECTED]> wrote:
>We have started porting our Modula-2 development system to Linux and I was
>hoping to find some help/documentation, mailing lists, newsgroups...
Of the very few people who even care, I am rather happy that the world
class Stony Brook compiler is coming to Linux. Mind, I don't know if I
would ever use Modula-2 again. :(
>The system consists of the compiler, linker, librarian and debugger. For the
>ELF and DWARF formats I am using the TIS specification documents, the System
>V ABI books are out of print according to Amazon.
>
>1. Specifics of application startup ( I have looked at the glibc source code
>but some symbols are missing)
Perhaps those are in crt0.o, supplied by the fine C compiler.
>2. Specifics of using the functions in the libc shared object. Any special
>init in this object need to be called.
No idea.
>3. Specifics of linking executables and shared objects.
Handled by ld.so, in one of its many incarnations on Linux boxes.
Source code is available for inspection.
>Anyone have any ideas.
I believe that getting on the GNU compiler and/or library development
lists might be an idea. Linux is in constant flux -- currently there
are three versions of the C library in use: libc5 (now defunct),
glibc2.0 (heading out) and glibc2.1 (available in most distros now).
--
William Burrow -- New Brunswick, Canada o
Copyright 2000 William Burrow ~ /\
Remove REMOVE or DELETE to reply. ~ ()>()
------------------------------
From: Timur Tabi <[EMAIL PROTECTED]>
Subject: Allocating memory at a specific physical locaation
Date: Fri, 21 Apr 2000 15:30:46 GMT
I'm new to Linux kernel programming, so please bear with me. If my
request doesn't make any sense, please let me know and I'll reword it.
I'm writing a device driver that needs to be able to allocate a chunk
(about 4-8KB) of physical memory. That is, I know the true physical
address of this memory block, and I need the kernel to give it to me.
Obviously, the kernel will need to allocate some virtual memory and map
it to the physical block first.
Ideally, I need to be able to grab this memory block even if it is
currently used. That is, if some virtual memory area is mapped to this
physical block, the kernel will need to copy the data to some other
physical memory block, and remap the virtual area to the new block, and
then let me have the physical block.
In addition, I need to be able to alter the "cacheability" of the memory
block. For these blocks, caching needs to be disabled, and
write-combining needs to be turned on.
I would very much appreciate any help in this matter. I'm overwhelmed
by the amount of information I need to digest in order to answer this
question myself, so I need some help in order to focus my research.
--
Remove "nospam_" from my email address when replying
Timur "too sexy for my code" Tabi, [EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Porting our compiler to Linux
Date: Fri, 21 Apr 2000 10:59:20 +0200
"Norman Black" <[EMAIL PROTECTED]> writes:
>The system consists of the compiler, linker, librarian and debugger. For the
>ELF and DWARF formats I am using the TIS specification documents, the System
>V ABI books are out of print according to Amazon.
>1. Specifics of application startup ( I have looked at the glibc source code
>but some symbols are missing)
>2. Specifics of using the functions in the libc shared object. Any special
>init in this object need to be called.
>3. Specifics of linking executables and shared objects.
Your questions all are about binary file formats and some details. You
should think about letting your compiler emit assembler source code
(as almost every other compiler does) and use the existig
assembler/linker/startup code.
You also can look at the assembler output of other compilers to
inspire yorself. The gnu C++ compiler e.g. also needs special
initialisation code called prior to main (to create global static
objects).
73, Mario
--
Mario Klebsch [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
******************************