Linux-Development-Sys Digest #634, Volume #7 Mon, 28 Feb 00 15:13:18 EST
Contents:
Partition sizes ("V.Vijay Kumar")
xterm problem ("V.Vijay Kumar")
problem with mount - Help me please... (Thierry BUCCO)
System fonts etc ("Mark Waller")
Re: Upgrading very old kernal. (Allin Cottrell)
Re: clone() and shared library heap allocations (Kaz Kylheku)
Re: clone threads... (Kaz Kylheku)
Re: xterm problem (Michel TALON)
Re: xterm problem (David T. Blake)
ARGENTINA (Pablo R. Yaggi)
ARGENTINA - Aca esta la pagina (Pablo R. Yaggi)
ide disk, not detected (2.2.6 and 2.2.13) is there a fix ? (Eric Quere)
Linux device driver (Arindam Bhattacharya)
Re: clone() and shared library heap allocations ("Frank V. Castellucci")
Re: 2.2.x SMP and DK440LX issues (jwk)
Re: Linux device driver ("Matthew Baldwin")
telnetd stopped working (Steve Berridge)
Re: clone() and shared library heap allocations (Ulrich Weigand)
Re: Binary compatibility: what kind of crack are they smoking? (JEDIDIAH)
Re: Binary compatibility: what kind of crack are they smoking? (JEDIDIAH)
----------------------------------------------------------------------------
From: "V.Vijay Kumar" <[EMAIL PROTECTED]>
Subject: Partition sizes
Date: Mon, 28 Feb 2000 19:45:42 +0530
I am installing Red Hat Linux 6.1 on an empty 4GB Hard Disk. What should be
the ideal paritition sizes I shd split my disk into?
------------------------------
From: "V.Vijay Kumar" <[EMAIL PROTECTED]>
Subject: xterm problem
Date: Mon, 28 Feb 2000 19:49:00 +0530
A friend of mine had installed Red Hat 6.1 on his system. He configured
XWindows and everything works fine except the xterm window. The background
and foreground colors always remain the same, as a result nothing is visible
on the xterm window . He has a SiS Video card and a Samtron monitor.
------------------------------
From: Thierry BUCCO <[EMAIL PROTECTED]>
Subject: problem with mount - Help me please...
Date: Mon, 28 Feb 2000 06:45:44 -0800
Hi,
I have a little problem :
I have a program which do this :
1- retrieve datas and put it into file into a directory
2- When the directory has a certain size, this one is write into a cdrom
(with cdrecord).
3- Then, i verify the session (the cdrom is not finalised) :
- i mount the cdrom
- i compare the file present in the directory with this one present on
the cdrom, (with md5sum).
- i unmount the cdrom
i go in first step...
With a 2.0.36 kernel it work fine, but now with the new 2.2.13 kernel, i
have this problem.
The first session is OK, but after that one, i have a problem at the time of
verification. : md5sum : no such file or directory.
I guess when the cdrom is mounted twice, the second session is not read into
cd, and i see only the first session. Because after errors, i have manually
mounted the cd and i have seen the last session, so i have unmounted the
cdrom, ejected it, an mounted it again, and here i have seen my good files.
What is the problem...
Thanks a lot for your help.
Thierry - FRANCE
------------------------------
From: "Mark Waller" <[EMAIL PROTECTED]>
Subject: System fonts etc
Date: Mon, 28 Feb 2000 15:13:55 -0000
In KDE/GNOME how do I get hold of information like what the current system
menu font is and what the window background color is supposed to be.
All these things can be altered and KDE apps track them, I want to make my
app track them to.
Mark.
------------------------------
From: Allin Cottrell <[EMAIL PROTECTED]>
Subject: Re: Upgrading very old kernal.
Date: Fri, 25 Feb 2000 21:40:08 -0500
Colin wrote:
>
> I have a computer running Caldera Lite v1.0
> with a Red Hat kernal v1.2.13. I got this off a cd from a book, and i know
> that the CD is Copyright 1996. I am wondering if There is somewhere where
> I can bring this more up to date, and if there is, how much space will it
> take?
Forget it, unless you are willing to read a lot of HOWTOs and files
under /usr/src/linux/Documentation. New kernels need a _lot_ of
other things to be updated before they will work. Either treat it
as a learning experience (good idea if you have the time) or scratch
the old system altogether and install a new one.
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: clone() and shared library heap allocations
Reply-To: [EMAIL PROTECTED]
Date: Mon, 28 Feb 2000 16:34:57 GMT
On Sun, 27 Feb 2000 18:15:27 -0500, Frank V. Castellucci
<[EMAIL PROTECTED]> wrote:
>
>// --------- in shared library header
>
>class B
>{
>public:
>
> B( void );
>
>
>
> void *method( int a );
>
>private:
>
> void *buffer;
>
>};
>
>// -------- in shared library source
>
>B::B( void )
>{
> buffer = new char[200];
>}
>
>void *B::method( int a )
>{
> return &buffer[a];
>}
Oops: pointer arithmetic on void *. That's a GNU extension.
>// ------- in executable source
>
> B aObject;
>
>int main( void )
>{
> clone(threadFunc,,CLONE_VM | ...,(void *)&aObject);
>
>}
>
>int threadFunc( void *arg )
>{
> B *aObjectInstance = (B *)arg;
>
> printf("Child address from B::method =
>%x\n",aObjectInstance->method(0));
>};
The correct way to printf a void * value is to use the %p conversion specifier.
The %x conversion specifier calls for an unsigned int.
>// -------- output
>
>
>Child address from B::method = (nil)
How can %x result in the text (nil)? You did not post exactly the same code
that you are actually running.
>
>All code (library and executable) are compiled with -D_REENTRANT. I
That doesn't mean anything. _REENTRANT is a POSIX thing; but you aren't using
POSIX threading. (Can you reproduce whatever problem you are having using
pthread_create instead of clone?)
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: clone threads...
Reply-To: [EMAIL PROTECTED]
Date: Mon, 28 Feb 2000 16:36:04 GMT
On 28 Feb 2000 01:10:46 GMT, Vitaliy Rabotnik <[EMAIL PROTECTED]> wrote:
>
>Could anyone show an example of use of the clone system call?
>
>I need to implement the "dinning philosophers problem" using threads in
>Linux OS.
>I was told to use clone method to create threads, but I need to see an
>example how it is done...
Use pthread_create(), which calls clone() internally.
------------------------------
From: Michel TALON <[EMAIL PROTECTED]>
Subject: Re: xterm problem
Date: Mon, 28 Feb 2000 17:55:34 +0100
V.Vijay Kumar <[EMAIL PROTECTED]> wrote:
: A friend of mine had installed Red Hat 6.1 on his system. He configured
: XWindows and everything works fine except the xterm window. The background
: and foreground colors always remain the same, as a result nothing is visible
: on the xterm window . He has a SiS Video card and a Samtron monitor.
I have had a similar experience recently with a SiS card. The solution has
been to upgrade the SVGA server to XFree 3.3.6 which now works.
--
Michel TALON
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: xterm problem
Date: 28 Feb 2000 15:36:25 GMT
Reply-To: [EMAIL PROTECTED]
V.Vijay Kumar <[EMAIL PROTECTED]> wrote:
> A friend of mine had installed Red Hat 6.1 on his system. He
> configured XWindows and everything works fine except the xterm
> window. The background and foreground colors always remain the
> same, as a result nothing is visible on the xterm window . He has
> a SiS Video card and a Samtron monitor.
Please post setup questions to
comp.os.linux.setup
And see `man Xdefaults`
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: Pablo R. Yaggi <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,ar.linux
Subject: ARGENTINA
Date: Mon, 28 Feb 2000 14:02:17 -0300
Por favor chequeen este censo, es muy interesante.
------------------------------
From: Pablo R. Yaggi <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,ar.linux
Subject: ARGENTINA - Aca esta la pagina
Date: Mon, 28 Feb 2000 14:04:53 -0300
Por favor chequeen esta direccion, es muy interesante para todos los usuarios
de linux:
http://www.aulamagna.com.ar
------------------------------
From: Eric Quere <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.help,comp.os.linux.misc
Subject: ide disk, not detected (2.2.6 and 2.2.13) is there a fix ?
Date: Mon, 28 Feb 2000 18:01:57 GMT
Hello,
I want to share my second hard disk between Linux and BSD.
Unfortunately I've a small (at least, I hope) problem: the second
hard disk is not detected when the kernel boot.
I have seen :
on RH 6.0 (linux 2.2.6) and SlackWare 7.0 (linux 2.2.13)
hda: IBM-DJNA-351520 , 14664MB w/430kb , CHS=...
hdb: CD-ROM CDU4011, ATAPI CDROM drive
hdc: CR-4802TE, ATAPI CDROM drive
ide0 : BM-DMA at 0xf000-0xf007 BIOS SETTING hda=DMA hdb=DMA
ide1 : BM-DMA at 0xf008-0xf00F BIOS SETTING hdc=DMA hdd=DMA
In the bios a set every hard disk on LBA not CHS
If it can help, I put what OpenBSD's Kernel detect :
(on OpenBSD 2.4 2.5 2.6)
wd0 at wdc0 drive 0: <IBM-DJNA-351520>
wd0: 14664MB , 16383 cyl, 16 head , 63 sec , 512 bytes/sec ...
wd0: using 16-sector 16-bit pio transfers, lba adressing (430 Kb cache)
and
wd1 at wdc1 drive 1: <WDC WD102AA>
wd1: 9787MB , 16383 cyl, 16 head , 63 sec , 512 bytes/sec ...
wd1: using 16-sector 16-bit pio transfers, lba adressing (2048 Kb cache)
My mother board is an Abit BH6
I hope someone got a solution.
Thank you by advance.
------------------------------
From: Arindam Bhattacharya <[EMAIL PROTECTED]>
Subject: Linux device driver
Date: Mon, 28 Feb 2000 13:02:12 -0600
Hi,
I am interested in OS internals and would like to look into
device driver development. Please let me know where to start.
regards
Arindam
------------------------------
Date: Mon, 28 Feb 2000 14:03:54 -0500
From: "Frank V. Castellucci" <[EMAIL PROTECTED]>
Subject: Re: clone() and shared library heap allocations
Kaz Kylheku wrote:
[snip]
>
> Oops: pointer arithmetic on void *. That's a GNU extension.
noted
> >// -------- output
> >
> >
> >Child address from B::method = (nil)
>
> How can %x result in the text (nil)? You did not post exactly the same code
> that you are actually running.
No, it is rather involved. BUT, I even added a debug string in the method that is
being called in the real code, and it is never output! This makes me think that the
rtl heaps between shared libs, and multiple threads has some kind of quirk. If you
need a more detailed code example, I can post it.
>
> >
> >All code (library and executable) are compiled with -D_REENTRANT. I
>
> That doesn't mean anything. _REENTRANT is a POSIX thing; but you aren't using
> POSIX threading. (Can you reproduce whatever problem you are having using
> pthread_create instead of clone?)
I was grasping at straws, but I had also read in a message that it insures
re-entrant rtl calls are made instead of macros.
Frank
------------------------------
From: [EMAIL PROTECTED] (jwk)
Crossposted-To: comp.os.linux.hardware
Subject: Re: 2.2.x SMP and DK440LX issues
Date: 28 Feb 2000 19:02:47 GMT
Reply-To: [EMAIL PROTECTED]
On 28 Feb 2000 08:03:06 GMT, Dmitri A. Sergatskov
<[EMAIL PROTECTED]> wrote:
>On 26 Feb 2000 08:10:38 GMT, jwk <[EMAIL PROTECTED]> wrote:
>>On Sat, 26 Feb 2000 00:42:23 -0800, Robert Redelmeier
>><[EMAIL PROTECTED]> wrote:
>>>Dmitri A. Sergatskov wrote:
>>>> Alan Cox thinks that I have a problem with scheduling and the task get
>>>> (excessively) bounced between two CPUs. So, I guess, the system time
>>>> does come from scheduler.
>>>
>>>Why? IIRC, CPU task migration is inhibited by a fairly heavy penalty
>>>in the scheduler. If you run two copies of the task, do you still
>>>see the same system overhead?
>>>
>>There has recently been discussion on the kernel mailing list that this
>>penalty is in fact not severe enough. This has been corrected in the
>>last 2.3.4x kernels, IIRC.
>>
>>Jurriaan
>>
>
>I tried to increase PROC_CHANGE_PENALTY in include/asm-i386/smp.h
>from 15 to 45 (2.2.15 rh6.2b kernel) w/o noticeable difference.
>
>
The discussion on lkml focussed on arch/i386/smp.c: cacheflush_time,
which was much too low.
Greetings,
jurriaan
--
And you have the right to free speech, as long as you're not dumb
enough, to actually try it...
The Clash - Know Your Rights
Linux 2.2.14 SMP 1 min 2 users load av: 0.85 0.33 0.12
------------------------------
From: "Matthew Baldwin" <[EMAIL PROTECTED]>
Subject: Re: Linux device driver
Date: Mon, 28 Feb 2000 19:17:32 GMT
> Hi,
> I am interested in OS internals and would like to look into
> device driver development. Please let me know where to start.
>
> regards
> Arindam
There's a good book which I have used called Linux Device Drivers published
by O'Reilly.
--
Matthew
[EMAIL PROTECTED]
www.cs.bris.ac.uk/~mb8094/
------------------------------
From: Steve Berridge <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.best
Subject: telnetd stopped working
Date: Mon, 28 Feb 2000 14:28:18 -0500
Hello group -
I am running RH 6 on a Dell server and suddenly when I try to telnet to
the machine I get an error message saying
"telnetd: /bin/login: No such file or directory "
I have uninstalled telnet and installed a newer version from RH
(telnet-0.10-29)
Does anyone know what causes this and what the fix is?
Your help is greatly appreciated.
A direct email reply would be most helpful. Thanks.
[EMAIL PROTECTED]
--
Steve Berridge
University of Tennessee
Department of Physics
401 Nielsen Physics Bldg
Knoxville TN 37996-1200
Phone 865/974-7819 fax x9682
------------------------------
From: [EMAIL PROTECTED] (Ulrich Weigand)
Subject: Re: clone() and shared library heap allocations
Date: 28 Feb 2000 20:30:31 +0100
"Frank V. Castellucci" <[EMAIL PROTECTED]> writes:
>No, it is rather involved. BUT, I even added a debug string in the method that is
>being called in the real code, and it is never output! This makes me think that the
>rtl heaps between shared libs, and multiple threads has some kind of quirk. If you
>need a more detailed code example, I can post it.
This does *not* work. If you use clone() directly, libc is not aware
that multiple threads are running, and does not protect against
re-entrancy. Note that even if you compile with -D_REENTRANT,
this is still true, because in this case, libc tries to protect its
critical sections with pthreads synchronization mechanisms; but as
you don't link with libpthread, those routines are not present, and
thus the synchronization calls are silently omitted.
You have two options: Either, you do it the 'intended' way and use
pthreads, i.e. use pthread_create() to create your threads, and
compile/link everything with -pthread, or else you do it the hard
way and use clone() directly, in which case you have to implement
your own synchronization mechanisms and make sure that libc is never
entered by two threads at the same time.
--
Ulrich Weigand,
IMMD 1, Universitaet Erlangen-Nuernberg,
Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-27688
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: Mon, 28 Feb 2000 19:46:11 GMT
On Fri, 25 Feb 2000 16:12:55 -0500, Adam Ierymenko <[EMAIL PROTECTED]> wrote:
>JEDIDIAH wrote:
>
>> >If we want to keep the choice, we'd better create a well defined ABI
>> >yesterday!
>>
>> Well, if you avoid C++, that's not really a problem.
>>
>> This issue is more a 'Why not C++' thing than a 'Why not Linux'.
>
>Yeah, lets go back to the 80s! Lets avoid object oriented
>programming, GUIs, and common installers! Terminals and
OOP, GUIs and common installers are all quite achievable
WITHOUT C++. This just happens to be a particular language
bias of yours. Infact, all of those things should be
accessable in any reasonably architected system in the
language of your choice and dealing with C++ should never
be an issue.
If you 'need' C++ it's your view of system design that
is fundementally out of date.
>C all the way! Where's my Tears for Fears CD?
>
>Not that I have anything against plain C... Plain C is better
>for some tasks like small utilities and small, highly efficient
>servers. But for things like GUI and windowing environments
>or any other code that has a lot of state and hierarchy, C++ is
>the way to go.
Funny. Those things all took off quite successfuly long before
this current C++ hype. Your perception that C++ is required
for them is quite artificial.
>
>Notice how KDE, developed in C++, is many times more
>stable than Gnome which is developed in C (even though it
That's also not the only way in which they differ.
So, your comparison is not quite as obvious as you
make it out to be.
>uses an 'object oriented model' in C). Not that I want to
>start a Gnome/KDE holy war, but I think that KDE being
>written in a real object oriented language has something
>to do with it's stability and rapid development.
>
>The solution is not ludditism but rather making things work.
>I think the best solution for C++ would be to statically link
>the C++ libraries.
You're accusing me of being a luddite and you want to
start statically linking libraries? You you be any more
absurd?
--
|||
Resistance is not futile. / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.setup
Subject: Re: Binary compatibility: what kind of crack are they smoking?
Date: Mon, 28 Feb 2000 19:49:47 GMT
On Sat, 26 Feb 2000 10:12:01 +0100, Mario Klebsch <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (JEDIDIAH) writes:
>
>>On Fri, 25 Feb 2000 18:34:33 +0100, Mario Klebsch <[EMAIL PROTECTED]> wrote:
>>>Albert Ulmer <[EMAIL PROTECTED]> writes:
>>>
>>>>Nonsense, they all cater the diverse needs of various users. In my view
>>>>that's the main point about the whole open source movement: CHOICE! It
>>>>is good to be different!
>>>
>>>The absence of the ABI destroys the choice. If you are not running
>>>RedHat or SUSE Linux, you really are in trouble, today. However, the
>>>degree of trouble varies from distribution to distribution.
>
>> No, you just need a package made for your particular iteration
>> assuming that you are unwilling to build your own software or
>> your distributor is incapable of doing it for you.
>
>But what do I do, when no package is available for the CHOICE I made?
>Bang, no CHOICE!
Then build them yourself and quit being an insufferable
whining mooch out only for himself and only willing to
come along for the 'free ride'.
Most binary packages for applications don't tend to get
their through some form of magic you know.
[deletia]
--
|||
Resistance is not futile. / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
** 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
******************************