Linux-Development-Sys Digest #68, Volume #7 Wed, 18 Aug 99 18:14:26 EDT
Contents:
Re: Mice and Computer Switch? (Brent R Brian)
Re: Mice and Computer Switch? (Brent R Brian)
the newaliases-procedure in a sandbox (svendi2)
Setting LD_LIBRARY_PATH from makefile (W. Tucker)
Re: Why so inefficient source RPM's ?? (Bill Anderson)
Re: Setting LD_LIBRARY_PATH from makefile (David T. Blake)
Re: GUI apps core dumping on printf's (David T. Blake)
Re: KDE for Redhat 6.0 - problems installing ([EMAIL PROTECTED])
Re: More kind words from M$. (Brett Hall)
Can I compile the kernel using a cc other than gcc?
Re: How do you revert from Afterstep to KDE? (Xiaozhou Qiu)
Re: threads (Hee-Chul Yun)
Re: Printing in Linux (Gordon Haverland)
Re: most efficient way to zero out a partition? ("Ted Pavlic")
----------------------------------------------------------------------------
From: Brent R Brian <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Mice and Computer Switch?
Date: Wed, 18 Aug 1999 15:00:51 -0400
Jason wrote:
>
> Hi,
> I was wondering if anyone has run into the following problem:
>
> I have a bunch of Linux boxes all connected to a Belkin Omni View Switch (An
> electronic switch for Mouse, Keyboard, and Monitor). The problem I'm having
> is when I leave one of my Linux boxes running X and I switch to another
> machine and then back to the first one I get nothing but erratic mouse
> movement in X on that box. I thought at first that it might be an X problem
> but I also can reproduce the problem using GPM. I then thought that I was
> dealing with a hardware problem, but the catch is that Windoze NT has the
> EXACT same problem until Service Pack 3 is installed. Once that Service
> Pack is installed I can switch to my hearts content and don't have a
> problem. I have looked on the web for HOW-TO's, FAQs, and searched the
> online support databases for Linux and haven't found anything that comes
> close to my problem. So I'm hoping that someone else has run into this and
> can tell me where to turn or how to fix it. The vitals are as follows:
I had the same problem under RH 5.0, the move to RH 5.2 fixed it, I also
changed mice from an OOOOOLLLLLLDDDDD MS-MOUSE to an AcerOpen Mouse
($9). All serial mice involved.
To fix the problem, I would move the mouse cursor on the CONSOLE before
I went back to X .... that worked 99% of the time and allowed me to
switch back and forth. The upgrade to RH 5.2 fixed it for good.
Brent
>
> RedHat 6.0 (DEFAULT LOAD, no upgrades of any kind)
> MS Intellimouse PRO (PS/2)
> Belkin Omni View (4 Port PS/2 Switch)
>
> I would love to be able leave X running all the time, but because of this
> problem I have to exit X, kill GPM, and then restart both to get the mouse
> working again. I also noticed that the XF86Setup program doesn't seem to
> like my mouse at all, as I am unable to get the mouse to function properly
> at all in that program.
>
> Any ideas?
>
> Jason
------------------------------
From: Brent R Brian <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Mice and Computer Switch?
Date: Wed, 18 Aug 1999 15:02:21 -0400
I had the same problem under RH 5.0, the move to RH 5.2 fixed it, I also
changed mice from an OOOOOLLLLLLDDDDD MS-MOUSE to an AcerOpen Mouse
($9). All serial mice involved.
To fix the problem, I would move the mouse cursor on the CONSOLE before
I went back to X .... that worked 99% of the time and allowed me to
switch back and forth. The upgrade to RH 5.2 fixed it for good.
Brent
Jason wrote:
>
> Hi,
> I was wondering if anyone has run into the following problem:
>
> I have a bunch of Linux boxes all connected to a Belkin Omni View Switch (An
> electronic switch for Mouse, Keyboard, and Monitor). The problem I'm having
> is when I leave one of my Linux boxes running X and I switch to another
> machine and then back to the first one I get nothing but erratic mouse
> movement in X on that box. I thought at first that it might be an X problem
> but I also can reproduce the problem using GPM. I then thought that I was
> dealing with a hardware problem, but the catch is that Windoze NT has the
> EXACT same problem until Service Pack 3 is installed. Once that Service
> Pack is installed I can switch to my hearts content and don't have a
> problem. I have looked on the web for HOW-TO's, FAQs, and searched the
> online support databases for Linux and haven't found anything that comes
> close to my problem. So I'm hoping that someone else has run into this and
> can tell me where to turn or how to fix it. The vitals are as follows:
>
> RedHat 6.0 (DEFAULT LOAD, no upgrades of any kind)
> MS Intellimouse PRO (PS/2)
> Belkin Omni View (4 Port PS/2 Switch)
>
> I would love to be able leave X running all the time, but because of this
> problem I have to exit X, kill GPM, and then restart both to get the mouse
> working again. I also noticed that the XF86Setup program doesn't seem to
> like my mouse at all, as I am unable to get the mouse to function properly
> at all in that program.
>
> Any ideas?
>
> Jason
------------------------------
From: svendi2 <[EMAIL PROTECTED]>
Subject: the newaliases-procedure in a sandbox
Date: Wed, 18 Aug 1999 20:54:45 +0200
Hi folks,
after editing the 'aliases' I startet 'newaliases' to generate a new
'..db'.
...hanging!
I controlled the file for bad circumstances like '@' or other in it.
No result.
Any idea, knowledge or gun for this problem?
Thanks for reading - answering.
OS
Olav Svendi
living in Freilassing near Salisbury
(I'm really not everybody!"JEDERMANN")
------------------------------
From: [EMAIL PROTECTED] (W. Tucker)
Subject: Setting LD_LIBRARY_PATH from makefile
Date: 18 Aug 1999 17:21:38 GMT
I am trying to build a shared library using the commands described in
the helpful GCC-HOWTO file. When I execute these commands from the
command line, everything works fine. But when I include them inside
a makefile, the LD_LIBRARY_PATH does not get set properly. The exact
command I am using inside the makefile is:
LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH
>From the make info document, I understand that I must replace the
single $ with $$. Presumably, some additional quotes or backslashes
are required. Can anyone tell me what changes I need to make? Any
help or advice is greatly appreciated.
Thank you, Wendy Tucker / Symmetric Research
------------------------------
From: Bill Anderson <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc,linux.redhat.rpm
Subject: Re: Why so inefficient source RPM's ??
Date: Wed, 18 Aug 1999 14:08:23 -0600
Johan Kullstam wrote:
>
> [EMAIL PROTECTED] (Suchandra Thapa) writes:
>
> > Peter Mutsaers <[EMAIL PROTECTED]> wrote:
> > >With source RPM's, it seems you have to re-download the whole thing
> > >(sometimes huge RPM's such as gcc) for every minor tweak.
> > >
> > >Am I missing something? Is there a place where Redhat (or contrib)
> > >source RPM's are located in unpacked form so that I can update without
> > >downloading the whole original source over and over again?
When you download and install foo-1.0.i386.rpm, you are not installing
source (unless the builder totally messed up :).
When foo-1.1 comes out, and you get and install foo-1-1.i386.rpm, again,
no source is downloaded, just whatever is needed to run soo (along with
documentation usually).
> >
> > If you do a rpm -Uvh or rpm -ivh to the source rpm then you
> > should get the tar.gz'ed source in the /usr/src/redhat/SOURCE directory
> > and the spec in /usr/src/redhat/SPEC directory.
>
> this presupposes that you already have the old source rpm. if you do
> not, you have to 1) download the new source 2) download the old
> src-rpm. note that step 2) contains the old sources which are 1)
> superceded by the new source and hence superflous and 2) often large.
If the builder distributes patches, you only need to download the
original src.rpm, and apply patches.
Either way, if you do not have the source, you either download a binary,
or you download the source.
As seen below, this is precisely what the previous poster indicated.
>
> > Just download the patch
> > and place it in the SOURCE directory and add the proper lines to the spec
> > files (Patch[n]: patch.tar.gz where n is some integer at the top of the
> > spec file and a corresponding %patch[n] -your_options_to_patch before the
> > %build). Then after a rpm -bb your.spec or rpm -ba your.spec the binary
> > rpm should appear in /usr/src/redhat/RPM hierarchy and the source rpm in
> > /usr/src/redhat/SRPMS.
>
> sometimes hacking the spec file is a lot of trouble. i spent a few
> hours hacking the egcs-1.1.2 rpm-spec file to make it do gcc-2.95.
>
> really, it'd be very nice to have no-source rpms with just the spec
> file and patches.
Complain to the maintainer of the app.
RPM is fully capable of these.
It is up to whomever maintains the rpms (not always the same as whomever
maintains the app) to distribute these.
--
Bill Anderson Linux/Unix Administrator, Security
Analyst
ESBU (ARC) [EMAIL PROTECTED]
My opinions are just that; _my_ opinions.
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: Setting LD_LIBRARY_PATH from makefile
Date: 18 Aug 1999 19:41:04 GMT
Reply-To: [EMAIL PROTECTED]
W. Tucker <[EMAIL PROTECTED]> wrote:
> I am trying to build a shared library using the commands described in
> the helpful GCC-HOWTO file. When I execute these commands from the
> command line, everything works fine. But when I include them inside
> a makefile, the LD_LIBRARY_PATH does not get set properly. The exact
> command I am using inside the makefile is:
>
> LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH
>
Try
export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
OR
LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} ; export $LD_LIBRARY_PATH
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Crossposted-To: comp.windows.x.kde,linux.dev.c-programming,comp.os.linux.x
Subject: Re: GUI apps core dumping on printf's
Date: 18 Aug 1999 19:38:15 GMT
Reply-To: [EMAIL PROTECTED]
Dimi Shahbaz <[EMAIL PROTECTED]> wrote:
> Hello,
> When developing GUI apps (using KDE &qt) I like to put printf's and
> cout's in the code for debugging purposes. This use to work fine, and I
> saw the printf's in the app's parent terminal. Now, however, the GUI
> program core dumps if it printf's more than 1 newline to the parent
> terminal. Ie, if I printf("debug message\n something else\n"); I see
> the "debug message" printed ok, but the second line doesn't show up,
> and the program seg faults.
...
Have you checked the terminal settings ?? Is is configured to
accept a newline as a carriage return ??
It might be wise to redirect stdout to a log file instead,
or to do some checking on stdout before sending text to it.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.networking,redhat.servers.general
Subject: Re: KDE for Redhat 6.0 - problems installing
Date: Wed, 18 Aug 1999 19:52:46 GMT
Isn't kde 1.1.1pre2 a pre-release of 1.1.1? That
would make 1.1.1 newer than 1.1.1pre2. This is
also why it won't install: rpm only installs
newer packages by default.
If you really want to install 1.1.1pre2, you can
try the following:
rpm -Uvh --force <package>
but I wouldn't recommend it.
-Scott
In article <7peh4f$pl$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I have all those files on the CD for 6.0
> problem is, I chose to upgrade this great
desktop that my wife is very
> familiar with now when I upgraded the system.
>
> Now, kde doesn't work.
> I can't install the old version cuz it won't
install on 6.0 (old meaning
> 1.1.1). I can't install the new version (being
1.1.1pre2) cuz it says
> that kde is already installed.
>
> So, what to do now?
> I tried a forced install with rpm, didn't work.
> I did delete the old /opt/kde dir. too, didn't
work. (what's with
> installing the 1.1.1pre2 in /usr/ where it says
it wants to go?!). :-)
>
> Thanks.
> CMR
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Brett Hall <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: More kind words from M$.
Date: Wed, 18 Aug 1999 20:49:13 +0000
Mindspring News wrote:
> Charles Sullivan wrote in message <7o8bp9$n9g$[EMAIL PROTECTED]>...
> >While waiting to be selected for jury duty I found a copy
> >of the "Microsoft Internet Developer" magazine inexplicably
> >included in the stack of mostly ladies magazines in the
> >waiting room. This is the August 1999 issue.
> >
> >On Page 6, "Editor's Notes", is found the following:
> >
> > "What starts off hot, gets unpleasantly sticky after
> > awhile, starts to stink like a minty goat soon after
> > that, and ends up making you wish you never experienced
> > it? No, we're not talking about the experience of
> > getting Linux actually working on your machine. It's
> > summer in New York City! ...".
> >
>
> He's just an AOL employee posing as a microsoft developer to further AOL's
> insidious purposes. He used the words "unpleasantly" and "experienced". A
> real microsoft programmer can't use words more than 8 letters in length ;)
Well as long as you don't count all the gobbledy-gook the prepend to every
word to tell you what kind of word it actually is ;)
-brett
------------------------------
From: <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.portable
Subject: Can I compile the kernel using a cc other than gcc?
Date: Wed, 18 Aug 1999 20:30:51 GMT
I just started working on a LinuxCE project. At first I need to choose a
compiler, and I do not want to change any architecture-independent parts
in the kernel source. My question is, do I have to use gcc to compile
the kernel? Could other compilers work? Thanks in advance.
================== Posted via CNET Linux Help ==================
http://www.searchlinux.com
------------------------------
From: Xiaozhou Qiu <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.alpha,comp.os.linux.development.apps
Subject: Re: How do you revert from Afterstep to KDE?
Date: Wed, 18 Aug 1999 14:18:34 -0400
Modify /etc/X11/xinit/xinitrc
Xiaozhou Qiu
Linux Consortium
Interoperability Lab
UNH
Mal wrote:
> How do you revert from Afterstep to KDE? I initially had KDE running on
> RedHat6, however i swithed to Afterstep. How does one revert back to
> KDE. I have tried a switch too, but for some reason there is no option to
> go back to KDE.
>
> ------------------ Posted via CNET Linux Help ------------------
> http://www.searchlinux.com
------------------------------
From: Hee-Chul Yun <[EMAIL PROTECTED]>
Subject: Re: threads
Date: 18 Aug 1999 17:41:12 GMT
> I don't know how this works on Linux, but on Windows, switching threads
> requires the CPU registers to be saved and reloaded. A process switch
> requires the memory management unit to be reconfigured as well. As far as
> my understanding of the hardware goes, Linux must be similar. Even if
> process context switches are cheap, they can't be as cheap as thread context
> switches, unless Threads are poorly implemented.
> This points out another weakness in Windows. Of the 4G address space for
> each process the upper 2G is shared by all applications. An easy way to use
> shared libraries, and inter-process communications, but a way for bugs in
> one process to affect another.
You're a little wrong. On win95/98, shared area where process can write is
80000000 ~ C0000000 (only 1Gbyte). and rest 1G is not writable by user
process because it's kernel area.
And for Windows NT. there's no shared area like win95/98. lower 2G is also
for user process but upper 2G are all kernel space. It's more like that of
linux's address space layout. (in linux lower 3G is for user process and
upper 1G is for kernel).
> Looks like time for me to brush up on my Linux knowledge, it must be over 10
> years since I read Bach. When I was using Linux 3-4 years ago I spent all
> my time trying to get some decent graphics out of XForms, and didn't have
> time to think about system level stuff.
> Bill
> --
> http://www.icrossroads.com/~spider
--
Hee-Chul, Yun e-mail: [EMAIL PROTECTED]
KAIST CS Dept, CA Lab. Phone : 5552(Lab), 017-755-9413
------------------------------
From: Gordon Haverland <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Printing in Linux
Date: Wed, 18 Aug 1999 05:59:51 -0600
Norm Dresner wrote:
> Chris <[EMAIL PROTECTED]> wrote in article
> <[EMAIL PROTECTED]>...
> > On 16 Aug 1999 21:02:04 GMT, "Norm Dresner" <[EMAIL PROTECTED]>
> wrote
> > in comp.os.linux.development.apps:
> >
> > >I need to write a c-program to print to the "default" printer which is
> >
> > Ignore the hardware-- you'll just get yourself into trouble. The system
> > has a print queue that will manage the printing for you. Just open a
> pipe
> > to the lp program and dump everything there.
> [SNIP]
>
> Yes, on a normal, multi-user system, you'll all right, no program should
> write directly to the printer. But (and I suppose I should have made this
> clear), this isn't a normal application, more like an embedded computer
> that happens to be running linux.
>
> So, is there an answer to the question of how I can tell if there's a
> default printer installed?
My guess, you'll have to open possibly all the /dev/lp*
devices,
and look to see if a printer is actually present on any of
them by twiddling the hardware control lines. Just knowing
which device is connected to the printer probably isn't
going
to be enough in your case, you need to know the printer will
actually respond to being sent data. I've done this on a
Digital
I/O card (which can drive a printer) under QNX, but it was a
while
ago.
Gordon Haverland
#include <disclaimer.h>
------------------------------
From: "Ted Pavlic" <[EMAIL PROTECTED]>
Subject: Re: most efficient way to zero out a partition?
Date: Wed, 18 Aug 1999 17:15:52 -0400
I bet by the time you sent this post, waited for a response, got one that
suited you, and implemented it, you could have already zeroed the drive out
with /dev/zero. ;)
1 GB of zeroing shouldn't take TOO long... Just start it on the way away
from your workstation for a while.
Ronald Cole <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I feel the need to zero out my /dev/sda10. It's a bit over 1-gig
> and so:
>
> dd if=/dev/zero of=/dev/sda10
>
> takes a *long* time. How would I figure out the optimal block size
> to get the job done in the shortest amount of time without resorting
> to trial-and-error?
>
> --
> Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
> Ronald Cole <[EMAIL PROTECTED]> Phone: (760) 499-9142
> President, CEO Fax: (760) 499-9152
> My PGP fingerprint: 15 6E C7 91 5F AF 17 C4 24 93 CB 6B EB 38 B5 E5
------------------------------
** 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
******************************