Linux-Development-Sys Digest #637, Volume #7     Tue, 29 Feb 00 12:13:18 EST

Contents:
  Re: need help... ("V.Vijay Kumar")
  Re: PAGE_OFFSET_RAW undeclared in kernel 2.2.14 (Stefaan A Eeckels)
  Compiling the kernel (James)
  Re: an alternate default for LILO (Michel Talon)
  Re: Binary compatibility: what kind of crack are they smoking? (Wolfram Gloger)
  Counting byte traffic of modem ("Peter Van Grootven")
  Re: Linux device driver ("Holger Martens")
  Re: PAGE_OFFSET_RAW undeclared in kernel 2.2.14 (Anders Larsen)
  Re: processes surviving shell shutdown (Toby Haynes)
  KDevelop: how to create a library ? ("Luca Garulli")
  Re: Why a file system ? (Nicolas Boulay)
  Re: I need help setting up my ethernet card... (David T. Blake)
  Problem with SIGALRM and rad() from a pipe ("John Agnew")
  Re: how to get the specific source code? ("han jibin")
  how to list the printers available? ("han jibin")
  Re: complex math in a device driver ("Dan Miller")
  Re: Compiling the kernel (Paul Kimoto)

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

From: "V.Vijay Kumar" <[EMAIL PROTECTED]>
Subject: Re: need help...
Date: Tue, 29 Feb 2000 13:52:00 +0530

Find out what the hardware that preconfigured computer has. Whether it has
an Intel processor or some other. Then see if Redhat has Linux for that
platform. www.redhat.com  If it has then you definitely can install RedHat
Linux on that m/c.

Vijay.

"evertrust" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> ok here is my problem.
> I am still new to Linux.
> I found some priconfigured computer on an online linux store.
> They said, that it comes all ready installed with the Debian version of
> linux with the kernel 2.2.10<--they say the hardware is only compatible
> with this version of the kernel.
> well i have a redhat linux 6.1 which i wish to install on my future
> machine.
> My question is if i get a machine like this one which is compatible with
> the 2.2.10 kernel, will i be able to install the redhat linux 6.1 without
> any problems?????????????
>
> --
> Posted via CNET Help.com
> http://www.help.com/



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

From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: PAGE_OFFSET_RAW undeclared in kernel 2.2.14
Date: 29 Feb 2000 07:27:38 GMT

In article <[EMAIL PROTECTED]>,
        Chris Beamis <[EMAIL PROTECTED]> writes:
> 
> I downloaded kernel-source-2.2.14_2.2.14-1_all.deb from either
> ftp.tux.org or ftp.debian.org (potato) using apt-get just a couple of
> days ago.  When I try to compile it, using a .config file which seems to
> work fine for the 2.2.5 kernel,  the compile stops with an Error 1.
You'll have to read the config file into the current version of
the configurator, check the options, and write it out again.
New symbols have been introduced between 2.2.5 and 2.2.14.

-- 
Stefaan
-- 
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.

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

From: James <[EMAIL PROTECTED]>
Subject: Compiling the kernel
Date: Tue, 29 Feb 2000 09:30:24 GMT

I need to re-complie my kernel but the make command isn't recognised by 
bash, how do i change this?

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

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

From: Michel Talon <[EMAIL PROTECTED]>
Subject: Re: an alternate default for LILO
Date: Tue, 29 Feb 2000 10:24:40 +0100

[EMAIL PROTECTED] wrote:
> Having gotten no help after explaining what I wanted to do, I proceeded to
> try to come up with an idea to accomplish it.  I don't have enough background
> to do all of this, so I'll be looking for some kind of help from someone who
> does.

> What I want to do is modify LILO so that it knows of not one default system
> to boot, but two.  There will be an alternate default system.  Perhaps it
> can be the 2nd system in the lilo.conf file.  When LILO runs to boot up a
> system, it will look for this special flag in RAM or maybe in some other
> hardware.  Exactly where this flag will be and how to detect it is the big
> crucial part of this.  The flag MUST be something that will be cleared out
> if there is a hard reset (pressing the reset button) and obviously if the
> power is cycled off and on.  The flag MUST NOT be cleared when Linux does
> a software reboot (e.g. shutdown -r now).  The modified LILO must be able
> to clear the flag itself, and will do so when it detects it.

> When LILO detects this flag, and no other system is typed in, it will boot
> the alternate system, but before doing so, it will clear the flag.

> When LILO does not detect this flag, it will boot the primary default system.


You should take a look at the Booteasy loader in FreeBSD which uses
flags to remember last system booted


> -- 
> | Phil Howard - KA9WGN | for headlines that | Just say no to absurd patents |
> | [EMAIL PROTECTED] | really matter:     | Boycott Amazon.Com (AMZN)     |
> | Dallas - Texas - USA | linuxhomepage.com  | Shop http://bn.com/ instead   |

-- 
Michel Talon

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

From: Wolfram Gloger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: 29 Feb 2000 11:36:27 +0100

[EMAIL PROTECTED] (Mario Klebsch) writes:

> I can run them at the same tine, too, but when the dynamic linker
> schoeses the set of X11 libs linked against libc5 for a program using
> libc6, I usually get errors about missing symbols. Here is one example:
> 
> ./xisdnload: error in loading shared libraries: /usr/libc5/lib/libX11.so.6: 
>undefined symbol: _xstat
> 
> The shared library libX11 does have the same name (libX11.so.6), no
> matter wether it requires libc5 or libc6. So I have to files called
> libX11.so.6 on my system. I even observed situations, were an
> application loaded both libcs, libc5 and libc6. :-(

RTFM: man ldconfig, less .../ld.so-1.9.8/README.

A lot of work has gone into making the transition from libc5 to libc6
as painless as possible, although admittedly no one that I know of
still works on improving that support.

Regards,
Wolfram.

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

From: "Peter Van Grootven" <[EMAIL PROTECTED]>
Subject: Counting byte traffic of modem
Date: Tue, 29 Feb 2000 11:44:16 +0100

Hi there, I'm looking for source code (C) or info on counting the bytes
received and transferred of a working/active modem.

Many thanks and regards, Peter.



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

From: "Holger Martens" <[EMAIL PROTECTED]>
Subject: Re: Linux device driver
Date: Tue, 29 Feb 2000 11:46:30 +0100


"Matthew Baldwin" <[EMAIL PROTECTED]> wrote:
...
>
> There's a good book which I have used called Linux Device Drivers
published
> by O'Reilly.
>
Alessandro Rubini
Linux Device Drivers
1st Edition 1998
ISBN 1-56592-292-1





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

From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: PAGE_OFFSET_RAW undeclared in kernel 2.2.14
Date: Tue, 29 Feb 2000 14:34:56 +0100

Stefaan A Eeckels wrote:
> 
> In article <[EMAIL PROTECTED]>,
>         Chris Beamis <[EMAIL PROTECTED]> writes:
> >
> > I downloaded kernel-source-2.2.14_2.2.14-1_all.deb from either
> > ftp.tux.org or ftp.debian.org (potato) using apt-get just a couple of
> > days ago.  When I try to compile it, using a .config file which seems to
> > work fine for the 2.2.5 kernel,  the compile stops with an Error 1.
> You'll have to read the config file into the current version of
> the configurator, check the options, and write it out again.
> New symbols have been introduced between 2.2.5 and 2.2.14.

The easiest way to accomplish this is to run
   # make oldconfig
followed by
   # make dep ; make clean
before you do the real make of your new kernel

--
Anders Larsen

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

From: Toby Haynes <[EMAIL PROTECTED]>
Subject: Re: processes surviving shell shutdown
Date: 29 Feb 2000 08:58:46 -0500

!! "phil" == phil-news-nospam  <[EMAIL PROTECTED]> writes:

  phil> On Tue, 29 Feb 2000 04:14:30 GMT Pierre-Marc Fournier
  phil> <[EMAIL PROTECTED]> wrote: | I am trying to start a
  phil> process that will not end when I logout from a | session (like
  phil> an ftp download). I read about nohup and tried it but it |
  phil> didn't work : the process starts but ends like if I hadn't
  phil> used nohup.  | Running redhat 6.0...

  phil> If the program specifically tries to do something with the
  phil> controlling tty, that operation will fail, and the program may
  phil> abort as a result.  It might depend one what your program is
  phil> doing.

You can wrap the program up in a shell under nohup in that case, such
as:

nohup tcsh -c 'myprog >&! /tmp/myprog.log' &

That should isolate any tty operation from impacting on the current
screen, unless it's doing something really wierd (like Angband with a
bot player might not work this way!).

Cheers,
Toby

-- 

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

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

From: "Luca Garulli" <[EMAIL PROTECTED]>
Subject: KDevelop: how to create a library ?
Date: Tue, 29 Feb 2000 15:00:52 +0100

Hello,
How to create a library project by KDevelop tool ???

Thanks,
Bye Lvca.




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

From: Nicolas Boulay <[EMAIL PROTECTED]>
Subject: Re: Why a file system ?
Date: Tue, 29 Feb 2000 15:04:07 +0100
Reply-To: [EMAIL PROTECTED]

Wolfgang Denk wrote:
> 
> Nicolas Boulay <[EMAIL PROTECTED]> writes:
> 
> >I know it's look like a very odd question.
> 
> >But in fact, file system it's a way to stock file. Files are from 2
> >types : program and data.
> 
> This is just a small part of the whole story.
> 
> Under UNIX, a file can represent nearly _everything_:
> 
> - program code
> - data
> - devices
> - pipes
> - network (sockets)
> - per-process information ...
> - hardware configuration
> ...
> 
> Have a look what a rich world you find just in the /proc filesystem -
> you will probably be amazed.

A file is nearly everything but some peripherical need more speed like
video card, so you have to find an other system !

I know all of this but if you are juste a secretary you absolutely
nevermind about this. You just want to refind every file you have
written. The system isn't your problem at all. But it's the same problem
for common people at home. They want to use internet, write letter,
maybe play networks game or have a little network with a server
connected to internet. In the ideal word, they just need to plug the
cable and some application will make it fine. It isn't because windows
make it very bad, that nobody can make it clean.

Or you think that linux arn't for common people ?  

> You are coming from another (Windows?) universe, right?  This  is  no
> Unix thinking...

It's a trial ?

> 
> >So, you need a kind of data base with your data connected to the
> >application which can read it (throught the MIMe type ?). And the
> 
> Why should you need a database? The whole idea is non-Unix.
> 
> Under Unix, it does not matter it it's "program" or "data". I can use
> the "program" `wc' to count the characters of the "data" - and "data"
> and "program" are the same.
> 
> There is no pre-organized, fix rule.

What means count characters of a binary file ?

> 
> >application are only visible by her name, not by a sudirectory and 100
> >internal files plus some link.
> 
> What do you mean?

When you look the directory of an application you can see many other
files than the executable file  and many other directories, sometimes
it's for configuration, but more often it's just internal thing. And
it isn't usefull to see all that stuff.

I know you can sleep well even you see that directory but it's just the
concept of application that i want to clarify. If 'wc' use 'wc_foo'
during a run, you don't need to see it in your file system. 

> 
> >For expert, it could look strange to think like that. But for a

> ...this would seriously limit what you can do with such a system. Let
> me add a famous quote:
> 
> "UNIX was not designed to stop you from doing stupid things,  because
> that would also stop you from doing clever things."       - Doug Gwyn
> 

That's why i say "warn" the user !And not doing something alone like
Windows.

> >This kind of ideas came to me when i try to manage the 300 Mo of
> >documentation or application download on the net, or when i try to
> >refind a data file which i can't remember where i put it. Or when (on
> >windows, soory) i move a directory to clean my HD but finally it's crash
> >the system. In fact, this system could looking for what you doing and
> >made some alarm.
> 
> Do What I Mean? Sorry, you won't get this easily.

The idea is to find a system where the file could be relatively
cleanly stocked with less work from the users.  

> 
> >I know that there is many means to answer to those question. Using find
> >or locate, creating it's own little data base to manage
> >documentations and never work under root login. But this problem appears
> >every days, usualy a common user, erase this partition every
> >4 months to have a clean system. I know that i speak for Wxx. But for
> 
> No user will erase a partition under Unix.
> 

I'm not sur. What could you do, if you have install some programs
without package manager, and some others with rpm. If you  look what
is install with rpm you can't easly know if a pakage is need by a
program that you have installed without rpm. And some times you want
to delete all program that you don't need but it's hard to know
exactly what you must keep.

> >linux, if you don't manage to install correctly in the good directory
> >your application in tgz, your system could become very dirty in few
> >month.
> 
> What makes you think so? Either you know what you are doing,  or  you
> better  use  pre-build packages and rely on the sense of others and a
> package manager like RPM.

Maybe i'm a little lazy but i didn't remenber all what i have doing
with my system !

Sorry, but each package manager use the informations given by the file
it self. Under windows, if every programs could have a clean remove
option, our system directory will not explode. And you have to trust
the people who create the rpm pakage.

> 
> >I know that you can used rpm or some other pakage manager but each
> >distributions have their own system.  And i beleave that the power of
> 
> ...and all follow, more or less, the filesystem standard.
> 

Has you say, follow more or less the standard.

> >linux is the source. So why not create a pakage manager which contain
> >only the source and make the compilation with the information given by
> >the system ?
> 
> You already have that: use RPM  and  install  source  RPM's.  If  you
> really  like,  you  can do this *now*. No changes needed. No problems
> involved.
>

Yes and you have to make ./configure and ./makefile and to pray for
everything would be fine. In the opposiste, you have to be an expert
or take many hours to earn how to solve the problem.
My imaginary system will have enough information to manage it-self
with dependancies, ... And give you enought information to face the
problem. 
    
> >The idee is to have  a global answer to all of his question.  Maybe i
> 
> NO!!!
> 
> The Unix idea is to have small building blocks, small ideas for small
> problems, not one genral unified solution for the Meaning of Life and
> Everything.
> 

Euh, it's a joke i hope. Read your own first line of this mail, it's
writen that everything under unix is thinking with the idea of file.
If it isn't a global answer for many big problem !

> >think too big or to complicate. Or i forgot some important point. So i
> >wait for your comment.
> 
> Think Unix!
> 
> Wolfgang
> 
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded
> >Linux

Maybe this last line could explain yours positions : This system is
fine and if you want to try to make it easier it would seems like
windows and it's bad.

My position is to think for beginer or for user who absolutely
nevermind about how it's system work. I want that everything could be
easly installed (maybe the only thing that Wxx does well) and that is
application should work fine.

No need to know how a network is see in the system or how the
processes communicate.

If you prefer my idea his to hide the main part of file system which
is see thought filter. You could manage that filter and this filter
can help you to manage your file. And that filter could be used to
filter what is see by some applications,...

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

From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: I need help setting up my ethernet card...
Date: 29 Feb 2000 14:24:13 GMT
Reply-To: [EMAIL PROTECTED]

Jae H. Choi <[EMAIL PROTECTED]> wrote:
> Hello, I am completely new to Linux at this point...
> I just installed my linux using ftp on my notebook computer..  For some
> reason, my ethernet card was not supported even when I was using pcmcia.img
> to boot.. So i used my friend's ethernet card...  but for some reason after
> I finished installing linux, I couldn't get connected on line..  Do I have
> to download the driver for my ethernet card and put it on the module???
> If so what is the process like??
> My ethernet card is 3com SH572B with Xjack..  Can anybody please help me??
> I really want to use this OS!!!

Try downloading the pcmcia modules and building from source with
a running kernel. You might also check the source to get the URL
for Donald Becker's home page - there are lots of useful 
diagnostic utilities there. The pcmcia development team (consisting
foremost of David Hinds) has a mailing list at sourceforge, so
you might check the mailing list to see if there is anything special
about your card. 

Oh yeah, start by reading the PCMCIA-HOWTO.


-- 
Dave Blake
[EMAIL PROTECTED]

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

From: "John Agnew" <[EMAIL PROTECTED]>
Subject: Problem with SIGALRM and rad() from a pipe
Date: Tue, 29 Feb 2000 16:34:39 -0000

Hi All,

I've an interesting problem with the following piece of code under Linux.
What I expect when the alarm expires is that the read from the pipe "pipe1"
terminates - this is what
happens under other version of Unix - but under Linux the read continues.
The effect is that
the program appears to have hung.

Any ideas on this ?


#include        <stdio.h>
#include        <signal.h>      /* signal header                        */
#include        <unistd.h>
#include        <fcntl.h>
#include        <sys/stat.h>
#include        <sys/types.h>

void Salarm(sig)
int sig;
{
        signal (SIGALRM, SIG_IGN);
        fprintf(stderr, "alarm came\n");
}

main()
{
int     Salarm_signal = 0;
int     fp;

signal (SIGALRM, Salarm);
alarm ((unsigned)5);

fprintf(stderr, "before open\n");
fp = open("pipe1", O_RDONLY);
fprintf(stderr, "after open\n");
fflush(stderr);
}







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

From: "han jibin" <[EMAIL PROTECTED]>
Subject: Re: how to get the specific source code?
Date: Tue, 29 Feb 2000 09:39:09 -0700

thanks. but I don't have the disks, I am using a X-windows terminal of which
the OS is Linux, would you please tell me how to find the source code of the
system call "gethostname" in detail? I tried rpm but i did not know the
package name.
thanks.
"Josef Moellers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
han jibin wrote:
>
> Hi,there: my system is Redhat, I want to get the source code of
> "gethostname" to learn some about DNS program, then how to find the code?
> besides, in general, how to find the specific source code of linux?
> thanks.

If you have purchased the CDs, then the source code of everything is on
the second CD. The linux kernel source code can be installed through the
rpms kernel-souce and kernel-headers (they should be on the first disk)
or through the source rpm kernel-whatever on the second disk.

--
Josef M�llers
Fujitsu Siemens Computers
SHV Server DS 1



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

From: "han jibin" <[EMAIL PROTECTED]>
Subject: how to list the printers available?
Date: Tue, 29 Feb 2000 09:40:49 -0700

what's the command to list all the printers available on the local network,
the OS is Red Hat6.
thanks.





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

From: "Dan Miller" <[EMAIL PROTECTED]>
Subject: Re: complex math in a device driver
Date: Tue, 29 Feb 2000 08:56:37 -0800


Bryan Hackney wrote in message <[EMAIL PROTECTED]>...
>Andreas Jaeger wrote:
>>
>[...]
>>
>> You can't use any floating point in the kernel at all.  No chance
>> AFAIK.  You have to solve this differently.  Are you sure that this
>> cannot done in userspace?
>>
>> Andreas
>> --
>[...]
>
>There has to be a way. I think the problem is that the kernel does not
>save FP state - you would have to figure out how to push and pop FP state,
>and make absolutely sure your code is atomic.
>
>Now, the fact that this is not done and apparently never has been done
would
>seem to indicate much smarter people than we have never had an absolute
need
>for such.
>
And, in fact, I *can* do my FP work in user space; I have a shared library
which is used for all access to the driver environment; I can just pass
register sets back and forth between the driver and the library.

I just didn't like the taste of that; the low-level physical driver is the
code which actually needs to manipulate the registers; it seems improper,
somehow, to copy my whole register map into a buffer, pass it up to the
library, let it modify the map and return it to me... and what if I (the
driver) want to revise my registers when I'm *not* being called by a
user-level process??  I can't call the library on my own...

So I have a situation where I have all these registers in this hardware, I'm
supposedly responsible for making everything work properly, but I can't
actually configure things myself - I have to wait for "social services"
(i.e., some user-level process, via my library) to deign to drop by and
think for me...

However, If that's what I have to do, I'll have to live with it...

(Hey, if people can anthropomorphize their car, I can do so with my driver,
eh??)



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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Compiling the kernel
Date: 29 Feb 2000 11:59:34 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, James wrote:
> I need to re-complie my kernel but the make command isn't recognised by 
> bash

... because make(1) is a program that you didn't install.  Go to
wherever you installed your system from, and install the "make"
package.

-- 
Paul Kimoto             <[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