Linux-Development-Sys Digest #798, Volume #6 Tue, 8 Jun 99 21:14:28 EDT
Contents:
Re: glibc 2.0 or glibc 2.1 (Andreas Jaeger)
Re: Questions on Linux Memory Managment (J.H.M. Dassen (Ray))
Re: glibc 2.0 or glibc 2.1 (Allin Cottrell)
Re: glibc 2.0 or glibc 2.1 ("Dan")
LinuxThread and GLIBC2.1 bug (XuYifeng)
Re: select() vs. poll() (=?iso-8859-1?Q?Bj=F8rn?= Reese)
Re: change ip adress in c program (Walt Boring)
Re: gcc: Internal compiler error: program cc1 got fatal signal 11 (Daniel Robert
Franklin)
Questions on Linux Memory Managment (Mikael Bendtsen)
Re: glibc 2.0 or glibc 2.1 (Dr H. T. Leung)
Re: Linux on Palm-PCs (Chris Ho)
Re: Linux development tools - new : download freeware compiler with IDE and
GuiDesigner for Linux & Windows (Martin Maney)
Re: glibc 2.0 or glibc 2.1 (Reinhard Foerster)
Re: pci driver (Danny Sung)
Re: new kernel: LILO "kernel too big" error (Robert Williams)
Re: Configuration Manager for Linux (Jonathan Abbey)
----------------------------------------------------------------------------
From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: glibc 2.0 or glibc 2.1
Date: 08 Jun 1999 21:29:39 +0200
>>>>> Dan writes:
Dan> Reinhard,
Dan> thanks a lot for your answer.
Dan> If I type in what you told me, I recive following answer:
Dan> root@l2:/ > ls -l /lib/libc*
Dan> lrwxrwxrwx 1 root root 13 May 30 19:43 /lib/libc.so.4 ->
Dan> libc.so.4.7.6
Dan> -rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6
Dan> -rwxr-xr-x 1 root root 2475225 Apr 4 16:36 /lib/libc.so.6
Dan> -rwxr-xr-x 1 root root 85427 Apr 4 16:38 /lib/libcrypt.so.1
Dan> what does this tell me ?
That your installation is not as it is done by the glibc developers.
glibc (out of the box;-) installs a link from libc.so.6 to
e.g. libc-2.1.1.so.
There's one easy solution: Just call /lib/libc.so.6 direct (yes,
execute it!). glibc 2.1.1 will report some infos, glibc 2.0.x will
segfault since that's one of its errors.
Another place to check: /usr/include/features.h defines
__GLIBC_MINOR__ which is 1 for glibc 2.1.x and 0 for glibc 2.0.x.
A final check:
strings /lib/libc-2.1.1.so |grep "C Library"
Andreas
--
Andreas Jaeger [EMAIL PROTECTED] [EMAIL PROTECTED]
for pgp-key finger [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Subject: Re: Questions on Linux Memory Managment
Date: 8 Jun 1999 19:11:54 GMT
Mikael Bendtsen <[EMAIL PROTECTED]> wrote:
>We are two computer engineering students writing on a paper concerning
>Memory Managment in Linux. Here are some questions that arised when we
>studied some material written by various people, hope anyone can help.
Quite frankly, your questions look a lot more like questions asked by
instructors in a practical course assignment than ones that come up in
students.
As such, the most useful advice I can give you is to use the power of Linux
by getting the source and studying it for yourself; it's all in there.
I had to do a similar assignment during my studies and found studying the
source code to be a quite enlightening exercising and one that cannot be
replaced by posting the assignment questions on Usenet.
HTH,
Ray
--
Tevens ben ik van mening dat Nederland overdekt dient te worden.
------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: glibc 2.0 or glibc 2.1
Date: Tue, 08 Jun 1999 15:32:15 -0400
Dan wrote:
> root@l2:/ > ls -l /lib/libc*
> lrwxrwxrwx 1 root root 13 May 30 19:43 /lib/libc.so.4 ->
> libc.so.4.7.6
> -rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6
> -rwxr-xr-x 1 root root 2475225 Apr 4 16:36 /lib/libc.so.6
> -rwxr-xr-x 1 root root 85427 Apr 4 16:38 /lib/libcrypt.so.1
>
> what does this tell me ?
That you have a rather weird system! /lib/libc.so.6 ought to be a
symlink to a numbered version of glibc, as below:
ricardo:~# ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 2468260 Dec 31 13:28
/lib/libc-2.0.7.so
lrwxrwxrwx 1 root root 13 Dec 31 13:33
/lib/libc.so.6 -> libc-2.0.7.so*
waverley:~# ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 4127715 May 26 10:56
/lib/libc-2.1.1.so
lrwxrwxrwx 1 root root 13 May 26 08:29
/lib/libc.so.6 -> libc-2.1.1.so
Allin Cottrell.
------------------------------
From: "Dan" <[EMAIL PROTECTED]>
Subject: Re: glibc 2.0 or glibc 2.1
Date: Tue, 8 Jun 1999 18:19:44 +0200
Reinhard,
thanks a lot for your answer.
If I type in what you told me, I recive following answer:
root@l2:/ > ls -l /lib/libc*
lrwxrwxrwx 1 root root 13 May 30 19:43 /lib/libc.so.4 ->
libc.so.4.7.6
-rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6
-rwxr-xr-x 1 root root 2475225 Apr 4 16:36 /lib/libc.so.6
-rwxr-xr-x 1 root root 85427 Apr 4 16:38 /lib/libcrypt.so.1
what does this tell me ?
Thanks
Dan
Reinhard Foerster wrote in message
<[EMAIL PROTECTED]>...
>On Mon, 7 Jun 1999 23:23:50 +0200, "Dan" <[EMAIL PROTECTED]> wrote:
>
>>Hi there,
>>
>>can anyone tell me how I can find out which glibc (2.0 or 2.1) is
installed
>>on a system ?
>
>ls -l /lib/libc*
>
>Reinhard
------------------------------
From: XuYifeng <[EMAIL PROTECTED]>
Subject: LinuxThread and GLIBC2.1 bug
Date: Tue, 08 Jun 1999 20:02:24 +0800
I am using Redhat Linux 6.0. it seems glibc 2.1 and LinuxThread 0.8
have a bug, I recently encountered it:
after called function daemon() to turn program to background service,
and then use pthread_create() to create a thread, the pthread_create()
is always
blocked and never return, normally daemon() will let descriptor 0, 1,
2 point
to /dev/null, I changed these three descriptors to point to a real disk
file, the
problem disappeared!
the scenario does not exist under glibc2.0 and LinuxThread 0.7.
Any help will appreciated,
XuYifeng
------------------------------
From: =?iso-8859-1?Q?Bj=F8rn?= Reese <[EMAIL PROTECTED]>
Subject: Re: select() vs. poll()
Date: Tue, 08 Jun 1999 17:06:17 +0000
"G. Sumner Hayes" wrote:
> Caveat: On Win32 the semantics are different. select()ing on
> things other than network sockets doesn't work, in general.
> WaitForMultipleObjects* and WSAAsyncSelect are preferred.
Yes, along with the other Win32 related problems, such as select()
only being able to handle 64 sockets, and the synchronization bug
which has to be worked around with a Sleep().
------------------------------
From: Walt Boring <[EMAIL PROTECTED]>
Subject: Re: change ip adress in c program
Date: Tue, 08 Jun 1999 16:40:33 -0700
Thierry BUCCO wrote:
> Hi,
>
> is there anybodu wrote function to change ip adress in my c program.
> Or how can i do that ?
>
> Thanks a lot.
>
> Thierry - FRANCE
Get a hold of net-tools source.
http://rpmfind.net/linux/RPM/Networking_Admin.html
Just look thru the ifconfig source. good stuff.
Walt
------------------------------
From: [EMAIL PROTECTED] (Daniel Robert Franklin)
Subject: Re: gcc: Internal compiler error: program cc1 got fatal signal 11
Date: 8 Jun 99 23:41:41 GMT
Nigel Tamplin <[EMAIL PROTECTED]> writes:
>Hi,
>I keep getting the following error when compiling large programs on my
>Red hat 6 intel box.
>gcc: Internal compiler error: program cc1 got fatal signal 11
>I have had the error when compiling postgres-6.4.2 and also
>openssl-0.9.3a, the source code compiles cleanly on my Red Hat 5.2
>machine but not on my Red hat 6.0 machine.
>Any ideas?
Yes. This is a FAQ - in short, your hardware is probably defective. Do
a search for the Sig11 FAQ, that should give you all the information
you need.
- Daniel
--
******************************************************************************
* Daniel Franklin - Postgraduate student in Electrical Engineering
* [EMAIL PROTECTED]
******************************************************************************
------------------------------
Date: Tue, 8 Jun 1999 20:20:37 +0200
From: Mikael Bendtsen <[EMAIL PROTECTED]>
Subject: Questions on Linux Memory Managment
Hi all!
We are two computer engineering students writing on a paper concerning
Memory Managment in Linux. Here are some questions that arised when we
studied some material written by various people, hope anyone can help.
(Excuse us if we have misunderstood some issues completely)
1) How does the three-level page table work? Is it hierarchic in some way?
2) What does the bitmap dealing with free blocks of pages in the free_area
array tell, how many blocks of n pages currently free?
3) How do the memory operations nopage() and swapin() work? When are they
used?
4) How does Linux determine if a page is in the swapfile or in an
executable image?
5) How does the page cache work? Which algorithm is used when a page in
the cache needs to be evicted?
6) How does the single page read-ahead work? Are these pages stored in the
cache or is the page table for the process updated?
7) Regarding the kernel swap daemon, how does Linux decide which initial
values to use on free_pages_high and free_pages_low?
8) When does the kswapd reduce the page and buffer caches instead of
discarding pages? Is the page and buffer cache completely eliminated
when discarding of pages begin or is Linux repeating the three
alternatives used to minimize the number of physical pages used by the
system?
9) Are shared pages never swapped? How does Linux determine if a page is
shared or not?
Thanks in advance,
M & J
Please reply to:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Dr H. T. Leung)
Subject: Re: glibc 2.0 or glibc 2.1
Date: 8 Jun 1999 18:20:46 GMT
The quickest (but not the surest) is just to do "ls /lib" :-). The not-so-quick
but definitely give a good answer is to do
find / -name "*libc*so*"
if you see 2.1.x, then you have 2.1, if you see 2.0.x (mostly 2.0.7), then you
have 2.0; if you see both, you have both.
In article <ePgclvSs#[EMAIL PROTECTED]>, "Dan" <[EMAIL PROTECTED]>
writes:
|> Hi there,
|>
|> can anyone tell me how I can find out which glibc (2.0 or 2.1) is installed
|> on a system ?
|>
|> Thanks a lot
|>
|> Dan
--
--------------------------------------------------
"What you don't care cannot hurt you." Chap. 7a, AMS-NS
------------------------------
From: [EMAIL PROTECTED] (Chris Ho)
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.development.apps
Subject: Re: Linux on Palm-PCs
Date: Tue, 08 Jun 1999 23:58:48 GMT
In article <[EMAIL PROTECTED]>, Christian Kleitsch wrote:
>Hello everybody!
Hello, Chris!
>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)
>If not, I would like to know if there is a way to synchronize
>(appointments and to-do list would be enough ;) such a device with a
>Unix-box.
>From my understanding, the compiled the kernel and got it to run on a
Pilot. Unfortunately, there really is no file system on a Pilot so the
kernel is kind of useless there, as only a memory manager. Unless they
somehow came up with a RAM disk for the Pilots while I was looking the
other way...
- Chris
------------------------------
From: Martin Maney <[EMAIL PROTECTED]>
Subject: Re: Linux development tools - new : download freeware compiler with IDE and
GuiDesigner for Linux & Windows
Date: 8 Jun 1999 22:39:14 GMT
Max Reason <[EMAIL PROTECTED]> wrote:
> Yes, the notes.txt file did slip past me. The XBasic web-page where
> you download XBasic seems pretty clear on review, but you are right
> the old and obsolete notes.txt file did slip by.
Actually, I never got around to downloading it. I was still looking for a
breath of clear, plain description of the package when I found notes.txt. I
don't recall if it actually did much to address what I had hoped to learn
from it - information about what libraries it relied upon, and what versions
it worked with (or was allergic to, as may be). I ran into that description
of "free version" as "useless demoware" and kind of lost interest... and
maybe a piece of my temper as well.
> Yes, the intro page was extracted from a long-ago XBasic flier that
> therefore does has a commercial tone - but is also a useful overview.
I think we'll have to agree to disagree about how helpful it is.
> Nonetheless, I'm trying to be helpful, nothing else, so I have made
> some changes to the web-pages (except the "offensive" overview)
I didn't really find the overview offensive, just mostly useless. Like most
advertising materials. :-(
> to reflect the suggestions made in this newsgroup. I edited the
> erroneous notes.txt and will replace the old one tonight.
I'd suggest (if I haven't already) a simple, clear statement that the "pro"
version is now freely available. ON whatever page you tend to direct folks
to - that was the "overview" page, I think?
> I must admit I don't understand what you mean by that paragraph.
> What do you mean by "free = unqualified". I really don't know what
That was probably a bad choice of phrase.
> you mean by that, but I thought Linux was free BUT qualified - in the
> sense that certain restrictions apply. Also, I somehow suspect
Unqualified "free" ought never to be used anywhere near software these days.
:-( Linux and a large proportion of the software usually used with it -
especially system utilties and basic tools - are "GPL-free", aka "libre" (I
kind of like that - it's short yet distinct, although it's not clear how to
translate it into certain other languages <grin>). What Xbasic appears to
be is "beer free" - no charge for it, but no sources either. This is fine
for games or stand-alone things, but not so good for tools that you would
use to make other programs with: either real open source of some flavor (so
you can fix it or pay someone to fix it if it's a show-stopper) or good
commercial (so you can get the vendor to fix it - this may be more of an
ideal than a reality, alas) terms are better here.
> Linus has not agreed to answer every question everyone wishes
> to ask - so in the sense you seem to mean, Linux is not supported.
No, you've missed the point entirely. Linus doesn't HAVE to answer every
question: we can ask an even more oracular voice, the source code.
Actually, like asking the Greek Oracle, asking the source is not always the
easiest way to get the answer you need in every case. ;-)
> to answer questions, but... Actually, I have not read about how
> the core Linux crew manages Linux, and for that reason I'm quite
> ignorant (meaning "no knowledge from experience") about how
> such management would be organized. That's why I'd prefer
> someone with that knowledge/experience do it right.
The open source approach is more along the lines of making the source
available and seeing if anyone picks it up and does something exciting to
it. Speaking of "scary", huh? <grin> You might want to look over the
licenses - it sounds to me like you would probably prefer something along the
lines of Larry Wall's "artistic license", which retains some control over
what is allowed to be called "Product X" while retaining the key virtues of
open source. www.opensource.org is probably a good starting point - there
are as many definitions of "free" as there are people wanting to call some
piece of software "free", though, so don't take OSI's word as gospel.
Still, on the whole they do a pretty good job of surveying at least most fo
the field. www.fsf.org would be a good counterpoint to OSI's take on the
issues. <evil grin>
> Are you volunteering? :-)
Nope. Huge IDEs aren't my kettle of fish. There are plenty of folks who
have been wishing for something like this (sorry, I can't name any names,
but this comes up all the time in this and other news groups). The purist
approach would be to put the sources up with an appropriate (ie, that you're
comfortable with) "free" license and wait for developments. For a large,
"completed" project like this there may be little visible action for a while
- less obvious rough spots to catch the eye, and a large body of code to
assimilate.
> Scared you, huh?
<smile>
------------------------------
From: [EMAIL PROTECTED] (Reinhard Foerster)
Subject: Re: glibc 2.0 or glibc 2.1
Date: Tue, 08 Jun 1999 20:56:36 GMT
On Tue, 8 Jun 1999 18:19:44 +0200, "Dan" <[EMAIL PROTECTED]> wrote:
>Reinhard,
> thanks a lot for your answer.
>
>If I type in what you told me, I recive following answer:
>
>root@l2:/ > ls -l /lib/libc*
>lrwxrwxrwx 1 root root 13 May 30 19:43 /lib/libc.so.4 ->
>libc.so.4.7.6
>-rwxr-xr-x 1 root root 634880 Apr 29 1996 /lib/libc.so.4.7.6
>-rwxr-xr-x 1 root root 2475225 Apr 4 16:36 /lib/libc.so.6
>-rwxr-xr-x 1 root root 85427 Apr 4 16:38 /lib/libcrypt.so.1
>
>what does this tell me ?
Nothing, sorry. I've expected libc.so.6 is only a link to the real libc
with a version number in the filename like this:
-rw-r--r-- 1 root root 651436 Feb 21 06:37
/lib/libc-2.0.7.so
lrwxrwxrwx 1 root root 13 Apr 11 22:57 /lib/libc.so.6 ->
libc-2.0.7.so
BTW: Keep the libc-4.7.6 on your disk. Sometimes there may be a OLLA
("Oldest Living Libc Award" :-)
Reinhard
------------------------------
From: [EMAIL PROTECTED] (Danny Sung)
Subject: Re: pci driver
Date: Wed, 09 Jun 1999 00:33:17 GMT
Reply-To: [EMAIL PROTECTED]
Hi. I've got similar questions regarding PCI device drivers. From
what I've gathered (and a couple people I talked to), I think that you
only need to do a ioremap() after getting a base address from the
pci_find_device() function call.
ioremap() gives you a pointer, which is a kernel space remapping of
the I/O (bus) address that the base address is. After that, your
kernel driver can simply use that region as a regular pointer.
However, I haven't yet been able to get my driver working at all..
So if you get any further please let me know. :-)
thanks and good luck,
Danny sung
In comp.os.linux.development.system, you wrote:
>Hi all,
>
>Can anyone make some order in memcpy_fromio / vremap / writel / ....
>
>Do i have to vremap/ioremap addresses for a pci driver ? can i only write
>from kernel space to the
>device ?
>If so do i use memcpy_fromio/toio or just memcpy ?
>When do i use writel/writeb/writew ?
>
>Thanks
>
>
--
--
Danny Sung http://www.poboxes.com/dannys
[EMAIL PROTECTED] (PGP public key available)
Key fingerprint = 0080 1BA8 F145 15AE 5ED1 E4ED C422 C77E 70C6 44FE
------------------------------
From: Robert Williams <[EMAIL PROTECTED]>
Subject: Re: new kernel: LILO "kernel too big" error
Date: Tue, 08 Jun 1999 13:19:24 -0600
steve davidson wrote:
> I'm confused.
>
> re-built my RH 6 2.2.5 kernel last night, stripped out all of the junk that
> I don't need, added a couple of things in ( my selections are ok, I've been
> researching this for a while). Compiled OK, no error messages. Followed
> this procedure:
>
> make xconfig (configure...)
> make dep
> make clean
> make zImage
>
> make succeeds, I end up with a 426KB kernel.
>
> Ran Linuxconf, selected the 'install kernel I have compiled' option under
> LILO section, upon 'save config' selection I receive a 'kernel too big'
> error.
>
> OK, so I think that maybe linuxconf is screwy, so I manually edit the
> /etc/linux.conf file, adding the section
>
> image=/boot/newkernelz
> label=new
>
> between the existing image.. section and the other.. section ( I previously
> copied the new zImage to /boot/newkernelz ).
>
> Saved lilo.conf, ran lilo -v: Still get the error "kernel /boot/newkernelz
> is too big".
>
> I don't get it. The kernel which ships with RH 6 (vmlinuz-2.2.5-15) is
> 617,288 bytes, while my new kernel is 475,696 bytes. What gives?
>
> Any suggestions here?
>
> Thanks!
>
> Steve Davidson
Instead of make zImage try make bzImage. It should have worked the way you
set it up, maybe this will help...
--
Robert Williams [EMAIL PROTECTED]
Jarob Consulting [EMAIL PROTECTED]
Provo, Utah
------------------------------
From: [EMAIL PROTECTED] (Jonathan Abbey)
Subject: Re: Configuration Manager for Linux
Date: 8 Jun 1999 14:01:46 -0500
In article <7ja8bq$8rq$[EMAIL PROTECTED]>, Leslie Mikesell <[EMAIL PROTECTED]> wrote:
|
| So far most of these only deal with configuring one program's configuration
| at a time, ignoring the overlapping relationships of machines, users,
| groups, mailing lists, etc. Ganymede (http://www.arlut.utexas.edu/gash2/)
| looks like something a bit smarter about that, but probably overkill
| for small sites. Has anyone with a few hundred users or less tried
| it?
As the author of Ganymede, I really wish I could answer this question.
It seems like only one person out of fifty who download Ganymede ever
send reports about it to me, though, and then only when there are
questions. It seems like things haven't yet reached the critical mass
where lots of people start sending me code and ideas. ;-)
Ganymede can be very complex or it can be very simple, depending on
how much you want to do with it. I'd say that Ganymede would be
worthwhile for anyone with more than a couple dozen users and a dozen
machines, scaling up to maybe five to ten thousand users and five to
ten thousand machines. If your installation is too small to be using
NIS, then you're probably too small to get a lot out of Ganymede.
Ganymede can be used to manage things on a single system, but it's
really not the best for that.. the Ganymede server is at least a 20-30
meg process running continually, which doesn't make sense unless you
are big enough to be dedicating machines to managing your NIS/DNS,
etc.
One page folks might find helpful in thinking about configuration
management is at http://www.hex.net/~cbbrowne/linuxresearch.html.
Lots of links to configuration engines in development there.
If you're interested in looking at ideas for directory-oriented
multiple system management, the paper we wrote for LISA 94 describing
our prototype directory manager (GASH), at
http://www.arlut.utexas.edu/csd/gash_docs/
has a good explanation of how we are managing a network with many
hundreds of users and thousands of systems.
| Les Mikesell
| [EMAIL PROTECTED]
--
===============================================================================
Jonathan Abbey [EMAIL PROTECTED]
Applied Research Laboratories The University of Texas at Austin
===============================================================================
------------------------------
** 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
******************************