Linux-Development-Sys Digest #684, Volume #6 Thu, 6 May 99 11:13:56 EDT
Contents:
Re: lp and kernel 2.2 (Greg White)
Re: [ANN] CodeWarrior for Red Hat Linux, GNU ed. Shipping (Michael Kat)
Re: Linux device driver (Josef =?iso-8859-1?Q?M=F6llers?=)
Re: Help Please!!! (Terence Cheng)
Re: Compatibility with AT&T Unix (Villy Kruse)
Re: Where can I find /usr/sbin/chat sources ? (Martin Recktenwald)
Re: Bug with alarm() interrupting read()??? (Villy Kruse)
Re: crash with 2.2.x SMP under heavy disk activity ("Sascha Bohnenkamp")
Re: Kernel panic with 2.2.7 and MO devices (Igor Zlatkovic)
Re: [ANN] CodeWarrior for Red Hat Linux, GNU ed. Shipping (Andy Law)
Re: Problems compiling Kernel 2.2.7 (Sellaro)
Re: Understanding Linux development (David T. Blake)
Re: Problems compiling Kernel 2.2.7 (Hans Wolters)
help on compiling glibc 2.1 (and texinfo and termcap and ugh..) ("Vladimir G.
Stanishev")
Re: Linux Real-Time I/O (Jim & Lisa Meils)
----------------------------------------------------------------------------
From: Greg White <[EMAIL PROTECTED]>
Subject: Re: lp and kernel 2.2
Date: Thu, 06 May 1999 02:11:50 GMT
Jwbat wrote:
>
> hello,
> i can't get the lp to work under 2.2 (actually 2.2.7). I have seen the most
> common fix: lp1 becomes lp0. And i did change /etc/printcap appropriately, but
> STILL no printeee. The dmesg indicates:
> parport0: PC-style at 0x378 [SPP]. Under the *old* kernel (2.0.30) i could just
> do a
> cat bozo > /dev/lp0
> cat bozo > /dev/lp1
>
> TO determine which one was valid. Now when i do this it says invalid device.
> Looking at dejanews i found no such similar problem (or answer).
>
> if i reboot to 2.0.30 the printer (and print spooler) work fine.
> Please, linux gurus, what am i missing??
>
> Muchos thankos,
> jwb
Just a thought... two options two suggest:
1. Check out /usr/src/linux/Documentation/parport.txt, specifically the
'append=' options new to =>2.1.xx
2. Make sure parallel support is selected in _both_ places it appears (
General setup and Character devices). I burned myself on that one the
first time I compiled a 2.1.xx kernel.
------------------------------
From: Michael Kat <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.unix.programmer
Subject: Re: [ANN] CodeWarrior for Red Hat Linux, GNU ed. Shipping
Date: Thu, 06 May 1999 15:02:26 +1000
> Personally, I still prefer a modern vi or emacs for productivity.
>
> --Sumner
I agree. An ide slows me down, there's no way I would use one instead of
vi and emacs if I didn't have to - let alone pay for it. I'd rather have
the edge than look like I have it.
Michael
------------------------------
From: Josef =?iso-8859-1?Q?M=F6llers?= <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Linux device driver
Date: Thu, 06 May 1999 08:14:36 +0200
DAVID JOHNSON wrote:
> =
> A couple of questions regarding a device driver kernel module.
> =
> I am writing a kernel module device driver. One of my ioctl functions
> returns an unsigned long value. When I return a value with the high
> bit set to 0, everything work fine. When the high bit is set to 1 the
> value
> returned fromt he ioctl call is 0xFFFFFFFF. Is there a reason for this=
> and
> how can I fix it?
RTFM
man ioctl:
RETURN VALUE
On success, zero is returned. On error, -1 is returned,
and errno is set appropriately.
You're supposed to return any value through a return field pointed at by
the third argument to the ioctl.
If you only have a single scalar input value passed by value, you should
consider passing a pointer to a structure with an input and an output
field and put the return value into the output field a la
struct inout {
size_t nbytes;
unsigned int retval;
} io;
if (ioctl(fd, COMMAND, &io) =3D=3D -1)
perror("ioctl");
> =
> Part of this driver involves implementing a bus master routine with
> requires
> a large contiguous memory buffer. I am booting up Linux with the LILO
> option "MEM=3D60M" and then using buffer =3D vremap(0x3C00000, 0x400000=
) to
> allocate the a 4MB DMA buffer. I then use virt_to_bus(buffer) so I get=
> a
> memory pointer that I can pass to the device. For some reason this doe=
s
> not
> seem to work. Should it? If not, what method should I use?
Beats me. Any takers?
Josef
-- =
PS Die hier dargestellte Meinung ist die persoenliche Meinung des
Autors!
PS This article reflects the autor=B4s personal views only!
------------------------------
From: Terence Cheng <[EMAIL PROTECTED]>
Subject: Re: Help Please!!!
Date: Thu, 06 May 1999 12:15:16 +0800
Process scheduling
One day, you have a lot of assignment and need to deliver them in very
short time. How do you schedule all your assignment ? You will either
complete the most easy one or the most important one. For those
difficult, you will put it aside and when you got idea, you will bring it
back again.
Inter-process communication
How two people communication with each other ? Just imagine the
process in unix just like a creature. The creature are only homosexuality
and can do reporduction by issue the call "fork". No need to make love.
These creature need to talk with each other. In Unix environment, these
creature can communicate via File, Pipe, Signal, Message queue, Semaphore
and Shared memory.
"Jack R. Llewellyn" wrote:
> Hi,
>
> I am a student at the University of Phoenix-Utah Campus studying
> Information Systems. The current course we are studying is Operating
> Systems Concepts. Our group has a project on Linux to complete which
> consists of several parts. The current focus is "Operating System
> Process Management Analysis". The requirements are as follows.
>
> Identify how the chosen operating system (Linux) manages processes and
> concurrency including:
>
> Process scheduling
> Inter-process communication
> Process synchronization
> Handling of deadlocks
>
> We are basically at the beginner's level as far as understanding
> operating systems. Could anyone please discuss this topic with me or
> refer me to any location on the Internet that could help us out with
> this subject in a lay person's terms? I have searched the Internet
> hours on end and have not been able to find what I need.
>
> Any help would be greatly appreciated.
>
> Thanks in advance,
>
> Jack Llewellyn
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
--
Best Regards,
Terence Cheng
Systems Engineer
________________________________________
NKO (HK) Limited
Email: [EMAIL PROTECTED]
Tel : 28399162
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Compatibility with AT&T Unix
Date: 6 May 1999 09:55:52 +0200
In article <[EMAIL PROTECTED]>,
Terence Cheng <[EMAIL PROTECTED]> wrote:
>I have the following statement already working in AT&T SVR4
>
>ioctl(fid, I_SETSIG, S_INPUT | S_RDNORM | S_HANGUP)
>
>but I can't got the file to resolve the above macro. Is anyone know how
>to resolve above problem ?
That would require STREAMS support in your kernel. Caldera for example
modifies the kernel to include STREAMS support.
Villy
------------------------------
From: Martin Recktenwald <[EMAIL PROTECTED]>
Subject: Re: Where can I find /usr/sbin/chat sources ?
Date: 06 May 1999 09:58:15 +0200
FX <[EMAIL PROTECTED]> writes:
> I want to find /usr/sbin/chat working with pppd Daemon, to customize it
> for a specific application !
> First, is it allowed ? And then, where can I find the source code ?
IIRC, it is allowed, but check the license yourself.
It is available as part of the pppd source.
(ftp://cs.anu.edu.au/pub/software/ppp/)
Martin.
--
Sign the EU petition against spam:
http://www.politik-digital.de/spam/
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Crossposted-To: comp.os.linux.development,comp.os.linux.redhat
Subject: Re: Bug with alarm() interrupting read()???
Date: 6 May 1999 09:36:08 +0200
In article <[EMAIL PROTECTED]>,
Brad Pepers <[EMAIL PROTECTED]> wrote:
>This is a multi-part message in MIME format.
>--------------082960B5B12F4D2DCE16E6E0
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>I have a program that does ymodem transfers. The program works
>fine on older Red Hat releases (4.x) but I've found out it dies
>in the latest version I have (5.2). I've traced it down to the
>fact that the alarm() call only gets triggered once but I don't
>know why!
In your code you realy should use siglongjmp and sigsetjmp. Whenever
the signal handler is called it masks the interrupt until the signal
handler makes a normal return to the caller. Calling longjmp leaves
the signal blocked, but siglongjmp can be set up to restore the signal
mask, thus unblocking the signal.
Villy
------------------------------
From: "Sascha Bohnenkamp" <[EMAIL PROTECTED]>
Subject: Re: crash with 2.2.x SMP under heavy disk activity
Date: Thu, 6 May 1999 11:20:25 +0200
>I wonder if anyone encounters the same problems we have : crashes under
>2.2.x (seems not to matter to much) under heavy scsi disk activity.
>The dual PII 450 MHz, which used to be rock solid under 2.0.x SMP,
>crashes after "big" files (like 10-50 Mb) are written (not 100% sure) to
>its disks.
mmmh, my system with 2.2.7 and smp does not crash after writing some gigs
even under heavy load (>20 on two cpus)
------------------------------
From: Igor Zlatkovic <[EMAIL PROTECTED]>
Subject: Re: Kernel panic with 2.2.7 and MO devices
Date: Thu, 06 May 1999 10:06:00 +0000
Hello there.
Do *not* use partitions on MO disks that have 2048 bytes/sector. This is true for
all 640MB MO disks. This worked under previous kernel versions, but not under
2.2.x. Also, disks created under <=2.2.1 are not usable under >=2.2.2. You need
to reformat these or look for some conversion utility on the net.
Make a filesystem using: mke2fs -b 2048 /dev/sdc, mount it and everything will
work. Using partitions on these disks (under 2.2.x kernel) leads to all kinds of
problems.
--
o
O Cheers,
______O___
\________/ Igor Zlatkovic
\ o / mailto:[EMAIL PROTECTED]
\ O /
\ /
\/
|| University of Applied Sciences
___||___ Frankfurt, Germany, EU.
------------------------------
From: [EMAIL PROTECTED] (Andy Law)
Crossposted-To: comp.os.linux.development.apps,comp.unix.programmer
Subject: Re: [ANN] CodeWarrior for Red Hat Linux, GNU ed. Shipping
Date: Thu, 06 May 1999 09:49:01 +0100
In article <[EMAIL PROTECTED]>, Michael Kat
<[EMAIL PROTECTED]> wrote:
> > Personally, I still prefer a modern vi or emacs for productivity.
> >
> > --Sumner
>
> I agree. An ide slows me down, there's no way I would use one instead of
> vi and emacs if I didn't have to - let alone pay for it. I'd rather have
> the edge than look like I have it.
And will Metrowerks (or anyone else) _force_ you to buy an IDE?
--
Andy Law
======================
([EMAIL PROTECTED])
(Big Nose in Edinburgh)
------------------------------
From: Sellaro <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Problems compiling Kernel 2.2.7
Date: Thu, 06 May 1999 08:33:44 -0300
Hans Wolters wrote:
> There's the problem. Sorry but I can't fix it (not yet into assambler or c/c++
>
> For some reason there's a double definition. Vars can be declared once within a
> routine/class (correct me if I'm wrong).
>
Yeap, you're right. But, in fact, there is NO double definition in that file. There
are two DIFFERENT functions,
but, for some reason, the assembler truncates the name of one function and, as Murphy
said in his second law, section about Assembly Kernel Packages,
the assembler just thinks the function is double defined :)
But let this problem die... I think it's gone.
Thank you for the help.
--
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
"Eu sou um imortal. Nao tenho onde cair morto." - Olavo Bilac
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
Sellaro
Network and System Administrator
Computer Science Dept.
Federal University of Ceara - Brazil (UFC)
PGP KEY AVAILABLE UPPON REQUEST
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: Understanding Linux development
Date: 05 May 1999 14:24:48 -0700
Jim Bailey <[EMAIL PROTECTED]> writes:
>Then I decide to try my hand at KDE devlopment - download the samples
>from KDE, type them in, and per the sample, try G++ and my system knows
>of no such thing. So for the last week I've tried to find the answers
>to things like:
>
>1. What is egcs ? Is g++ hidden in there somewhere ? Must not be because
>the Kpackage tool says that's already installed. There's another
>package called egcs-c++ that won't install because it has a dependency
>on '==2.9' - yes thats the error.
egcs started as an experimental gnu C compiler because the
gcc folks didn't work in an open enough manner for the folks
at Cygnus. Fair is as fair does - egcs developed faster and
better, and RMS made them the official gcc maintainers, which
I think means that very shortly egcs =gcc (or rather, the other
way around).
g++ comes with egcs-c++, and on my system that requires the
egcs package, the C library, and the linker. In any case,
the g++ binary only requires the C library and the linker,
so if you can find the binary you can run it.
KDE stuff is largely built with egcs.
>2. The Kde sample references some includes that I can't find
>anywhere on my system - where (what RPM) are the Kde includes ?
I don't build KDE stuff, but the includes are USUALLY in the
*-devel-*rpm packages.
>3. I really can't tell if I have all the Qt stuff I need either.
I think you only need qt and qt-devel to build KDE apps.
>I've tried the Troll site, KDE, the Linux programming books I've bought,
>other newgroups etc. but can't figure out what compilers need what
>librarys for what window manager/desktop environments. Those sites
>weren't really meant for the 'new' developer. Antoher person suggested I
>look at Kdevelop - I will check it out but I'd feel much better if I
>understood some of this.
Screw that. Fire up emacs, and hit ctrl-h i and read through the
info trees.
To tell which symbols will come from which libraries, try the
command
nm $LIBRARY
to give a listing of all symbols in $LIBRARY
To determine which libraries a binary or compiler needs to
run, try
ldd $BINARY
which will list all object files to be dynamically loaded on
running the program.
At this point, you should be able to compile almost anything
with egcs except linux 2.0 series kernels. An easy way to get
started with something like KDE is to download a tarball of a
new program, and compile it. That SHOULD be fairly painless if you
really have programmed a bit. Then tweak with the code to figure
out the specifics of the KDE tools that differ from standard
tools. Then you will be ready to begin to write your own code.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Hans Wolters)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Problems compiling Kernel 2.2.7
Date: 5 May 1999 21:29:01 GMT
Reply-To: [EMAIL PROTECTED]
Sellaro <[EMAIL PROTECTED]> found a keyboard
and wrote the following ....
[snap]
>checksum.c
>checksum.c:204: redefinition of 'csum_partial_copy'
>checksum.c:109: 'csum_partial_copy' previously defined here
>{standard input}: Assembler messages:
>{standard input}:185: Fatal error: Symbol csum_partial_copy already
>defined.
There's the problem. Sorry but I can't fix it (not yet into assambler or c/c++
For some reason there's a double definition. Vars can be declared once within a
routine/class (correct me if I'm wrong).
[snap]
>I've already checked the file <kernel source>/Documentation/Changes and
>verified all the requirements to properly compile the new kernel. Here
>they are:
Don't look any further. Just take a look at kernel.org for an update. If there
isn't any then notify the developers.
[snap3]
Regards Hans Wolters
--
22 Linux Search Engines in one applet
http://home.gelrevision.nl/~h.wolter/
Linux Links/CMI8330 Soundpro HOWTO
http://home.gelrevision.nl/~h.wolter/linux.htm
------------------------------
From: "Vladimir G. Stanishev" <[EMAIL PROTECTED]>
Subject: help on compiling glibc 2.1 (and texinfo and termcap and ugh..)
Date: Thu, 06 May 1999 07:52:07 +0100
The INSTALL file for glibc 2.1 lists a bunch of programs that are needed
to compile (or configure) glibc 2.1 successfully. texinfo is one of
those listed, and since my configure script was failing with a "one of
your programs is missing or too old" message when it got to checking
makeinfo (part of texinfo), I downloaded the texinfo package from the
gnu.org to install it. The configure script for texinfo worked fine but
teh compile was failing with a bunch of messages about "call to
unreferenced tputs and tgets functions". the file that was making those
calls was terminal.c and it had some conditional includes for
termcap.h. I found from the gnu site that tputs and tgets are part of
termcap, so what the heck, I downloaded that and went on to install it.
that one worked fine and I installed it(./configure, make, make install
- nothing else). after which texinfo actually compiled (same
./configure, make, make install). so I happily went back to glibc,
typed ./configure adn damn it to hell it still didn't work. it fails
with the same message, the only difference being that when it gets to
checking makinfo, it says: checking for makeinfo - yes, instead of:
checking for makinfo - no. The error message is right after that just
as before.
I am using debian 2.0 with a 2.2.4kernel. I've installed everything
unitl now using dpkg adn packages from teh debian site (except for the
kernel and X). My best guess is that something is misconfigured with
the texinfo installation, but I am not sure where to look from here. The
debian site didn't have a .deb package for texinfo which is why I went
with the one from gnu.org. If anyone has any ideas Id appreciate it.
Thanx.
------------------------------
From: Jim & Lisa Meils <[EMAIL PROTECTED]>
Subject: Re: Linux Real-Time I/O
Date: Thu, 06 May 1999 09:22:22 -0500
Michel Dagenais wrote:
> Alex Maranda <[EMAIL PROTECTED]> writes:
>
> Using nanosleep and similar functions on a 2.0.x kernel i indeed could not
> get any reasonable accuracy. However, with the real time clock (/dev/rtc)
> suggested earlier in this thread, i got excellent results up to about
> 2KHz. The real time clock device has a pretty direct path to the process
> signal handler in the kernel; all the bottom halves, rescheduling and other
> sources of "jitter" occur after the signal handler.
>
It seams I may have missled you in my application question. What I ment with
the question about 120 runs/sec was that I would need an EXTERNAL source for
creating an interrupt. With the information you folks have given me so far, I
will be digging into documents for a while. I appreciate all the response.
Where can I find info on handling external interrupts?
Thanks again
Jim
------------------------------
** 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
******************************