Linux-Development-Sys Digest #376, Volume #8 Tue, 26 Dec 00 23:13:13 EST
Contents:
Re: Toronto, Kylix is coming! ("John Smith")
Re: removing mouse causes Linux to crash/hang. kernel 2.4 (mitch5555@x)
Re: Toronto, Kylix is coming! (jefxxx@x)
Re: Howto access kernel memory from user application ? ([EMAIL PROTECTED])
Re: removing mouse causes Linux to crash/hang. kernel 2.4 (Robert Redelmeier)
Compiling a library set with a foreign lib (Sangohn Christian)
Re: Compiling a library set with a foreign lib ("Fruitbat")
Re: ioctl not linked to anything?
Re: Looking for device driver references for Linux 2.2 kernel.
Re: RPC: Connection Refused
Re: DNS Serving (Daniel Rall)
Re: What is the command to . . . ? (Andrew N. McGuire)
Re: What is the command to . . . ? (Andrew N. McGuire)
----------------------------------------------------------------------------
From: "John Smith" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Toronto, Kylix is coming!
Date: Tue, 26 Dec 2000 06:19:52 GMT
Oh please...probably less than 2% of all Windows programs are written in
Delphi and Borland C++ Builder. About 95% are written in either Visual
Basic or Microsoft Visual C++ (with Microsoft Foundation Classes). I'm not
sure what universe you're living in, but it's definitely not the one the
rest of us are in :-)
I think Kylix will be a big boon for Linux, too, but let's not go crazy on
the claims :-)
"Steffen K�hler" <[EMAIL PROTECTED]> wrote in message
news:90qbav$4ph$[EMAIL PROTECTED]...
>
> So why using Kylix ? - it's not because to learn again another tool - but
> the BIG advantage is that with this tool it should be possible to transfer
> approx. 30% of all windows programs to Linux - also if you stroke out all
> the programs which only exist to solve windows problems (and which so are
------------------------------
From: mitch5555@x <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: removing mouse causes Linux to crash/hang. kernel 2.4
Date: 25 Dec 2000 21:46:36 -0800
In article <[EMAIL PROTECTED]>, Robert says...
>
>> linux 2.4.0-test7 #3 SMP
>>
>> I found out that, if I remove the cable of the mouse from the
>> back of the PC, linux hangs. had to reboot. this happens everytime.
>
>PS/2 or serial mouse? PS/2 is not hot [un]pluggable and I'd
>expect a hang if not hardware damage from hot unplugging.
>AFAIK, RS232 serial ports are designed for hot-plugging and
>shouldn't suffer.
>
Not sure how to tell the difference :) but it is a logitech,
"mouseman, serial-mouse port", it says under the mouse. I think when
I installed Linux, I said PS/2.
but even if it is PS/2, why should the OS hangs when removing
the mouse? suppose the cable slips off, this should be no cause
for the OS to hang? from a user point of view, this does not seem right,
I just at least be able to use the keyboard to cleanly shut down the system.
thanks,
mitch
------------------------------
From: jefxxx@x <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Toronto, Kylix is coming!
Date: 26 Dec 2000 00:23:57 -0800
In article <cMW16.178435$[EMAIL PROTECTED]>, "John says...
>
>Oh please...probably less than 2% of all Windows programs are written in
>Delphi and Borland C++ Builder.
I think Kylix is important, becuase of the millions of windows VB
programmers, who might want to program on linux (or try it). Delphi
on Linux is the tool they would use (since there is no VB on linux),
since Delphi is the closest thing to VB there is.
I also think OO pascal is really a neat language too.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Howto access kernel memory from user application ?
Date: Tue, 26 Dec 2000 14:15:54 GMT
In article <[EMAIL PROTECTED]>,
Josef Moellers <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > =
>
> > Hi all,
> > From a user application, I try to modify the value of a symbol
exported by a kernel module.
> > I call query_module (module name, which =3D QM_SYMBOLS, ...). I get
the
> > address of the symbol I want to modify = 0xc805246c ; it's exactly
the
> > address found for this symbol in /proc/ksyms.
> > But when I try to read its content (in gdb), I get the message :
> > can't access memory at address 0xc805246c.
> >
> > How could I manipulate this kernel symbol in a user application ?
>
> fd =3D open(/dev/kmem, O_RDWR);
> lseek(fd, addr, SEEK_SET);
> read(fd, &buf, size);
> or
> write(fd, &buf, size);
>
> What do you mean by "using gdb to read kernel memory?
>
Thanks for help.
If I run the user application on the command line, I get "Segmentation
fault (core dumped)". When running it with gdb, I also get "Segmentation
fault" and when I try to examine the symbol address with "x/10
0xc805246c", I have the message : can't access memory at address ...
Sylvie
Sent via Deja.com
http://www.deja.com/
------------------------------
Date: Tue, 26 Dec 2000 09:50:46 -0600
From: Robert Redelmeier <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: removing mouse causes Linux to crash/hang. kernel 2.4
mitch5555@x wrote:
> Not sure how to tell the difference :) but it is a logitech,
> "mouseman, serial-mouse port", it says under the mouse. I think when
> I installed Linux, I said PS/2.
Then it probably is a PS/2 that could be plugged into either the
serial or mouse (PS/2) port via an adapter. The serial port is
a DB-9 rhomboidal D-shell connector that can fit 9 pins. A PS/2
port takes a round mini-DIN connector identical with the keyboard.
> but even if it is PS/2, why should the OS hangs when removing
> the mouse? suppose the cable slips off, this should be no cause
> for the OS to hang? from a user point of view, this does not seem right,
> I just at least be able to use the keyboard to cleanly shut down the system.
I don't think the OS hangs. I think the hardware hangs, and the
OS is helpless. Not that I'd recommend anyone try hot unplugging
PS/2, but do you see the same behaviour under MS-Windows*?
On hot [un]plugging what happens is the four PS/2 connections
(ground, +5V, data and clock) are [un]made in different order.
For a few milliseconds you may have two or three of the four.
It is harmful to try to power the device through the clock or
data lines when the +5V is disconnected. Similarly, it is
harmful to try to drain through clock or data when ground is
disconnected. Small fractions of a second count. Count
yourself lucky that you only locked up hardware (SCR
latch-up on the kbd controller?)
-- Robert
------------------------------
From: Sangohn Christian <[EMAIL PROTECTED]>
Subject: Compiling a library set with a foreign lib
Date: Tue, 26 Dec 2000 17:13:43 +0100
I�m trying to compile the kde libs with the the qtcups library
(http://qtcups.sourceforge.net) for printing with CUPS because I like
the CUPS interface much more than the one for LPD.
I made the appropriate changes in the sources. They only consist in
using the QCupsPrinter class instead of the QPrinter class from the Qt
libs. Everything compiles well but linking fails.
How should I modify the Makefile(s) so libqtcups are found by the
linker?
TIA
Here is the output:
g++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
-fno-builtin -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
-DQT_NO_ASCII_CAST -fexceptions -o .libs/libkhtml.la.closure
.libs/libkhtml_la_closure.o .libs/khtmlview.o .libs/khtml_part.o
.libs/khtml_run.o .libs/khtml_factory.o .libs/khtml_settings.o
.libs/khtml_events.o .libs/khtml_find.o .libs/khtml_ext.o
.libs/khtml_pagecache.o .libs/libkhtml_la_meta_unload.o
./xml/.libs/libkhtmlxml.a -L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/lib/qt-2.2.3/lib
-L/opt/K-Desktop-Environment-2.0.1/lib
-L/usr/lib/gcc-lib/i486-linux/egcs-2.91.66 ./html/.libs/libkhtmlhtml.a
./rendering/.libs/libkhtmlrender.a ./css/.libs/libkhtmlcss.a
./misc/.libs/libkhtmlmisc.a ./dom/.libs/libkhtmldom.a
./java/.libs/libkjava.so ../kio/.libs/libkio.so
../kparts/.libs/libkparts.so
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/kfile/.libs/libkfile.so
../kfile/.libs/libkfile.so
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/kio/.libs/libksycoca.so
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/kio/.libs/libkio.so
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/kdesu/.libs/libkdesu.so -lutil
../kssl/.libs/libkssl.so
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/kdeui/.libs/libkdeui.so
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/kdecore/.libs/libkdecore.so -ldl
/usr/local/src/kde/2.0.1/kdelibs-2.0.1/dcop/.libs/libDCOP.so -lqt -lpng
-lz /usr/local/lib/libjpeg.so -lXext -lX11 -lSM
-lICE -lstdc++ -lm -lc -lgcc -Wl,--rpath
-Wl,/opt/K-Desktop-Environment-2.0.1/lib -Wl,--rpath -Wl,/usr/local/lib
.libs/khtmlview.o: In function `KHTMLView::print(void)':
.libs/khtmlview.o(.text+0x46e5): undefined reference to
`QCupsPrinter::QCupsPrinter(void)'
.libs/khtmlview.o(.text+0x470c): undefined reference to
`QCupsPrinter::setup(QWidget *)'
.libs/khtmlview.o(.text+0x4746): undefined reference to
`QCupsPrinter::setCreator(QString const &)'
.libs/khtmlview.o(.text+0x55c0): undefined reference to
`QCupsPrinter::margins(void) const'
.libs/khtmlview.o(.text+0x57f0): undefined reference to
`QCupsPrinter::margins(void) const'
.libs/khtmlview.o(.text+0x639c): undefined reference to
`QCupsPrinter::newPage(void)'
collect2: ld returned 1 exit status
make[3]: *** [libkhtml.la.closure] Error 1
make[3]: Leaving directory
`/usr/local/src/kde/2.0.1/kdelibs-2.0.1/khtml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/src/kde/2.0.1/kdelibs-2.0.1/khtml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/kde/2.0.1/kdelibs-2.0.1'
make: *** [all-recursive-am] Error 2
------------------------------
From: "Fruitbat" <[EMAIL PROTECTED]>
Subject: Re: Compiling a library set with a foreign lib
Date: Tue, 26 Dec 2000 22:59:31 GMT
do a ./configure --help, it should give you a reference
for --enable-cups=/(where the library is) or some such, you should not have
to specifically modify the makefile.
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: ioctl not linked to anything?
Date: Tue, 26 Dec 2000 23:18:52 -0000
In article <Pine.GSO.4.21.0012241133380.20087-100000@acms23>,
Guennadi V. Liakhovetski <[EMAIL PROTECTED]> wrote:
>I am trying to run hdparm -d1 in a debugger (hdparm, glibc and the whole
>drivers/block directory of the kernel compiled with the -g flag). Now,
>when I come to the line
>ioctl(fd, HDIO_SET_DMA, dma)
>and press step... gdb merely steps over it as if it were a simple
>C-command, whereas other ioctl calls can be debugged fine... What does
>this mean?
Have you looked at the glibc source to see what ioctl really is?
--
http://www.spinics.net/linux
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: Looking for device driver references for Linux 2.2 kernel.
Date: Tue, 26 Dec 2000 23:22:46 -0000
In article <tzK06.2$[EMAIL PROTECTED]>,
M Boerner <[EMAIL PROTECTED]> wrote:
>I must be looking in the wrong places, but I am looking for reference
>material on the differences between the 2.0 and 2.2 kernels for device
>drivers.
http://www.atnf.csiro.au/~rgooch/linux/docs/porting-to-2.2.html
--
http://www.spinics.net/linux
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: RPC: Connection Refused
Date: Tue, 26 Dec 2000 23:24:33 -0000
In article <91tr5b$pvp$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>My place of emplyment, someone has devloped a SCSIserver for SGI, SUN,
>and LInux. He used rpc for this. This server program works find on one
>linux box. But when I installed it on a new linux box, I get this when I
>use a client: Connection Refused. I am able to connect fine on the
>other linux box. I am unable to find any rpc.hosts kind of file any on
>the new linux host. What do I need to do on the new linux box to accept
>RPC calls?
Check /etc/hosts.allow
--
http://www.spinics.net/linux
------------------------------
Crossposted-To: linux.redhat.development
Subject: Re: DNS Serving
From: Daniel Rall <[EMAIL PROTECTED]>
Date: Wed, 27 Dec 2000 02:37:03 GMT
Joseph Virzi <[EMAIL PROTECTED]> writes:
> I understand that name serving is a complex topic in its entirety. But
> the following should be straightforward to do, eh?
>
> I have DSL at home with a static IP address. I wish to have 3 virtual
> domains on my server, configured at this IP address.
>
> My service provider, wants to charge me $100 per site to "Name Serve",
> and I don't see why I should if I can do it myself.
>
> I figured that I could list my IP address with InterNIC as the
> nameserver for my domain name. Then my machine points to myself as a web
> server.
You're on target.
> I run into these things called zones and other directives that I do not
> understand yet. Where can I find reference to them? I thought name
> serving was basically translating a domain name into an IP address.
Loosely, yes.
http://www.linuxdoc.org/HOWTO/DNS-HOWTO.html
> This is not a commercial application, and the domain names are mine, so
> no one should get upset that I don't have the right "class" of equipment
> to name serve.
>
> Or, am I totally out in left field?
You're cool, just learn how to configure named. Learning a little
more about how DNS works would help, too.
Daniel Rall
------------------------------
Crossposted-To:
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: What is the command to . . . ?
From: [EMAIL PROTECTED] (Andrew N. McGuire)
Date: 26 Dec 2000 21:46:30 -0600
>>>>> "KD" == Kasper Dupont <[EMAIL PROTECTED]> writes:
KD> Josef Moellers wrote:
>>
>> Allen Wong wrote:
>> >
>> > In alt.os.linux.slackware Markus Amersdorfer <[EMAIL PROTECTED]> wrote:
>> > > [EMAIL PROTECTED] wrote:
>>
>> > > find . -name '*.txt' -exec grep "Hello World" {} \;
>> >
>> > This works, but it's alot slower than "find . -type f -name '*.txt' -print |
>> > xargs grep "Hello World".
>>
>> These solutions won't tell where they found the match.
>> Markus' solution can be enhanced to do that:
>> find . -name '*.txt' -exec grep "Hello World" {} \; -print
KD> Grep will tell the filenames if there is more than one file.
KD> If you just want to know the filename and not the actual
KD> lines use grep -l "Hello World".
find . -name '*.txt' -exec grep "Hello World" /dev/null {} \;
is the nicest solution... it gives both on each line, to be
easily parsed by awk or perl by splitting on ':'.
anm
--
perl -wMstrict -e '
$a=[[qw[J u s t]],[qw[A n o t h e r]],[qw[P e r l]],[qw[H a c k e r]]];$.++
;$@=$#$a;$$=[reverse sort map$#$_=>@$a]->[$|];for$](--$...$$){for$}($|..$@)
{$$[$]][$}]=$a->[$}][$]]}}$,=$";$\=$/;print map defined()?$_:$,,@$_ for @$;
'
------------------------------
Crossposted-To:
alt.os.linux.mandrake,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: What is the command to . . . ?
From: [EMAIL PROTECTED] (Andrew N. McGuire)
Date: 26 Dec 2000 21:49:07 -0600
>>>>> "ANM" == Andrew N McGuire <[EMAIL PROTECTED]> writes:
>>>>> "KD" == Kasper Dupont <[EMAIL PROTECTED]> writes:
KD> Josef Moellers wrote:
>>>
>>> Allen Wong wrote:
>>> >
>>> > In alt.os.linux.slackware Markus Amersdorfer <[EMAIL PROTECTED]> wrote:
>>> > > [EMAIL PROTECTED] wrote:
>>>
>>> > > find . -name '*.txt' -exec grep "Hello World" {} \;
>>> >
>>> > This works, but it's alot slower than "find . -type f -name '*.txt' -print |
>>> > xargs grep "Hello World".
>>>
>>> These solutions won't tell where they found the match.
>>> Markus' solution can be enhanced to do that:
>>> find . -name '*.txt' -exec grep "Hello World" {} \; -print
KD> Grep will tell the filenames if there is more than one file.
KD> If you just want to know the filename and not the actual
KD> lines use grep -l "Hello World".
ANM> find . -name '*.txt' -exec grep "Hello World" /dev/null {} \;
ANM> is the nicest solution... it gives both on each line, to be
ANM> easily parsed by awk or perl by splitting on ':'.
ahem, sorry, of course that can be sped up by using the xargs hack
as well. :-)
anm
--
perl -wMstrict -e '
$a=[[qw[J u s t]],[qw[A n o t h e r]],[qw[P e r l]],[qw[H a c k e r]]];$.++
;$@=$#$a;$$=[reverse sort map$#$_=>@$a]->[$|];for$](--$...$$){for$}($|..$@)
{$$[$]][$}]=$a->[$}][$]]}}$,=$";$\=$/;print map defined()?$_:$,,@$_ for @$;
'
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************