Linux-Development-Sys Digest #830, Volume #6     Mon, 14 Jun 99 23:13:57 EDT

Contents:
  Re: /usr/include/linux/proc_fs.h, how to use it? (Peter P. Eiserloh)
  Re: glibc2: undefined references (Tobias Deiminger)
  Re: Linux on Palm-PCs (Michel van der Kleij)
  Re: TAO: the ultimate OS (Alexander Viro)
  Re: What are the differences between mySQL and mSQL? (david parsons)
  Re: the ultimate OS (Vladimir Z. Nuri)
  Re: power off after shutdown --> no more in 2.2.x ? (Igor Zlatkovic)
  Re: Testing a kernel, boot from floppy? (Medical Electronics Lab)
  Re: Testing a kernel, boot from floppy? (Medical Electronics Lab)
  Problem with vremap function (Vincent)
  Re: quotactl problem (Alan Curry)
  Re: Linux & Cybercafe (Etienne Lorrain)
  Re: Any Mail Application for commercial use (Duncan Simpson)
  Redir IO app dosemu <-> linux (Marco Dubbeld)
  Re: MMX & SMP HOWTO? (Gianni Mariani)
  Re: TAO: the ultimate OS (Crispin Cowan)
  Re: How to upgrade gcc2.7.2.3 to gcc2.8.1 (Paul Kimoto)
  Re: the ultimate OS (Crispin Cowan)

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

From: [EMAIL PROTECTED] (Peter P. Eiserloh)
Crossposted-To: comp.os.linux.development
Subject: Re: /usr/include/linux/proc_fs.h, how to use it?
Date: 13 Jun 1999 11:48:19 GMT

In article <7jvaee$gg0$[EMAIL PROTECTED]>, Huang Kai wrote:
>hi,
>I try to include linux/proc_fs.h, like the following code:
>
>#include <linux/kernel.h>
>#include <linux/module.h>
>
>#include <linux/proc_fs.h>
>
>int test()
>{
>    return 0;
>}
>
>the compiler's message:
>In file included from proc.c:4:
>/usr/include/linux/proc_fs.h:275: parse error before `filldir_t'
>/usr/include/linux/proc_fs.h:275: warning: `struct file' declared inside
>paramet
>er list
>/usr/include/linux/proc_fs.h:275: warning: its scope is only this definition
>or
>declaration,
>/usr/include/linux/proc_fs.h:275: warning: which is probably not what you
>want.
>proc.c:6: parse error before `filldir_t'
>proc.c:6: warning: `struct file' declared inside parameter list
>
>Where can I find document for proc_fs.h?
>How to use it?
>

First, you need -O (or O1, O2) on the compilers command lina., 
There are inlines that only get inlined when optimizing, so
when compiling for the kernel alway optimize.

And second, you need to define _KERNEL_
The kernel include try to protect user space programs from
seeing kernel only data structures.

gcc -Wall -O2 -D_KERNEL_ -c mytest.c

>BR
>kevin
>


-- 
+...................................................................
| Peter P. Eiserloh                            [EMAIL PROTECTED]
|                                  http://www.ridgenet.net/~eiserloh
| Unix, Linux, Modula-2/3, Compilers, Esperanto, Physics, 
| Science Fiction, Babylon-5
+...................................................................

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

Date: Mon, 14 Jun 1999 15:59:34 +0200
From: Tobias Deiminger <[EMAIL PROTECTED]>
Subject: Re: glibc2: undefined references

Andreas Jaeger wrote:

> >>>>> Tobias Deiminger writes:
>
> Tobias> After installing glibc2.1.1pre3 on my suse5.3 (libc; egcs1.1) to
> Tobias> /usr/local I sometimes get errors during linking:
> Tobias> /usr/local/lib/libc.so.6: undefined reference to
> Tobias> `_dl_unload_cache@@GLIBC_2.1'
> Tobias> /usr/local/lib/libc.so.6: undefined reference to
> Tobias> `_dl_initial_searchlist@@GLIBC_2.1'
> Tobias> ...
> Tobias> What's wrong?
>
> Read the glibc FAQ first that comes with glibc 2.1.1.
>
> Andreas
> --
>  Andreas Jaeger   [EMAIL PROTECTED]    [EMAIL PROTECTED]
>   for pgp-key finger [EMAIL PROTECTED]

The only thing I found in the FAQ was that symbols starting with "_dl_" come
from the dynamic linker.
So I still have no idea how to my problem .

Tobias


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

From: Michel van der Kleij <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.development.apps
Subject: Re: Linux on Palm-PCs
Date: Sun, 13 Jun 1999 17:08:23 +0100

I've tried and tested a Linux version for the Psion Series 5. It used up most
of my 8Mb memory (kernel, "disk-image" etc.) but it works! Getting stuff to and
from the Linux S5 was awkward because it had to be in diskimages.  It's been a
while since I last played with it, so I've forgotten where I got it from. Must
have been the "PsionKing" site or something.

Mich.

On Sat, 12 Jun 1999, David C wrote:
..
>>> As far as I know, a Linux version for the Palm Pilot and even one for
>>> the Atari Portofolio has been already developed. Did anybody start to
>>> develop a 'Pocket Linux' for Palm-size PCs? (I mean this devices
>>> running now WinCE)
..

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

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 14 Jun 1999 03:16:38 -0400

In article <[EMAIL PROTECTED]>,
Bruce Stephens  <[EMAIL PROTECTED]> wrote:
>There's a good practical reason that Linux (and the Hurd) looks lots
>like Unix: there are lots of interesting Unix programs that people
>want to use.  How's Emacs going to work in Tao?  How about PostgreSQL,
>Mozilla?

<chuckle> Of all programs out there EMACS and Mozilla are probably the most
anti-UNIXish in design. Come on, both are obviously intended for use on
systems with *very* slow equivalents of fork(). In case of EMACS it definitely
was *not* UNIX - even mentioning that OS together with UNIX was enough to
make a separate charge in AT&T lawsuit ;-)

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

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

From: o r c @ p e l l . p o r t l a n d . o r . u s  (david parsons)
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.lang.java.databases
Subject: Re: What are the differences between mySQL and mSQL?
Date: 13 Jun 1999 21:11:42 -0700

In article <[EMAIL PROTECTED]>,
Don Baccus <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Paul D. Smith <[EMAIL PROTECTED]> wrote:
>
>>I'm merely pointing out that, as behooves us on a Linux newsgroup, when
>>I say "this app is free" I mean much, much more than just "it doesn't
>>cost anything".
>
>Hmmm...don't folks in Linux newsgroups know the difference
>between "free" and "free and open source"?

     No.
                   ____
     david parsons \bi/ At least not in .advocacy.
                    \/

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

Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
From: [EMAIL PROTECTED] (Vladimir Z. Nuri)
Subject: Re: the ultimate OS
Date: Mon, 14 Jun 1999 07:55:42 GMT

Frank Sweetser ([EMAIL PROTECTED]) wrote:

: <sigh...>

: "perform a study determining which color database has the most memory"

purple, definitely.. hahaha
-- 
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
"in theory, there's no difference                            [EMAIL PROTECTED]
between theory and practice,                           mad genius research lab
but in practice there is!"                       http://www8.pair.com/mnajtiv/

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

From: Igor Zlatkovic <[EMAIL PROTECTED]>
Subject: Re: power off after shutdown --> no more in 2.2.x ?
Date: Mon, 14 Jun 1999 08:16:00 +0000

Stefan Opperskalski wrote:

> Hmmm, I compiled 2.0.36 (I think it was Suse 5.3) with SMP and shutdown
> did its job very well.
> OK, you may say, the SMP-support was not perfet in that kernel. Accepted
> then.
> What, if the kernel supported SMP well  and shutdown worked?
> But I see. I try "halt -p" and I look inside the code to find, how
> powering off is done.
>
> CU,
> Stefan

Compiling the kernel with SMP support is not enough to stop it :-) Mine was
compiled as SMP and poweroff worked as long I had only one CPU in the machine.
Plugging a second CPU caused poweroff to stop working and brought a second
boot-time penguin :-)

If you find something post it. I'm would also like to reenable it. I didn't
search for it that far, because it was nice-to-have, but not really important.
I only found a boot-time message from apm saying that apm is not smp safe -
disabling apm. Docs in /usr/src/linux confirmed this.

I'm more interrested in ACPI at the moment as that is completely unknown
matter to me :-)

--
Igor Zlatkovic                  mailto:[EMAIL PROTECTED]
University of Applied Sciences, Frankfurt, Germany, EU
    "If at first you don't succeed, redefine success."
                       -- /usr/bin/fortune, 12.5.1999.




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

From: Medical Electronics Lab <[EMAIL PROTECTED]>
Subject: Re: Testing a kernel, boot from floppy?
Date: Mon, 14 Jun 1999 13:12:49 -0500

Villy Kruse wrote:
> Also, the FAQ wasn't totally acurat on the name on the saved boot image.
> The saved boot image from MBR on /dev/hda is named /boot/boot.0300
> (major no 3 minor no 0).  A saved boot block from a dos file system on
> /dev/hda1 is saved in /boot/boot.0301 and so on.  The lilo -u command
> knows all that so it won't make a mistake.  Of cours you can use dos
> fdisk /mbr to crate a new dos MBR loader, but it cant save a trashed
> boot block from a dos partition in for example /dev/hda1.

I found the boot/boot.0300 file and dd'd it back to /dev/hda.  This
fixed my boot process just fine.  I also got my test compiled version
to load and run.  So I'm armed and dangerous now :-)

Patience, persistence, truth,
Dr. mike

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

From: Medical Electronics Lab <[EMAIL PROTECTED]>
Subject: Re: Testing a kernel, boot from floppy?
Date: Mon, 14 Jun 1999 13:16:42 -0500

Konrad Mieredorff wrote:
> 
> > IOW, I've got dos in hda1 and linux in hda6 and no boot blocks.
> > Fortunatly, I can boot from floppy and the hda6 (linux ext2 fs)
> > is ok.  Where can I find the original boot block code, do I
> > need to recompile it, and how do I put it back right?
> 
> To make this discussion more constructive, you should post
> /etc/lilo.conf and tell us which partitions hold which OSs...

Yeah, I probably should have.  It's not so simple tho.
The computer that runs linux isn't connected to anything else,
so I'd have to retype everything by hand (no big deal for lilo.conf,
but I'm lazy!).

In fact, that's why I'm messing with it.  I did get the test boot
to work, and the recompiled kernel runs, but not as I expected.
So now I get to figure out why.  At least lilo makes sense now.

Thanks for the help, I got a few ideas from this group that got me
back up and running.

Patience, persistence, truth,
Dr. mike

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

From: Vincent <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.hardware
Subject: Problem with vremap function
Date: Mon, 14 Jun 1999 12:03:55 +0200

Hi.   (I'm under Linux SuSE 6.0 (kernel 2.0.36))

I'm developping a driver for industrial PCI card. Each card have 2Ko of
memory.

The first card has an adress: 0xFF000000
The second has an adress:   0xFF000800

My problem is that vremap can't maps the second memory.

vremap use this define:
    PAGE_SHIFT = 12
    PAGE_SIZE   =  1 << PAGE_SHIFT    #0x00001000
    PAGE_MASK = ~(PAGE_SIZE-1)      #0xFFFFF000
    ~PAGE_MASK=                                   #0x00000FFF

This is the minimum of page size

Error provide in the second card with the test:         if (adress &
~(PAGE_MASK)) return NULL
with adress is the physical adress.

For the first card:        0xFF000000 & 0x00000FFF  => return virtual
adress
For the sedond card:  0xFF000800 & 0x00000FFF  => return NULL

How can I resolve this error ?
Can I reduce the page size ?
Or, must I use other function than vremap ???


Thanks for your help.

--

=========================================
DEVERRE Vincent - MCII : [EMAIL PROTECTED]
=========================================





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

Subject: Re: quotactl problem
From: [EMAIL PROTECTED] (Alan Curry)
Date: Mon, 14 Jun 1999 19:15:48 GMT

In article <7k2a0h$hph$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
>Hello
>        I use redhat 6.0 and I try to set quota with this code but
>it can not work with error message "No such process". Please check my
>code and let me know what wrong with it.

Have you done a quotaon?
-- 
Alan Curry    |Declaration of   | _../\. ./\.._     ____.    ____.
[EMAIL PROTECTED]|bigotries (should| [    | |    ]    /    _>  /    _>
==============+save some time): |  \__/   \__/     \___:    \___:
 Linux,vim,trn,GPL,zsh,qmail,^H | "Screw you guys, I'm going home" -- Cartman

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

From: Etienne Lorrain <[EMAIL PROTECTED]>
Crossposted-To: alt.uu.comp.os.linux.questions,comp.os.linux.networking
Subject: Re: Linux & Cybercafe
Date: Mon, 14 Jun 1999 09:47:23 +0100

  There is also, somewhere, a "restricted" shell, I do not
 remember its name - but it could be "rsh", and there is a
 name clash with the "remote" shell "rsh".
  With it, the user can do "ls" but nothing more... mostly
 not "chsh".

  Etienne.



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

From: [EMAIL PROTECTED] (Duncan Simpson)
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.misc
Subject: Re: Any Mail Application for commercial use
Date: 9 Jun 1999 21:08:07 GMT

In <[EMAIL PROTECTED]> Eddy <[EMAIL PROTECTED]> writes:

>Besides Zmail and Sendmail, is there any mail application suitable for
>commercial use ? As Sendmail seems too complicated for commercial and
>the user interface is not so user-friendly.

There are others like qmail and postfix. If you want an ISP strength
mail transport agent then sendmail is the usual choice. Easier
configuration is avaialable as sendmail pro (sendmail+GUI
configuration tool) from sendmail inc, whose techincal support should
be good (if need be Eric himself is avialable). There are lots of
consultants out there who will install and configure sendmail for you.

Both these options will cost you money, of course.

Things you read and write mail with are a sepereate question. Popular
choices include pine and elm. There are varuious GUI ones too--I like
exmh but it is not for everyone.

--
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."

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

Date: Mon, 14 Jun 1999 23:38:07 +0200
From: Marco Dubbeld <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.development,comp.os.linux.help,comp.os.linux.misc
Subject: Redir IO app dosemu <-> linux

What would be my options if I want to redirect IO between an application
written in foxpro for dos running in a dosemu, to a application I am
currently developing in Linux tcl/tk. Can I use expect? Is there an easy
way to share the dosemu IO to linux app. If not what is neat to do??

Many thanks...


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

From: Gianni Mariani <[EMAIL PROTECTED]>
Subject: Re: MMX & SMP HOWTO?
Date: Tue, 15 Jun 1999 00:54:29 GMT


Doing a grep of the kernel gives me this:

drivers/block/xor.c:               "raid5: using high-speed MMX checksum
routine\n");
drivers/block/xor.c:            xor_speed(&t_xor_block_pII_mmx,&b1,&b2);

drivers/block/xor.c:            xor_speed(&t_xor_block_p5_mmx,&b1,&b2);

I saw some funny messages during boot time - doing 1GB/sec XORs or
somthing which
is very impressive.  I suspect you only get those kind of numbers if you
use some vector
kinds of instructions.

Wow, you made me think I was dreaming ... :)

Marcus Sundberg wrote:

> Gianni Mariani wrote:
> >
> > I though the Linux RAID driver used the MMX instructions ?
>
> Where did you get that idea?
>
> //Marcus
> --
> -------------------------------+------------------------------------
>         Marcus Sundberg        | http://www.stacken.kth.se/~mackan/
>  Royal Institute of Technology |       Phone: +46 707 295404
>        Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]


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

From: [EMAIL PROTECTED] (Crispin Cowan)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 15 Jun 1999 01:41:57 GMT

In article <[EMAIL PROTECTED]>,
Vladimir Z. Nuri <[EMAIL PROTECTED]> wrote:
>the thread seems to me to be proof that most people react
>to new ideas by attacking them, or the purveyor of them.
>an observation others have made of human psychology.

What new ideas?  No, don't just point at your essay, give us a
reasonable abstract.  One single paragraph that presents one new idea
that you have proposed.  Go for it.  I'm not asking for code, just a
sucinct description of one new idea.

Crispin
=====
 Crispin Cowan, Research Assistant Professor of Computer Science, OGI
    NEW:  Protect Your Linux Host with StackGuard'd Programs  :FREE
       http://www.cse.ogi.edu/DISC/projects/immunix/StackGuard/

              Microsoft:  Putting the "lame" in "layman"

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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: How to upgrade gcc2.7.2.3 to gcc2.8.1
Date: 14 Jun 1999 22:01:15 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, y chen wrote:
> I had trouble to upgrade gcc. I just wondering
> is it posible to compile and link gcc 2.8 with
> gcc 2.7.2.3

Yes, although it is probably better to use egcs: see
http://egcs.cygnus.com/ .  (The egcs team is in the
process of taking over gcc maintenance, so you would
not really be straying from the gcc path.)

-- 
Paul Kimoto             <[EMAIL PROTECTED]>

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

From: [EMAIL PROTECTED] (Crispin Cowan)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: the ultimate OS
Date: 15 Jun 1999 02:03:32 GMT

<mailed & posted, because it's actually useful :->

In article <7jr2r9$v5k$[EMAIL PROTECTED]>,
Stefaan A Eeckels <[EMAIL PROTECTED]> wrote:
>> inherent to its minute-to-minute operation as disk caching.
>> I submit that code optimization is a form of optimization very
>> similar to caching that needs to be handled by the OS on-the-fly.
>This is utter nonsense. Caching and optimisation have about
>as much in common as Bill Gates and Scott McNeally. 

On the contrary; here our enterprising essayist :-) has actually
stumbled across something.  Consider the Synthesis Kernel (Massalin and
Pu SOSP'89, etc.].  Synthesis had a run-time code generator in the OS
that would emit code specific to applications being run at the time.
This specialized code could be viewed as "caching" the state of the
system it is to support.  There was one particularly brilliant example
where the ready queue was implemented as a "linked list" comprised of
chunks of code that would jump directly from one control block to the
next, instead of having a scheduler traverse and "interpret" the ready
queue.

Synthesis was actually implemented and ran.  Benefits were largely in
the I/O system It showed speedups of up to 400 times on the essential
"cat bigfile >/dev/null" benchmark :-)

Disclaimer:  I worked on the follow-on Synthetix project, producing the
Pu et al (... Cowan ...) paper in SOSP'95.  We did Synthesis-like
things inside the HP-UX kernel, producing speedups in the x3 range.

Crispin
=====
 Crispin Cowan, Research Assistant Professor of Computer Science, OGI
    NEW:  Protect Your Linux Host with StackGuard'd Programs  :FREE
       http://www.cse.ogi.edu/DISC/projects/immunix/StackGuard/

              Microsoft:  Putting the "lame" in "layman"

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


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