Linux-Development-Sys Digest #177, Volume #8     Wed, 27 Sep 00 19:13:10 EDT

Contents:
  Re: Message distribution manager / server (Alexander Viro)
  Installing RPMS (smam)
  Interpreterexecutionbug (Danny Reinhold)
  Re: How can I strip the kernel ? (Toby Haynes)
  Re: Process priorities ("Jeff Ryan")
  Re: Linux Network Driver Help (Jim Thomas)
  Re: what is the max size of a shm? (Rick Ellis)
  Where do i find the exception-setup in the kernel-source tree? (Martin Burrows)
  Re: segmentation foult. (Karl Heyes)
  Re: Installing RPMS (Toby Haynes)
  Building a 2.0 kernel from a 2.2.14 based machine ("Ed Hudson")
  Re: Building a 2.0 kernel from a 2.2.14 based machine (bill davidsen)
  write to a /proc file (Frank Contrepois)
  Re: Process priorities (Peter Pointner)
  Re: How can I strip the kernel ? (Peter Pointner)
  Re: s3 virge accelerated specification ([EMAIL PROTECTED])
  the use of fn_hash_select_default (wolf)
  couldn't find the kernel version the module was compiled for ? (wolf)
  Java on Linux? (Exits Funnel)
  Re: Linux Stack Sizes? (0/1) (Ulrich Weigand)

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

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux,comp.os.linux.development.apps
Subject: Re: Message distribution manager / server
Date: 27 Sep 2000 08:06:51 -0400

In article <[EMAIL PROTECTED]>,
Christopher Browne <[EMAIL PROTECTED]> wrote:
>Interesting...  I hadn't seen it before...
>
>Making it reasonably secure, and usable by many users simultaneously,
>probably mandates having namespaces.  (e.g. - MY /mnt/plumb/send
>should be distinct from YOUR /mnt/plumb/send, and when I connect
>/mnt/plumb/edit to gnuclient, that is distinct from YOU connecting it
>to vi, or perhaps sam...)  Is that happening in the near future?

It's doable without too much pain (the real sucker is union-mount, not
the namespace per se). Moreover, to get it into testable state we could
simply start with using separate mountpoints - that doesn't require
anything special.

>[Aside: Grumble, grumble, the other systems I suggested largely queue
>information to disk so that if there is an outage, they should be able
>to pick up where they left off, whereas the Plan 9 scheme seems
>oriented towards "lighter weight" interactive tasks like passing
>compiler errors out to indicate where a text editor should jump to...
>Conceptually, they're similar, but I'd probably rather use MQSeries to
>build an accounting system...]

And if shit hits the fan during write()? Same situation here. Nothing
stops you from putting the stuff on disk and feeding plumber from there
- multiplexing is independent from persistency.

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: smam <[EMAIL PROTECTED]>
Subject: Installing RPMS
Date: Wed, 27 Sep 2000 13:30:13 -0000

I have Linux 6.1. From File Manager I right click on the rpm and choose 
install and nothing happens. I go to a terminal and try the rpm -i 
command - I get no error messages and yet the rpm does not seem to install.

I am trying to install the kernel source and the make program. When I do a 
find on the make program it comes up with nothing.

Can anyone help?

thanks

smam

--
Posted via CNET Help.com
http://www.help.com/

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

From: Danny Reinhold <[EMAIL PROTECTED]>
Subject: Interpreterexecutionbug
Date: Wed, 27 Sep 2000 15:45:03 +0200

Hi linuxfriends,

While exploring linux I found an incompatibility to other unices (at
least SunOS, Solaris, Irix, Aix and HP-UX behave diffently from
linux)...

When you start a program in the bash, the program can read it's program
name in argv[0]. This variable contains the _complete pathname_.

You can also write scripts that begin with an interpreter-activation
line like:

#!/usr/local/bin/myproggy

or

#!/usr/bin/env myproggy

Then myproggy just gets the string 'myproggy' in argv[0].
This behaviour is completely different from that of other unix-like os's
!

My only reference to this topic is the book 'Advanced programming in the
UNIX
environment' by W. Richard Stevens (Addison-Wesley). This book states
that
the complete pathname should be in argv[0].
This incompatibility of linux to an obviously existing standard is very
ugly.
Is there any standard definition (ie POSIX) ?

Is there a workaround, so that myproggy will get the complete pathname
in argv[0] ???
It's not very helpful to know that the complete pathname of the script
containing
the interpreter-line is passed in argv[1], because I need to know the
place myproggy
is installed at...

Is this considered a bug in the linux-kernel or is it an acceptable
incompatibility ???

Thanx in advance,
  Danny

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

From: Toby Haynes <[EMAIL PROTECTED]>
Subject: Re: How can I strip the kernel ?
Date: 27 Sep 2000 09:45:29 -0400

!! "St" == St Otto <[EMAIL PROTECTED]> writes:

  St> Hello, we are looking for a way to strip the Suse kernel.

  St> The destination is to eliminate as much functionality as possible - all
  St> not called functions (not called from an given application) and all
  St> functions, that are not called from services used by this application
  St> (like ip, filesystem and so on) should be removed.

Maybe I'm missing the point, but if you want to remove as much functionality
from the kernel image as possible (rather than run 'strip vmlinux' on the
kernel) what is wrong with running the various kernel configurations and
disabling as much as possible?

I also wonder whether you are approaching the problem from the wrong
end. Rather than trying to work out what each application requires and throwing
away whatever is not needed, let the kernel decide what is needed and load
modules as necessary for required functionality. If you reduce the core kernel
down as far as possible (keep ext2 compiled into the kernel otherwise you will
have trouble booting, and there may be other caveats as well) and then compile
other functionality up as modules to be loaded by the kernel on demand, then
maybe this is sufficient for your needs.

I recommend reading the kernel-HOWTO (it's installed as part of most distros
and can be found at www.linuxdoc.org). If you are really pushing for some sort
of embedded linux kernel environment, then sites like www.embedded-linux.org
may be useful.

Cheers,
Toby Haynes

-- 

Toby Haynes
The views and opinions expressed in this message are my own, and do
not necessarily reflect those of IBM Canada.

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

From: "Jeff Ryan" <[EMAIL PROTECTED]>
Subject: Re: Process priorities
Date: Wed, 27 Sep 2000 10:15:26 -0400


"Frank Dijcks" <[EMAIL PROTECTED]> wrote in message
news:8qqpvm$g89$[EMAIL PROTECTED]...
> I have written a deamon on Linux that is polling an input port at 10 msec
to
> monitor an alternating signal. The program itself is working fine, but I
do
> have a small problem.
> When other processes are running concurrently (and loading the CPU), my
> deamon does not get enough CPU time to do its polling at fixed 10 msec
> intervals.
>
> Is there a way to increase the process priority of my program?
> Or better: a way to guarantee some code in my program is executed at fixed
> intervals of 5 to 20 msec??
>
> Frank
> [EMAIL PROTECTED]
You could us a real-time Linux such as Linux/RT from TimeSys.  It allows you
to "reserve" CPU time for your processes.

Jeff



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

From: Jim Thomas <[EMAIL PROTECTED]>
Subject: Re: Linux Network Driver Help
Date: Wed, 27 Sep 2000 13:02:13 -0400

Jim Slade wrote:
> 
> I have RedHat 6.1 and I am looking to install a RealTek RTL8029 PCI Ethernet
> Card.  How would I install the drivers for this card?

cd to /usr/src/linux/drivers/net and then grep for 8029.  I got hits on
ne.c and ne2k-pci.c, so now you know which driver it is (if it's a PCI
card, use ne2k-pci.c, if ISA, use ne.o)

Then edit /etc/modules.conf (or /etc/conf.modules) and add this line:
alias eth0 ne.o
or 
alias eth0 ne2k-pci.o

Use linuxconf to setup the IP/netmask (etc) and reboot.
That should at least get you started.

-- 
Jim Thomas                            E-mail:     [EMAIL PROTECTED]  
Senior Applications Engineer          Web:     http://www.bittware.com
Bittware, Inc                         Tel:              (703) 779-7770
Reading goes faster if you don't sweat comprehension. - Hobbes

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: what is the max size of a shm?
Date: 27 Sep 2000 17:37:36 GMT

In article <8qsbr6$ok8$[EMAIL PROTECTED]>, gdm <[EMAIL PROTECTED]> wrote:

>who knows the max size of a shm in Linux? somebody told me that the max size
>could be 1Gb ? is this true?

It probably depends on the hardware you are using.  If x86, 1GB is probably
the correct answer without the large memory support kernel option.  On an
Alpha or SPARC it's probably something else.

--
http://www.fnet.net/~ellis/photo/

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

From: Martin Burrows <[EMAIL PROTECTED]>
Subject: Where do i find the exception-setup in the kernel-source tree?
Date: Wed, 27 Sep 2000 20:58:04 +0200

hi all -

i was just browsing the linux (386) kernelsource and i was looking for the
exception setup (i don't know, if that is the right expression for it, but
i hope you know what i mean) 
i am mainly interested in the segmentation fault / buffer overflow
exception handling, so please support me with the sourcefilename and it's
position in the tree.

thanks a lot, unknown answerer.

martin


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

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: segmentation foult.
Date: Wed, 27 Sep 2000 20:18:03 +0000

In article <8qsc2e$etb$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> Hi!!
> I am suffering from a great problem. After compiling my amy c program,
> i got a.out file. but while executing this file the message i receive
> is "core dump" "segmentation foult". Please give me solution for this
> as if i am new prograamer in linux.
> Thanks in advance.
> Bharat.
> 

compile with -g then link, run your program then use

gdb <prog> core
info stack- you can use list as well to show the code.

There are other tools you can use that may be better to use but this
is generally what I use.

karl.



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

From: Toby Haynes <[EMAIL PROTECTED]>
Subject: Re: Installing RPMS
Date: 27 Sep 2000 15:23:27 -0400

!! "smam" == smam  <[EMAIL PROTECTED]> writes:

  smam> I have Linux 6.1. From File Manager I right click on the rpm and choose
  smam> install and nothing happens. I go to a terminal and try the rpm -i
  smam> command - I get no error messages and yet the rpm does not seem to
  smam> install.

You should do 

rpm -ivh <nameOfRPM.rpm>

to get some feedback on the install process. Otherwise no output = success. To
find out what is installed, try

rpm -qa 

to get a complete list. For a complete list of RPM options, type

man rpm

  smam> I am trying to install the kernel source and the make program. When I
  smam> do a find on the make program it comes up with nothing.

'Make' comes as part of the gcc packages - the RPMs should be on the RedHat CD
and you should install several RPMs to get a working compiler, header files and
kernel source. Install at minimum all the gcc, binutils and the kernel
source/header rpms. This is done automatically for you by Redhat if you choose
the development options...

Cheers,
Toby Haynes
-- 

Toby Haynes
The views and opinions expressed in this message are my own, and do
not necessarily reflect those of IBM Canada.

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

From: "Ed Hudson" <[EMAIL PROTECTED]>
Subject: Building a 2.0 kernel from a 2.2.14 based machine
Date: Wed, 27 Sep 2000 15:35:51 -0500

I am trying to build a 2.0.33 kernel on a 2.2.14 machine.  When I try to compile, I 
get a lot of 
errors as follows:

/usr/src/linux2.0/linux/include/asm/string.h:118 invalid 'asm' statement
/usr/src/linux2.0/linux/include/asm/string.h:118 fixed or forbidden register 4(si) was 
spilled for 
SIREG

There are a bunch some spilling SIREG, others spilling CREG.  What am I doing wrong?  
I do a 
make config, make dep, make clean, make bzImage and it fails on the make bzImage.


Thanks

Ed


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

From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Building a 2.0 kernel from a 2.2.14 based machine
Date: Wed, 27 Sep 2000 21:13:28 +0000 (UTC)

In article <[EMAIL PROTECTED]>,
Ed Hudson <[EMAIL PROTECTED]> wrote:
| I am trying to build a 2.0.33 kernel on a 2.2.14 machine.  When I try to compile, I 
|get a lot of 
| errors as follows:
| 
| /usr/src/linux2.0/linux/include/asm/string.h:118 invalid 'asm' statement
| /usr/src/linux2.0/linux/include/asm/string.h:118 fixed or forbidden register 4(si) 
|was spilled for 
| SIREG
| 
| There are a bunch some spilling SIREG, others spilling CREG.  What am I doing wrong? 
| I do a 
| make config, make dep, make clean, make bzImage and it fails on the make bzImage.

  You may be using the wrong compiler. If you are on Slackware, try the
other one (gcc/egcs) and see if that helps. There's a note in the kernel
docs somewhere about using egca on older kernels, you can look for that.

-- 
  bill davidsen <[EMAIL PROTECTED]>  CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!

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

From: Frank Contrepois <[EMAIL PROTECTED]>
Subject: write to a /proc file
Date: Wed, 27 Sep 2000 22:04:59 +0200

how can I write from the kernel to a proc file ???

thanx


-- 
Pazzooo

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

From: Peter Pointner <[EMAIL PROTECTED]>
Subject: Re: Process priorities
Date: 27 Sep 2000 23:30:20 +0200

Rick Ellis <[EMAIL PROTECTED]> wrote:
> In article <8qqpvm$g89$[EMAIL PROTECTED]>,
> Frank Dijcks <[EMAIL PROTECTED]> wrote:

>>I have written a deamon on Linux that is polling an input port at 10 msec to
>>monitor an alternating signal. The program itself is working fine, but I do
>>have a small problem.
>>When other processes are running concurrently (and loading the CPU), my
>>deamon does not get enough CPU time to do its polling at fixed 10 msec
>>intervals.
>>
>>Is there a way to increase the process priority of my program?
>>Or better: a way to guarantee some code in my program is executed at fixed
>>intervals of 5 to 20 msec??

> You really should do this in a driver.  That way you could get the timer
> tic and do the polling then.  

You're probably right. But Frank might want to do "man sched_setscheduler",
maybe that does the trick.

Peter


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

From: Peter Pointner <[EMAIL PROTECTED]>
Subject: Re: How can I strip the kernel ?
Date: 27 Sep 2000 23:18:29 +0200

St. Otto <[EMAIL PROTECTED]> wrote:

> we are looking for a way to strip the Suse kernel.

> The destination is to eliminate as much functionality
> as possible - all not called functions (not called from
> an given application) and all functions, that are not called
> from services used by this application (like ip, filesystem
> and so on) should be removed.

Did you already do the obvious thing: Configure and build your
own kernel? I'm asking because your examples ip and filesystems
can be removed by configuration.

What kernel do you use? There have been a lot of "Suse kernels"
during the last years. I remember removing the vga console code
in 2.0.something, 2.2.x has a configuration option for that.

> What services we must use - currently we don't know finally.

> Actually it would be sufficient to learn something about
> the way to reach this destination.

> Our first idea was using a tool like "calltree_2.0". But is this
> the right way ? (Especially: calltree does not detect function
> pointers !)
> Has anyone a better idea ?

IMHO you should try to configure the minimum kernel for your needs.
If it doesn't fit, check if you really can't get more
flash/ram/whatever. If you can't, ask again and tell us your limits,
maybe somebody can help.

Btw. at least I think of strip(1), when I read "strip the kernel",
and that is not what you want.

Peter


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

From: [EMAIL PROTECTED]
Crossposted-To: 
alt.comp.hardware,alt.comp.hardware.homebuilt,alt.comp.hardware.pc-homebuilt,comp.hardware,comp.ibm.pc.hardware,comp.os.linux,comp.os.linux.hardware,comp.os.linux.questions,comp.os.linux.x,comp.os.ms-windows.vide
Subject: Re: s3 virge accelerated specification
Date: Wed, 27 Sep 2000 21:46:55 GMT
Reply-To: [EMAIL PROTECTED]

On Wed, 20 Sep 2000 10:18:19 +0300, "Ian Dichkovsky" <[EMAIL PROTECTED]>
wrote:

>Hi !
>(Sorry for bad English)
>I want to write an accelerated video driver for Linux
>(or maybe later for other systems ....).
>
>Where I could download specification(documentation) on
>S3 Virge DX/GX(375/385)?(html, pdf, TeX, dvi, ... )
>Samples of using accelerated
>capabilities ?
>
>Thanks !
>



The S3 virge is a very old graphics card.  are you sure that a driver
has not already been made?

-
brian

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

From: wolf <[EMAIL PROTECTED]>
Subject: the use of fn_hash_select_default
Date: Wed, 27 Sep 2000 15:05:23 +0800

i notice a fn_hash_select_default() routine in ip_route_output_slow(),
which seems odd. I masked it from the kernel , and that seems make no
difference.

what is the use of it ?

thanx


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

From: wolf <[EMAIL PROTECTED]>
Subject: couldn't find the kernel version the module was compiled for ?
Date: Wed, 27 Sep 2000 16:17:30 +0800

i write a simple module just printk some infomation . while compiling it
with gcc -c mymdl.c it comes out with the error :
"couldn't find the kernel version the module was compiled for "

what's wrong ?
thanx


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

From: Exits Funnel <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Java on Linux?
Date: Wed, 27 Sep 2000 22:15:24 GMT

Hello,

I'm a java developer new to linux (or any unix for that matter).  I'm
wondering what java compilers/tools most linux developers favor.  I know
Sun's JDK is available on linux but am wondering what alternatives there
are.  Does GNU have a Java offering?  I'm looking for something with a
good command line debugger.  The debugger that comes with the JDK is
really, really poor.  Anyone have any suggestions or thoughts on the
topic in general?  Thanks in advance.

Exits


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

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

From: [EMAIL PROTECTED] (Ulrich Weigand)
Subject: Re: Linux Stack Sizes? (0/1)
Date: 28 Sep 2000 00:49:51 +0200

MeekGeek <[EMAIL PROTECTED]> writes:

>This is obviously the problem.  I was "out-clevered" by an extra
>kernel check.  :-)  Yes, there's nothing wrong with that check really.
>It does assume that ESP will be decremented _before_ the use, which is
>probably a _little_ on the false assumption side, but no more so than
>using the stack before the decrement would be.  :-)

Actually, using memory on the stack below ESP is rather hazardous
in any case, even if it were not forbidden by the page fault handler:
consider that a signal can arrive at any time, and the signal handler
will by default run on the current stack, starting right below the
current ESP ...  

-- 
  Dr. Ulrich Weigand
  [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
******************************

Reply via email to