Linux-Development-Sys Digest #200, Volume #8 Sun, 8 Oct 00 20:13:16 EDT
Contents:
Re: Red Hat 7.0 and Kernel 2.4.0-test9 question? (Andrea Borgia)
kernel sleep ("Bernhard Drixler")
Re: What is Linux equivalent of Mac Toolbox? (Alan Coopersmith)
talking X11 [Was: new windowing system] (Sven Mascheck)
Re: kernel sleep (Kaz Kylheku)
Re: Kernel 2.4.0-test7, 8, and 9 "Warning pasting would not give a valid
preprocessing token" ? ("Emu")
Re: Kernel 2.4.0-test7, 8, and 9 "Warning pasting would not give a valid
preprocessing token" ? ("Emu")
Re: Kernel 2.4.0-test7, 8, and 9 "Warning pasting would not give a valid
preprocessing token" ? ("Emu")
Re: are threads imcompatible with modules ? (David)
Re: What is Linux equivalent of Mac Toolbox? (jazz)
Re: What is Linux equivalent of Mac Toolbox? (Prasanth A. Kumar)
Most popular Linux development environment(s)? Graphical? (jazz)
----------------------------------------------------------------------------
From: Andrea Borgia <[EMAIL PROTECTED]>
Subject: Re: Red Hat 7.0 and Kernel 2.4.0-test9 question?
Date: Sun, 08 Oct 2000 10:58:58 +0200
On 05 Oct 2000 05:23:42 GMT,
in article <8rh38u$[EMAIL PROTECTED]>,
"E-mu" <[EMAIL PROTECTED]> wrote:
>Has anyone installed this kernel on Red hat version 7.0 yet? Any problems?
>I had a problem with test8, I couldn't get the PASSWORD script after the
>LOGIN script.
I tried test8 and all was fine. I'm not sure I actually understand
what you mean byt "PASSWORD script", here.
>Finally is anyone having problems getting the graphical mode during the
>install of red hat 7.0. I have a Dell Laptop Inspirion 7500, and had no
>problems with Red Hat version 6.2 but with Red Hat 7.0, it will only
>install in TEXT mode :(
Same on my old Toshina Satellite 320CDS; I reported the bug during
beta cycle and it's still being worked on... it is unclear why it is
happening, since the installer, in my case at least, is detecting the
video adapter just fine.
Bye.
--
Alias: [EMAIL PROTECTED]
Ham Radio: IW4EGQ
------------------------------
From: "Bernhard Drixler" <[EMAIL PROTECTED]>
Subject: kernel sleep
Date: Sun, 8 Oct 2000 13:44:27 +0200
Hi all,
surely a newbie question, but still a problem for me at the moment:
I want to write a driver (module) for some hardware. Resetting the hw needs
to apply a pulse (1ms) on som register bit. My idea was : set the bit -
sleep for a while - reset the bit. But how can I put the process to sleep
just for a specific amount of time in kernel mode? Is there any overview of
the exported kernel functions (not just ksyms) ?
I'll highly appreciate any responses.
-Bernhard
------------------------------
From: Alan Coopersmith <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.os.linux.development.apps
Subject: Re: What is Linux equivalent of Mac Toolbox?
Date: 8 Oct 2000 16:36:43 GMT
[EMAIL PROTECTED] (jazz) writes in comp.os.linux.x:
|I want to draw some graphs and show some PICTs in Linux, as I did on
|Macintoshes. What is built in or available to do this kind of graphics?
The Linux/Unix equivalent of the Mac Toolbox are the system libraries.
libc is the basic C library, plus all the system calls, including
functionality similar to what Mac calls the "File Manager" and such.
For graphics, the equivalent of Mac's QuickDraw is the X Window System,
for which you can use the direct interfaces in libX11 or a variety of
higher level toolkits which lie on top of libX11.
--
________________________________________________________________________
Alan Coopersmith [EMAIL PROTECTED]
http://soar.Berkeley.EDU/~alanc/ aka: [EMAIL PROTECTED]
Working for, but definitely not speaking for, Sun Microsystems, Inc.
------------------------------
From: Sven Mascheck <[EMAIL PROTECTED]>
Subject: talking X11 [Was: new windowing system]
Crossposted-To: comp.os.linux.x,comp.windows.x
Date: 8 Oct 2000 19:12:27 +0200
<[EMAIL PROTECTED]> wrote:
> One of my employers, for performance reasons, wrote bytes directly
> to the X/socket connection.
<URL:http://www.ioccc.org/years.html#1991_davidguy>
"The program is a fully-functional X client. It talks directly to
the X server through a socket without using Xlib, Xt or any other
wussie toolkit junk. [...]
The program plays Conway's game of Life in the root window's
background pixmap. It starts by setting the background to random
bits, and then plays Life, with one Life cell for each pixel of the
screen."
f'up comp.windows.x
Sven
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: kernel sleep
Reply-To: [EMAIL PROTECTED]
Date: Sun, 08 Oct 2000 17:50:47 GMT
On Sun, 8 Oct 2000 13:44:27 +0200, Bernhard Drixler <[EMAIL PROTECTED]>
wrote:
>Hi all,
>
>surely a newbie question, but still a problem for me at the moment:
>
>I want to write a driver (module) for some hardware. Resetting the hw needs
>to apply a pulse (1ms) on som register bit. My idea was : set the bit -
>sleep for a while - reset the bit. But how can I put the process to sleep
>just for a specific amount of time in kernel mode? Is there any overview of
>the exported kernel functions (not just ksyms) ?
The sleep duration that you are looking for is 10x shorter than the default
Linux clock tick duration on x86, which is 100 Hz. I think that you may just
have to resort to doing a delay loop using the calibrated delay function.
Doing it with interrupts enabled will still allow the kernel to process
interrupts, so that it, e.g., doesn't drop network or serial data on the floor.
Look at the header <linux/delay.h>
Since this is done very rarely, just to reset the device, it is acceptable.
If there is a big tolerance on the pulse---i.e. it *can* be as long as 10 ms
just so long as it's at least 1ms---then you could use an actual scheduling
delay.
--
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.
------------------------------
From: "Emu" <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4.0-test7, 8, and 9 "Warning pasting would not give a valid
preprocessing token" ?
Date: Sun, 8 Oct 2000 15:37:49 -0500
Here is how I did it sticking with the RPM packages.
1) Uninstalled gcc-2.96-54, gcc-c++-2.96-54, gcc-g77-2.96-54,
gcc-objc-2.96-54, libstdcc++-2.96.54, AND very importantly,
compat-libstdc++-6.2-2.9.09.
Could only find RPM packages 2.95-4 and not 2.95.2, but 2.95-4 works
flawlessly and those pasting warning messages are now gone!!
2) Downloaded and installed everything I unistalled in #1, except for,
compat-libstdc++-6.2-2.9.09, I just re-installed that package form the Red
Hat 7.0 CD.
You may ask why I had to unistall, compat-libstdc++-6.2-2.9.09? Well the
reason was that when I tried to install, libstdcc++-2.96.54, I got a
dependancy error with this message: "File
/usr/lib/libstdc++-2-libc6.1-1-2.90.so from libstdc++-2.95-4 conflics with
the file from package compat-libstdc++-6.2-2.9.09!
So the only way I could install the older version libstdc++-2.95-4, was to
uninstall the compat-libstdc++-6.2-2.9.09, then install,
libstdc++-2.95-4, then re-install, compat-libstdc++-6.2-2.9.09 from the Red
Hat 7.0 CD. This was really tricky for me, cause when I got this error, I
really did not know what to do until I realized there was another package in
there, the compat-libstdc++-6.2-2.9.09 , that had dependencies, remaining in
my system.
I used the Gno rpm utility in gnome and everything went smoothly. If I had
to do all of this with the 2.95.2 tar.gz package, I think it would have been
a total nightmare.
Thanks
"Robert Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Emu wrote:
> >
> > gcc version like you said is 2.96.
> >
> > I ahve Red Hat version 7.0 running now with Kernel 2.4.0-test9 without
any
> > problems just those error messages. I guess if it really bad then the
> > kernel would not boot up or run correctly and everything is :)
> >
> > How do I regress my gcc? and Keep my original? The one you regressed
to
> > where did you get it? Was it RPM package? Was it difficult to install?
> >
> > What is kgcc? How can I use that instead with I do 'make bzImage?
> >
> > Thanks
>
> (My understanding of the situation, just from reading various
> things) since you have RH7.0, it installs (by default? can
> install?) /?path?/kgcc, which calls egcs/gcc 2.71 (?) which has
> been "officially" blessed (?) by various kernel gods, as right
> and proper for compiling chubby, healthy kernels.
>
> You "regress" anyway you can. Hint: search engines are your
> friends.
>
> I suspect that at least a few others will opine that you're fine
> as is.
>
> Bob L.
>
>
> > "Robert Lynch" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > Emu wrote:
> > > >
> > > > During the compilation phase of a kernel 2.4.0-test7, 8, and 9, I
see a
> > lot
> > > > of these messages, more than normal. What does it mean?
> > > >
> > > > "Warning pasting would not give a valid preprocessing token". Each
time
> > I
> > > > see the message it is proceeded by the following,
> > > > bnode.c,inode.c,auth.c,netfilter.c,partition.c,sched.c,proc.c etc
etc.
> > My
> > > > kernel is still functional after install and bootup.
> > > >
> > > > The warning messages repeat several times, then moves on, for
example:
> > > >
> > > > bnode.c:Warning pasting would not give a valid preprocessing token
> > > > bnode.c:Warning pasting would not give a valid preprocessing token
> > > > bnode.c:Warning pasting would not give a valid preprocessing token
> > > > bnode.c:Warning pasting would not give a valid preprocessing token
> > > > bnode.c:Warning pasting would not give a valid preprocessing token
> > > > bnode.c:Warning pasting would not give a valid preprocessing token
> > > >
> > > > netfilter.c:Warning pasting would not give a valid preprocessing
token
> > > > netfilter.c:Warning pasting would not give a valid preprocessing
token
> > > > netfilter.c:Warning pasting would not give a valid preprocessing
token
> > > > netfilter.c:Warning pasting would not give a valid preprocessing
token
> > > > netfilter.c:Warning pasting would not give a valid preprocessing
token
> > > >
> > > > Etc Etc. The number of times varies!
> > > >
> > > > I am ccurrently running Red Hat 7.0
> > > >
> > > > I did notice these messages with Red hat 6.2, but I don't rememebr
if it
> > was
> > > > more frequent in Red Hat 7.0 or Red Hat 6.2.
> > > >
> > > > Anyhow my kernel is completely monolithic except for the Adaptec
AHA1480
> > > > Card Bus Card support. I only had the choice of Module support and
not
> > > > built in driver support into the kernel.
> > > >
> > > > Are these messages bad or what? And what can it do to a perfectly
> > running
> > > > kernel? I have 2.4.0-Test-9, running fine.
> > >
> > > Are you using a very recent gcc to compile these kernels?
> > >
> > > I posted a question similar to yours previously. I got some
> > > answers, but nothing really definitive. In view of the flap
> > > (reported on Slashdot and elsewhere) surrounding RedHat's use of
> > > gcc-2.96 (and also some comments by Linus and others in a kernel
> > > thread), I regressed my compiler to gcc-2.95.2 today, whence
> > > these messages went away. Also, surprisingly (?) the 2.4.0-test9
> > > kernel come out MUCH smaller.
> > >
> > > [I know: I should go to 2.91 or so, but I'm installing RH 7.0
> > > shortly and will use "kgcc" for kernel compiles, which is the
> > > same thing.]
> > >
> > > Bob L.
> > > --
> > > Robert Lynch-Berkeley CA [EMAIL PROTECTED]
> --
> Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: "Emu" <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4.0-test7, 8, and 9 "Warning pasting would not give a valid
preprocessing token" ?
Date: Sun, 8 Oct 2000 15:42:58 -0500
Here is how I did it sticking with the RPM packages.
1) Uninstalled gcc-2.96-54, gcc-c++-2.96-54, gcc-g77-2.96-54,
gcc-objc-2.96-54, libstdcc++-2.96.54, AND very importantly,
compat-libstdc++-6.2-2.9.09.
Could only find RPM packages 2.95-4 and not 2.95.2, but 2.95-4 works
flawlessly and those pasting warning messages are now gone!!
2) Downloaded and installed everything I unistalled in #1, except for,
compat-libstdc++-6.2-2.9.09, I just re-installed that package form the Red
Hat 7.0 CD.
You may ask why I had to unistall, compat-libstdc++-6.2-2.9.09? Well the
reason was that when I tried to install, libstdcc++-2.96.54, I got a
dependancy error with this message: "File
/usr/lib/libstdc++-2-libc6.1-1-2.90.so from libstdc++-2.95-4 conflics with
the file from package compat-libstdc++-6.2-2.9.09!
So the only way I could install the older version libstdc++-2.95-4, was to
uninstall the compat-libstdc++-6.2-2.9.09, then install,
libstdc++-2.95-4, then re-install, compat-libstdc++-6.2-2.9.09 from the Red
Hat 7.0 CD. This was really tricky for me, cause when I got this error, I
really did not know what to do until I realized there was another package in
there, the compat-libstdc++-6.2-2.9.09 , that had dependencies, remaining in
my system.
I used the Gno rpm utility in gnome and everything went smoothly. If I had
to do all of this with the 2.95.2 tar.gz package, I think it would have been
a total nightmare.
Thanks
------------------------------
From: "Emu" <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.4.0-test7, 8, and 9 "Warning pasting would not give a valid
preprocessing token" ?
Date: Sun, 8 Oct 2000 15:45:57 -0500
Sorry I sent that reply twice
------------------------------
From: David <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: are threads imcompatible with modules ?
Date: Mon, 09 Oct 2000 01:09:48 +0200
Philipp Lohmann wrote:
> =
> Hi,
> =
> you are modifying the X queue from two threads simultaneously and there=
by
> mess it up. You have to protect the X queue either by calling
> XInitThreads before calling anything else in Xlib (and before creating
> the first thread) or by using your own mutex to protect any X call.
> =
> Regards, pl
> =
> >>>>>>>>>>>>>>>>>> Urspr=FCngliche Nachricht <<<<<<<<<<<<<<<<<<
> =
> Am 06.10.00, 02:07:19, schrieb David <[EMAIL PROTECTED]> zum Thema a=
re
> threads imcompatible with modules ?:
> =
> > I have 2 files, that I can compile together or separated. The second
> > file creates a thread (to dispatch X-Windows Events), and the first f=
ile
> > call it (for example a function like CreateWindow).
> =
> > The problem is:
> > If I compile together it works fine.
> > If I load second file from first file (dl-opening, so shared library =
is
> > created), I receive XIO: Error ....
> =
> > Any Idea?
> > thanks,
> > DTM
I am going to explain my problem again:
I have to "programs", call it A and B.
=
A is a library, an B is a "driver". A is fixed, while B can change.
For example I want use a B program that uses svgalib in spite of
Xwindows (or DGA).
=
Now think into Xwindows system. When I compile A and B in the same
program, it
works perfectly (a new thread is created and all body is happy). BUT the
problem is when I try to make a module, it is, a shared library. I
(dl)open it and
call exactly the same functions that I call when two programs are linkes
together.
=
What happen? OK, if I use module style my program crash.
=
Any idea?
thanks in advance,
DTM
------------------------------
From: [EMAIL PROTECTED] (jazz)
Crossposted-To: comp.os.linux.x,comp.os.linux.development.apps
Subject: Re: What is Linux equivalent of Mac Toolbox?
Date: Sun, 08 Oct 2000 19:15:40 -0400
In article <8rq7qr$kd9$[EMAIL PROTECTED]>, Alan Coopersmith
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (jazz) writes in comp.os.linux.x:
> |I want to draw some graphs and show some PICTs in Linux, as I did on
> |Macintoshes. What is built in or available to do this kind of graphics?
>
> The Linux/Unix equivalent of the Mac Toolbox are the system libraries.
> libc is the basic C library, plus all the system calls, including
> functionality similar to what Mac calls the "File Manager" and such.
>
> For graphics, the equivalent of Mac's QuickDraw is the X Window System,
> for which you can use the direct interfaces in libX11 or a variety of
> higher level toolkits which lie on top of libX11.
Thanks! Where to I find those higher level toolkits?
Thanks
Jazz
------------------------------
Crossposted-To: comp.os.linux.x,comp.os.linux.development.apps
Subject: Re: What is Linux equivalent of Mac Toolbox?
From: [EMAIL PROTECTED] (Prasanth A. Kumar)
Date: Sun, 08 Oct 2000 23:30:09 GMT
[EMAIL PROTECTED] (jazz) writes:
> In article <8rq7qr$kd9$[EMAIL PROTECTED]>, Alan Coopersmith
> <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] (jazz) writes in comp.os.linux.x:
> > |I want to draw some graphs and show some PICTs in Linux, as I did on
> > |Macintoshes. What is built in or available to do this kind of graphics?
> >
> > The Linux/Unix equivalent of the Mac Toolbox are the system libraries.
> > libc is the basic C library, plus all the system calls, including
> > functionality similar to what Mac calls the "File Manager" and such.
> >
> > For graphics, the equivalent of Mac's QuickDraw is the X Window System,
> > for which you can use the direct interfaces in libX11 or a variety of
> > higher level toolkits which lie on top of libX11.
>
> Thanks! Where to I find those higher level toolkits?
>
> Thanks
> Jazz
The two prominent highet level toolkits for Linux are 'GTK' and
'QT'. Both are included with nearly all Linux distributions.
'QT' a fully C++ based GUI toolkit but there is a restriction that it
is free only if you own resultant product is free or otherwise you
must purchase a commercial license from them (www.trolltech.com). 'QT'
is the base of the K Desktop Environment (www.kde.org).
'GTK' is primarly a C based GUI toolkit but is released under the LGPL
license so you can use it in commercial products without
restrictions. It is used in the Gnome project (www.gnome.org).
Both are good choices so just choose the one you feel comfortable with...
--
Prasanth Kumar
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (jazz)
Crossposted-To: comp.os.linux.development.apps
Subject: Most popular Linux development environment(s)? Graphical?
Date: Sun, 08 Oct 2000 19:27:39 -0400
I'm thinking of switching from mac to Linux. If I did, what programming
setup would I likely find myself using? Gnu? Is there anything with a
graphical interface, esp. for the debugger, as in Codewarrior, where you
see a window containg your code and you can clearly mark breakpoints and
follow the program counter steping through your code? With windows for
variables, stack tracing, etc.?
Thanks
Jazz
------------------------------
** 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
******************************