Linux-Development-Sys Digest #228, Volume #8     Sat, 21 Oct 00 00:13:14 EDT

Contents:
  kernel-module version mismatch (a RedHat 7.0 bug?) (Rui Antunes)
  kernel-module version mismatch (a RedHat 7.0 bug?) (Rui Antunes)
  Re: new windowing system ([EMAIL PROTECTED])
  Re: Building a Driver (Philip Armstrong)
  can an Eth driver bug affect X-Server? ([EMAIL PROTECTED])
  Re: Building a Driver ("Programmer")
  utility to extract functions off library ??? (Sean Bose)
  device release not called on close() ([EMAIL PROTECTED])
  Re: utility to extract functions off library ??? ("D. Stimits")
  Unresolved symbol mystery ("Ed Hudson")
  Re: Need infos on Journaling Filesystem ("D. Stimits")
  Re: rebooting linux without physikal reset (Robert Redelmeier)
  Re: mounted dos partition (The Ghost In The Machine)
  Re: Most popular Linux development environment(s)? Graphical? (Aulne)
  Re: Remote Shell (ben erridge)
  clearing buffer cache (Brian Forney)
  CD-RW:  CDFS? Unstable dev nos? (Fred Goldstein)
  Re: lp under kernel 2.4.0test9 (Marc D. Williams)
  Re: clearing buffer cache (Robert Redelmeier)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Rui Antunes)
Subject: kernel-module version mismatch (a RedHat 7.0 bug?)
Date: Fri, 20 Oct 2000 16:29:16 GMT

I have just installed RedHat 7.0. 
I tried to create and insert a simple module but I got the following
warnings/errors:

--during compilation (gcc .....) --
/tmp/xxxxxx.s: Assembler messages:
/tmp/xxxxxx.s: Warning: ignoring changed section attributes for
modinfo

--while inserting module (insmod ...) --
hello.o: kernel-module version mismatch
hello.o was compiled for version 2.4.0.0-26
             while this kernel version is 2.2.16-22


I went to check on <linux/version.h> and UTS_RELEASE was defined as
2.4.0.0-26 although the kernel version is 2.2.16-22 (which appears on
the login prompt)

Is it a bug? How can I make it work??

                                        Thanks in advance,
                                                                                Rui 
Antunes

[EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED] (Rui Antunes)
Crossposted-To: 
alt.os.linux,comp.os.linux.questions,comp.os.linux.help,linux.redhat.install
Subject: kernel-module version mismatch (a RedHat 7.0 bug?)
Date: Fri, 20 Oct 2000 16:41:58 GMT

I have just installed RedHat 7.0. 
I tried to create and insert a simple module but I got the following
warnings/errors:

--during compilation (gcc .....) --
/tmp/xxxxxx.s: Assembler messages:
/tmp/xxxxxx.s: Warning: ignoring changed section attributes for
modinfo

--while inserting module (insmod ...) --
hello.o: kernel-module version mismatch
hello.o was compiled for version 2.4.0.0-26
             while this kernel version is 2.2.16-22


I went to check on <linux/version.h> and UTS_RELEASE was defined as
2.4.0.0-26 although the kernel version is 2.2.16-22 (which appears on
the login prompt)

Is it a bug? How can I make it work??

                                        Thanks in advance,
                                                                                Rui 
Antunes

[EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Fri, 20 Oct 2000 16:51:06 GMT

In article <8qj3p9$kat$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
>
>
> > FYI, "modicum" means "a moderate quantity".
>
> Not in English, it doesn't. If the original Latin meant
> moderate, it now means small.
Reading a man page seems like a rather small amount of research to me.

Twerp.

Weener.

Jack
>
> Merriam Webster dictionary says this:
>
> Main Entry: mo�di�cum
> Pronunciation: 'm�-di-k&m also 'mO-
> Function: noun
> Etymology: Middle English, from Latin, neuter of modicus moderate,
> from modus measure
> Date: 15th century
>   : a small portion : a limited quantity
>       ^^^^^
> English speakers use the word sarcastically in my experience,
> hence my use of the word "twerp".
>
> uwuh
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: Building a Driver
Date: 20 Oct 2000 09:03:40 +0100

In article <EiOH5.1443$[EMAIL PROTECTED]>,
Programmer <[EMAIL PROTECTED]> wrote:
>    This is my first time developing in Linux; I used to develop for Windows
>(so I've made an improvment :-).  Does anyone know where to find
>documentation to help me develop drivers in Linux?  I've already visted
>linuxdoc.org and I didn't find very useful information.  I'd appreciate any
>help.  Thanks.

Since you'll be needing a copy of the kernel sources in order to do
any driver development I suggest you look at the file 

linux/Documentation/kernel-docs.txt

which contains pointers to useful information on the net regarding
kernel development.

cheers,

Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


------------------------------

From: [EMAIL PROTECTED]
Subject: can an Eth driver bug affect X-Server?
Date: Fri, 20 Oct 2000 17:20:36 GMT

Hello,
I am writing a driver for an Ethernet card (for x86 arch, testing on
Kernel 2.2.14).  When I leave an app in the GUI terminal, exercising
this driver, running overnight, eventually the

/etc/X11/X (-->/usr/X11R6/bin/XF86_SVGA)

crashes and the GUI env exits.

Could this be due to my driver bug, or should I report dutifully this
error to the X developers, as requested?

Thank you,

Mark Galecki


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: "Programmer" <[EMAIL PROTECTED]>
Subject: Re: Building a Driver
Date: Fri, 20 Oct 2000 12:17:17 -0500

Thanks.



------------------------------

From: Sean Bose <[EMAIL PROTECTED]>
Subject: utility to extract functions off library ???
Date: Fri, 20 Oct 2000 12:17:25 -0700
Reply-To: [EMAIL PROTECTED]

Hi Friends
  Is there any utility to extract function definitions 
from a library into another .a or .o file.

thanks in advance
  Sean

------------------------------

From: [EMAIL PROTECTED]
Subject: device release not called on close()
Date: Fri, 20 Oct 2000 20:31:01 GMT

What would cause Linux to delay calling the release() entry point
in a driver?

I have a program which succesively opens() and closes()
a device. However, the release() in the driver is not called
during the close().

Instead, it looks like the close() calls
are stacked up. When the program terminates, the release()
function is called however many times close() was called
during the program execution.

The open() call always results in an immediate call to
the device open() function in the driver.

I am detecting this behavior by putting printk() calls in the
driver.

I am not doing multiple opens on the deviceefore closing.
The returned file descriptor is beging recycled.

Thanks,
Charlie



Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

Date: Fri, 20 Oct 2000 15:26:27 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: utility to extract functions off library ???

Sean Bose wrote:
> 
> Hi Friends
>   Is there any utility to extract function definitions
> from a library into another .a or .o file.
> 
> thanks in advance
>   Sean

You can read what symbols are in a library with nm. There is a shorthand
for those symbols which could be used to read their signatures, but I
don't know it off hand. However, if you compare a few man pages to
functions found (be sure to use functions that do not use macros in the
headers), you could probably see the pattern fairly quickly.

If they are C++ instead of C, you'll run into name mangling issues.
Check c++filt if you need to demangle those.

------------------------------

From: "Ed Hudson" <[EMAIL PROTECTED]>
Subject: Unresolved symbol mystery
Date: Fri, 20 Oct 2000 17:37:02 -0500

I have created a driver which successfully compiled and installed on a
2.2.14 kernel.  I was  testing backwards compatibility against kernel
2.0.34 and came up with a strange unresolved symbol.  It said that
register_chrdev_R2bbe2f35 was unresolved.  When I did a grep of 
/proc/ksyms, it turned up register_chrdev_R528bfdb5.  Does anyone have any
insight into this?  


Thanks in advance

Ed


------------------------------

Date: Fri, 20 Oct 2000 15:50:32 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Need infos on Journaling Filesystem

David Vidal Rodr�guez wrote:
> 
> Hi! I am looking for technical information on the journaling filesystem,
> which is actually being implemented in the ext2 fs. Do you have any
> addresses / contact persons / white papers that could interest me?
> 
> Thanks in advance,
> 
> ------------------------------------------------------------------------
>  David Vidal R. ([EMAIL PROTECTED])

Check out
http://freshmeat.net/projects/ext3/?highlight=ext3

------------------------------

Date: Fri, 20 Oct 2000 17:10:04 -0500
From: Robert Redelmeier <[EMAIL PROTECTED]>
Subject: Re: rebooting linux without physikal reset

Daniel Goergen wrote:
> 
> Is it possible to reboot linux without letting the computer make a
> physical reset?
> (I have to store data in RAM (we have no FS) before und read it after
> the reboot)

Well, you'd better have that memory real well mapped (ie kernel
locked-down in a device driver).  regular user memory can be
mapped anywhere in physical RAM.

Soft rebooting isn't too tough.  You have to go back to real x86
mode, put the soft-reboot marker in the BIOS data area for it,
then `jmp F000:FFF0` .  You probably cannot just call `int 19h`
in real mode because Linux probably blows the original IDT away.

-- Robert

------------------------------

From: [EMAIL PROTECTED] (The Ghost In The Machine)
Subject: Re: mounted dos partition
Date: Fri, 20 Oct 2000 22:29:25 GMT

In comp.os.linux.development.system, Raymond Mroz
<[EMAIL PROTECTED]>
 wrote
on Fri, 20 Oct 2000 11:59:45 -0300
<i6ZH5.74238$[EMAIL PROTECTED]>:
>Hello,
>
>We are running a Linux OS in a product and are required to access a FAT32
>filesystem.  This is set up to mount in the fstab file.  My question is
>this:  If the product is repeatedly and ungracefully shutdown, can the FAT32
>filesystem which is being mounted (and ungracefully unmounted) become
>corrupted over time.  Are there any other problems which may arise?

What product are you referring to?

- Linux?
- Microsoft Windows?
- An application running under Linux?
- An application running under Microsoft Windows?

Proper shutdown of Linux involves the "shutdown" command.
Note that /etc/inittab in RedHat -- and probably in other
releases -- contains an entry similar to

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

which means one can use the three-fingered salute on Linux
without too much fear.   :-)

Proper shutdown of Microsoft Windows involves pulling
a meanu from the Start button.  NT has a "Shutdown"
entry; I don't know what Win98, Win2k, or WinMe have, and
I don't remember what Win95 has (I haven't booted into it
at home for over a month).

Applications running under Linux that die shouldn't leave any files open,
even if the application dumps core.  (The only exception might be if
'kill -9' is used -- and even then, I doubt it.)

Applications running under Win95 can leave clusters unattached with
any file open, if they crash.  While not in themselves dangerous, they
can fill up the disk.  Unknown what other variants of Windows do.

>
>Thanks
>
>Raymond Mroz
>
>


-- 
[EMAIL PROTECTED] -- insert random misquote here

------------------------------

From: Aulne <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Most popular Linux development environment(s)? Graphical?
Date: Fri, 20 Oct 2000 23:01:20 GMT

In article <[EMAIL PROTECTED]>,
  Michel Talon <[EMAIL PROTECTED]> wrote:

> In comp.os.linux.development.system Aulne <[EMAIL PROTECTED]> wrote:
> > In article <[EMAIL PROTECTED]>,
> >   [EMAIL PROTECTED] (jazz) wrote:
>
> >> I'm thinking of switching from mac to Linux. If I did, what programming
> >> setup would I likely find myself using? Gnu? Is there anything with a
> >> graphical interface, esp. for the debugger, as in Codewarrior, where you
> >> see a window containg your code and you can clearly mark breakpoints and
> >> follow the program counter steping through your code? With windows for
> >> variables, stack tracing, etc.?
>
> > Honest question, really: what's wrong with CodeWarrior for Linux?
>
> > http://www.metrowerks.com/desktop/linux/redhat/gnu/

> And also the standard tools for free unix systems: notably ddd
> will provide you with exactly all you want, window with code , breakpoints,
> execution following, window for registers, etc.

I've heard ddd is too buggy, but I haven't extensively used it yet.  I do
plan to, though.  It does look very nice.

> The only problem is the text editor, you will more or less end up using emacs
> or vim which are very powerful but complicated beasts.

I find no problem with emacs, really.  Not that complicated for basic needs. 
Of course, it makes a change from "windows" editors, but I find most of the
tools I'm used to work with, such as auto-commenting, setting bookmarks
(local and global), quick jump points, text collapse, nice printing, bracket
matching, directory navigation, integrated help on system calls, rather easy
color customization, status saving for recall in next session, integrated
compile and error finding, automatic indenting, etc...  But then, a lot of
editors found in IDEs do not provide a lot of these features.  One has to
make a difference between an editor and an integrated tool suite that happens
to provide a way to edit source code.  I have yet to find a text editor in an
IDE that tells you clearly what is the status of a config variable and if the
changes that were done to it was only for this session or if they were saved
for later.

One way or the other one has to learn the features of an editor in order to
use them.  It is not possible to use the function tag feature in Multi-Edit
(Windows) without knowing how it works.  Same with emacs.


Alain


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: ben erridge <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.c-programming
Subject: Re: Remote Shell
Date: Fri, 20 Oct 2000 23:28:16 GMT

Steve Wamsley wrote:

> I am trying to write a program that will wait for a client connect and then
> launch (i.e., fork() + execve()) a shell (i.e., /bin/sh) and allow the
> remote client to execute commands in that shell.  I realize that's not very
> secure and may seem like I'm trying to write a back door, but trust me, it's
> really just an learning experiment in Linux system programming.
>
> I understand that I need to redirect stdout, stderr, and stdin in the child
> process to a pipe via dup2()  and read from and write to that pipe in the
> parent, sending stdout/stderr data to the client and sending data from the
> client to stdin.
>
> I have most of it working.  But, I seem to be have a problem with either the
> data being buffered on either end or the process blocking while waiting for
> data on a file descriptor.
>
> Can anyone tell me the right way to do this?  Am I headed in the right
> direction?  Or is their a sample of this anywhere?
>
> Thanks for your help.
>
> Steve Wamsley
> [EMAIL PROTECTED]

    I recommend that you download the rsh source code and use that as your
basis because it basically does exactly that but one command at a time (not
like a telnet session.).

Ben Erridge
[EMAIL PROTECTED]


------------------------------

From: Brian Forney <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: clearing buffer cache
Date: Fri, 20 Oct 2000 18:41:28 -0500

Hi,

I would like to force the kernel to clear - not just flush or sync - the
buffer cache. I have tried unmounting and mounting filesystems without any
success. Any suggestions on how to do this short of reading in from a file I
don't care about in hopes the buffer cache replacement algorithm will remove
the entires I do care about? I'm really looking for a surefire way.

You may ask why I care about this. I want to test disk I/O performance when
the buffer cache is not warmed up, i.e., I want to know what the peak
achieveable disk bandwidth through the ext2 FS without the help of the buffer
cache.

Any advice, thoughts, definitive answers, and pointers are appreciated.

Thanks in advance,
Brian
=====
www.cs.wisc.edu/~bforney


------------------------------

From: [EMAIL PROTECTED] (Fred Goldstein)
Subject: CD-RW:  CDFS? Unstable dev nos?
Date: Sat, 21 Oct 2000 02:56:57 +0000 (UTC)

I've built a kernel with SCSI emulation in order to support an ATAPI CD-RW 
drive.... I still have an old 4X CDROM in too, as the "master", with the 
CD-RW "slave".  Note I'm using Mandrake 7.1, with kernel 2.2.15.  Two 
issues arise:

1)  The file system, CDFS, which Windows et al use for rewriting data 
(floppy-like) onto a CDROM doesn't seem to be there.  Is this being added 
at any known time?  (No, I don't have the skills to write the driver 
myself.  Sorry.)  I'm a little surprised because Linux has so many file 
systems already...

2)  The device name isn't steady.  I think the CDRW was /dev/scd3 when I 
was "root" but then scd0 when I logged in again under my regular username! 
Is there supposed to be some fixed formula by which emulated SCSI numbers 
are assigned?  Or is this a bug?

Many thanks.
-- 
Fred R. Goldstein   k1io   fgoldstein"at" wn.net 
These are my own opinions. You expect anyone else to agree?

------------------------------

From: [EMAIL PROTECTED] (Marc D. Williams)
Subject: Re: lp under kernel 2.4.0test9
Date: Sat, 21 Oct 2000 03:47:26 -0000
Reply-To: [EMAIL PROTECTED]

On Tue, 10 Oct 2000 04:44:29 GMT, Chirok Han wrote:
>Hi.
>
>So far, lp.o has been successfully loaded under my 2.2.17 kernel.
>But when I upgraded the kernel to 2.4.0-test9,
>it suddenly stopped working.  I get the following message
>
>kernel: lp: driver loaded but no devices found
>
>as I try to load lp.o module.  As I go back to 2.2.17, 
>I can again use the printer.  What would be the problem?
>Thank you in advance.
>
Is parport loaded also? If using parport then check your 
/etc/rc.d/rc.modules file. The script looks for parport.o
and lp.o in /lib/modules/kernversion/misc but that's not
where 2.4.0 puts them.

Load parport.o manually with insmod and then try lp.o and
see if it works.

-- 
>>ANIME SENSHI<<

Marc D. Williams
[EMAIL PROTECTED]
http://www.oldskool.org/~tvdog/ -- DOS Internet & Tandy 1000
http://www.geocities.com/SiliconValley/Platform/8269/ -- Win3.x Makeover

------------------------------

Date: Fri, 20 Oct 2000 23:06:56 -0500
From: Robert Redelmeier <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: clearing buffer cache

Brian Forney wrote:

> I would like to force the kernel to clear - not just flush or sync - the
> buffer cache. I have tried unmounting and mounting filesystems without any
> success. Any suggestions on how to do this short of reading in from a 

I'm _very_ surprised that the kernel would keep buffers across a umount.
I would consider this a kbug since it would mean the buffering is done
by device [not bad] and doesn't dump automatically on umount.  Some people
do use hot plugging.

Are you sure the `umount` took?  It won't if the mountpoint is busy.  
You could always try a dummy mount/umount at the same mountpoint.

Otherwise, and in general, you might want to look at the source for
`hdparm`.  It has disk speed functions.

-- Robert

------------------------------


** 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
******************************

Reply via email to