Linux-Development-Sys Digest #397, Volume #8 Mon, 8 Jan 01 05:13:12 EST
Contents:
Re: Library dependencies ("Fruitbat")
Re: Svgalib error with quake2 and 2.4.0test12 (Clifford Kite)
Re: Yamaha CDRW 4416E (Harry George)
Protocol Implementation in Linux (YAMAZAKI NINJA)
Re: 2.4.0 and sudden death in X? (A Guy Called Tyketto)
GCC help
Re: GCC help (YAMAZAKI NINJA)
Re: Linux OS for the Apple Mac (Philip Martin)
Disable buffer cache (Manoj Patil)
In Kernel 2.4 cdrom mount.. ("junwon,Seo")
Re: Library dependencies ("Peter T. Breuer")
Re: How Do I Compile C++ Code With pid_t? (Kasper Dupont)
Re: CD-ROM Eject (Kasper Dupont)
Re: code language for Linux kernel (Kasper Dupont)
Re: devfs / pts (Kasper Dupont)
Re: Disable buffer cache (Erno Kuusela)
Re: Extending /proc filesystem on Solaris 7/8? (Drazen Kacar)
Re: Linux OS for the Apple Mac (Kasper Dupont)
Re: In Kernel 2.4 cdrom mount.. (Kasper Dupont)
----------------------------------------------------------------------------
From: "Fruitbat" <[EMAIL PROTECTED]>
Subject: Re: Library dependencies
Date: Sun, 07 Jan 2001 23:20:32 GMT
Peter,
A question, does binstats also take into account the dependencies of
libraries to other libraries. Binstats has shown me I have 113 unused
libraries, an I want to make sure these aren't used by other libraries
before I kill them off.
------------------------------
From: Clifford Kite <[EMAIL PROTECTED]>
Subject: Re: Svgalib error with quake2 and 2.4.0test12
Date: Sun, 7 Jan 2001 10:19:40 -0600
Clifford Kite <[EMAIL PROTECTED]> wrote:
> I've installed 2.4.0test12 on a Slackware 7.1 system. I've been
> running quake2 with 2.2.18 on this system successfully, but with the
> new series kernel it barfs with the mmap error message:
> setting mode 3: 640 480
> svgalib: mmap error in paged screen memory.
FYI, I received an email from the svgalib maintainer. Svgalib has to
be compiled with the BACKGROUND option commented out in the svgalib
souce package file Makefile.cfg because of changes in the new kernel.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
------------------------------
From: Harry George <[EMAIL PROTECTED]>
Subject: Re: Yamaha CDRW 4416E
Date: 07 Jan 2001 17:28:01 -0800
I have a Yamaha CDRW 8424EZ, running on SUSE 6.4. My notes:
Set /etc/modules.conf:
alias scsi-adapter ide-scsi
options ide-cd ignore=hdc
Set /etc/lilo.conf:
label = suse64
append = "hdc=ide-scsi"
Everytime I reboot, I need to do:
depmod
insmod ide-scsi
Haven't figured out how to get the system to do that on boot.
Use yast to "install" CDROM as SCSI. This is needed to
use it as a normal CDROM (as compared to the
reader/writer activity under xcdroast).
So if your system is similar, check to see if "ide-scsi" is insmod'd.
Rob King <[EMAIL PROTECTED]> writes:
> Sadly it doesn't read any sort of cd's, it just hasn't read anything, and i
> haven't checked those yet, but thanks for the help
>
> Kasper Dupont wrote:
>
> > Rob King wrote:
> > >
> > > Hi i have this burner as my secondary ide slave with a pioneer 16x
> > > dvd-rom as it's primary, and when i boot in linux, the burner won't read
> > > anything, i would like to now, if this is a problem with my system, or
> > > if it is uncommon.
> >
> > It definitely should work, what happens when you try to read
> > something? What messages does the kernel write when detecting
> > IDE units at bootup. Look in /var/log/messages.
> >
> > --
> > Kasper Dupont
>
--
Harry George
[EMAIL PROTECTED]
------------------------------
From: YAMAZAKI NINJA <[EMAIL PROTECTED]>
Subject: Protocol Implementation in Linux
Date: Mon, 08 Jan 2001 10:52:40 +0800
Reply-To: [EMAIL PROTECTED]
Hi ,
I am interested in implementing Networking Protocol in Linux
(IPv4,IPv6,UDP,ICMP etc).
I would like to ask whether there is any tutorial website explaining how
to implement networking into Linux.
Or if there any good book for this
Thank you.
------------------------------
From: A Guy Called Tyketto <[EMAIL PROTECTED]>
Subject: Re: 2.4.0 and sudden death in X?
Date: Mon, 08 Jan 2001 03:52:45 GMT
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
Konstantinos Agouros <[EMAIL PROTECTED]> wrote:
> Hi,
> I just tried out 2.4.0 and had some sudden deaths (machine just stood).
> At the time of the deaths I had an ISDN-Line up. Otherwise nothing special.
> System is a K6/2, SCSI (Adaptec), Teles 8-Bit-Card, USB-Support enabled.
> Somebody has an idea about that?
> Konstantin
> P.S.: With 2.4 my harddisks are shown bigger than before (for example the
> 9GB-drive is now shown as 9.1 instead of 8.7). Has something changed here,
> too?
I'm wondering on this too, but in a different light. after
jumping to 2.4.0, I can only hop into X once. If I quit out of it back
to my console, and try to go into X, it dies, saying that it can't find
the 'fixed' font. It exists in /usr/X11/lib/X11/fonts (and yes, it's
listed in XF86Config), but after trying to go into X a second time, it
fails. Not sure of why yet.. has anyone seen anything like this?
BL.
- --
Brad Littlejohn | Email: [EMAIL PROTECTED]
Unix Systems Administrator, | [EMAIL PROTECTED]
Web + NewsMaster, BOFH.. Smeghead! :) | http://www.wizard.com/~tyketto
PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569 F620 C819 199A E319 F0BF
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE6WTpoyBkZmuMZ8L8RAm/EAKDVG0MvqOfXaNu/SrBNZKlwQiR8XACfdvBP
9OL9zO7xf3ie3GKv6RGHbD8=
=0iY6
=====END PGP SIGNATURE=====
------------------------------
Date: Sun, 07 Jan 2001 23:00:41 -0500
Subject: GCC help
From: <[EMAIL PROTECTED]>
I have a stupid question that I am sure someone here could answer. I am
completely new to Linux and I am trying to use Linux to assist me in
learning to program (complete newbie here too). I've written a couple of
very simple programs that just display test using printf statements. However
whenever I compile them with gcc and try to execute them from the terminal I
don't get anything but an error stating that Shared libraries are not
supported. Yet when I click on the file in KDE nothing happens of course,
but when I logout to the command line I see my intended output. Am I missing
something here?
Thanks for any help
C
------------------------------
From: YAMAZAKI NINJA <[EMAIL PROTECTED]>
Subject: Re: GCC help
Date: Mon, 08 Jan 2001 12:12:03 +0800
Reply-To: [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
> I have a stupid question that I am sure someone here could answer. I am
> completely new to Linux and I am trying to use Linux to assist me in
> learning to program (complete newbie here too). I've written a couple of
> very simple programs that just display test using printf statements. However
> whenever I compile them with gcc and try to execute them from the terminal I
> don't get anything but an error stating that Shared libraries are not
> supported. Yet when I click on the file in KDE nothing happens of course,
> but when I logout to the command line I see my intended output. Am I missing
> something here?
>
> Thanks for any help
> C
Hi ,
The output will appear on the console where u execute your program.
BTW, how did u execute your program ? Are using the console application like
'konsole', gnome-terminal or xterm ?
------------------------------
From: Philip Martin <[EMAIL PROTECTED]>
Crossposted-To: alt.linux
Subject: Re: Linux OS for the Apple Mac
Date: Mon, 08 Jan 2001 05:02:59 GMT
[EMAIL PROTECTED] wrote:
> Hi all,
> I would like to install a version of Linux on my
> Macintosh Perform,
> Spec:
> MC68030 32bit processor
> 8mb RAM
> Interfaces : ADB port
> 2 RS-232/RS-422 serial ports
> SCSI interface
>
> Any ideas as to which version of Linux would be the best. It only has a
> 3.5 floppy disk drive
> Thanks for the help !
The major versions of Linux on Macintosh platforms are, to my knowledge, ONLY
supporting Power PC processors. I've tried PPC Linux, and just lately, suse
Linux for the Macintosh. Mostly, a LOT of stuff was broken with PPC Linux, and
almost everything works with suse. I've tried older versions of TurboLinux and
Yellow Dog, but didn't like either.
In your case, however, the only support for 680xx processors is McLinux, which
I've installed successfully on an old Performa I used to have. VERY slow, but
usable. Anyway, point your browser to McLinux, and start looking.
DrPhi
------------------------------
From: Manoj Patil <[EMAIL PROTECTED]>
Subject: Disable buffer cache
Date: Mon, 08 Jan 2001 12:09:23 +0530
Hello,
I need to do disk read and writes bypassing the buffer cache. (i.e I
want raw interface). It is a known fact that linux does not support raw
interface.
Does any one know some trick/hack so that all read and write results
into a guarenteed disk actiivity.
please reply at [EMAIL PROTECTED]
------------------------------
From: "junwon,Seo" <[EMAIL PROTECTED]>
Subject: In Kernel 2.4 cdrom mount..
Date: Mon, 8 Jan 2001 16:51:45 +0900
I'm using the Redhat 6.2 and Kernel2.4.
But, I can't mount cdrom.
I have a IDE cdrom
My command is following
# mount /mnt/cdrom or
# mount -t iso9660 /dev/cdrom /mnt/cdrom
My error message is
'mount: special device /dev/cdrom does not exist'
What's problem?
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Library dependencies
Date: Mon, 08 Jan 2001 08:05:11 GMT
Fruitbat <[EMAIL PROTECTED]> wrote:
> A question, does binstats also take into account the dependencies of
> libraries to other libraries. Binstats has shown me I have 113 unused
> libraries, an I want to make sure these aren't used by other libraries
> before I kill them off.
Where is it looking for its executables? Make sure your path is
complete.
And ask the author, not me (or read the code: it's a simple script).
Whatever the answer is, you can force it easily by adding the lib
directories to your path and making the lib* executable.
And yes, it is normal to have plenty of unused libs on your system.
Peter
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc,comp.os.linux.development.apps
Subject: Re: How Do I Compile C++ Code With pid_t?
Date: Mon, 08 Jan 2001 08:36:21 +0000
Andries Brouwer wrote:
>
> [EMAIL PROTECTED] writes:
>
> : Larry Lindstrom <[EMAIL PROTECTED]> wrote:
> :: The man page for getpid() shows "#include <unistd.h>" as the
> :: only required header.
>
> : The man page is incorrect. <sys/types.h> and <unistd.h> are the
> : required headers for getpid().
>
> You must have an ancient man page.
> A current one lists both.
The one shiped with Red Hat 6.2 is dated 23 July 1993,
but perhaps it is just Red Hat who is far behind?
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: CD-ROM Eject
Date: Mon, 08 Jan 2001 08:53:41 +0000
P.D. Lovelace wrote:
>
> Hello,
> I'm trying to write an automount/unmount program for the cd-rom drive.
> The automount I have found in a program already; would you believe the
> program is called automounter? :) However, I would like for the cd-rom
> drive to automatically unmount whenever the eject button is pressed. If
> someone can point me to a routine that can monitor the CD-ROM for the
> ejection request signal, or to the point in the source where mount locks the
> cd drive, it would be greatly appreciated.
> Thank you,
> P.D.
I'm wondering why you want to make a new program, why not
just extend the existing automounter which can do a lot of
nice things?
The idea of automatically unmounting the CD-ROM when the
eject button is pressed sounds great to me. (In fact I
think that is probably the most important feature not
found in the existing outomounter.)
I don't know if the drive reports button press for the
eject button when the drive is locked. But it is possible
to be told if the tray is opened or closed, so you could
do something like unlocking the driver whenever an
immediate unomount would be possible, and unmount the
filesystem when disk is ejected. And of course lock the
drive again when someone starts using the filesystem.
Of couse if the drive reports the eject button that would
be much better.
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: code language for Linux kernel
Date: Mon, 08 Jan 2001 09:05:35 +0000
Kaz Kylheku wrote:
>
> On Sun, 07 Jan 2001 08:30:04 -0000, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >Hi,
> >
> >Is the Linux kernel written totally in C language OR some part in assembly
> >language also?
>
> How would you, for instance, save the registers of the running task and
> restore ther registers of another task using only C?
That could be possible, I once wrote a scheduler in Turbo Pascal
using as litle as three inline assembler instructions. The only
thing that had to be done in assembler was restoring the SS
register.
But there will need to be some architecture depenent code. And
it is much more important how much of the system is architecture
dependent than how much is written in assembler.
>
> >Someone please answer correctly becuase I asked this question to many
> >people but I could not get the proper answer.
>
> You don't suppose that taking a look at the actual code would reveal
> anything?
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: devfs / pts
Date: Mon, 08 Jan 2001 09:15:58 +0000
Paul Sack wrote:
>
> I am using devfs and devfsd. This works fine. I want to move everything to use
> the new devfs nodenames. This has not been a problem with the exception of the
> use of pts's.
>
> With devfsd, xterm's work fine in XF86 3.3. W/o them, I get an error message
> that a pts couldn't be opened.
>
> I am not mounting devpts (as the devfs docs suggest). I do *not* want to
> upgrade to XF86 4.0 for a variety of unrelated reasons (as the docs do
> suggest).
>
> When I stop using devfsd, what do I need to mknod to get xterm's to work? (to
> allocate a pts properly)
>
> I am using glibc 2.1.3, BTW.
>
> Thanks.
>
> Paul Sack
>
> --
> Death is God's way of telling you not to be such a wise guy.
XF86 3.3 or XF86 4.0 does not make any difference, but perhaps
it makes a difference which version of xterm you use.
The pts' are used by xterm and also by many other programs,
even programs like screen which can run without any X server
use pts'. Try stracing a program using pts' with /dev on an
ext2 filesystem and /dev/pts on a devpts filesystem. And try
stracing the same program with the entire /dev hieracy on a
devfs filesystem.
Perhaps the problem has something to do with /dev/ptmx which
is used to create the /dev/pts entries.
--
Kasper Dupont
------------------------------
From: Erno Kuusela <[EMAIL PROTECTED]>
Subject: Re: Disable buffer cache
Date: 08 Jan 2001 11:28:17 +0200
In article <[EMAIL PROTECTED]>, Manoj Patil
<[EMAIL PROTECTED]> writes:
| I need to do disk read and writes bypassing the buffer cache.
you posted the same question to comp.unix.programmer without cross-posting.
don't do that. i posted an answer there.
(if you notice after posting that you should have used another
set of newsgroups, it is better to do a cancel or supersede).
-- erno
------------------------------
From: [EMAIL PROTECTED] (Drazen Kacar)
Crossposted-To: comp.unix.solaris
Subject: Re: Extending /proc filesystem on Solaris 7/8?
Date: Mon, 8 Jan 2001 09:28:47 +0000 (UTC)
Kaelin Colclasure wrote:
> [EMAIL PROTECTED] writes:
> > Solaris are coming into new meeting grounds (with differences). What
> > will be the next step in Solaris? Will it ever get something like the
> > extra "dumping ground" Linux has (but presumably with a different name)?
>
> Well in my book, the filesystem approach is a clear win over new system
> calls. It may be crufty, but it gets the job done! Makes me want to
> spend a few months really checking out Plan 9...
BTW, examining some binaries led me to believe that there is (or there
was) a way to add syscalls to Solaris kernel, but I was never able to find
any kind of documentation about that. Can anybody sched some light here?
I don't need it, but I'm just wondering.
--
.-. .-. A cubicle is just a padded cell without a door.
(_ \ / _)
| [EMAIL PROTECTED]
|
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: alt.linux
Subject: Re: Linux OS for the Apple Mac
Date: Mon, 08 Jan 2001 09:28:43 +0000
[EMAIL PROTECTED] wrote:
>
> Hi all,
> I would like to install a version of Linux on my
> Macintosh Performa
> Spec:
> MC68030 32bit processor
> 8mb RAM
> Interfaces : ADB port
> 2 RS-232/RS-422 serial ports
> SCSI interface
>
> Any ideas as to which version of Linux would be the best. It only has a
> 3.5 floppy disk drive
> Thanks for the help !
Check <URL:http://www.linux-m68k.org/>
Notice that you need to have MMU and FPU.
I don't know if theese are builtin to
MC68030 or if they have to be installed
separately.
If you want to do some serious work
you will probably also need a harddisk
or access to a network drive.
--
Kasper Dupont
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: In Kernel 2.4 cdrom mount..
Date: Mon, 08 Jan 2001 09:41:12 +0000
junwon,Seo wrote:
>
> I'm using the Redhat 6.2 and Kernel2.4.
> But, I can't mount cdrom.
> I have a IDE cdrom
>
> My command is following
>
> # mount /mnt/cdrom or
> # mount -t iso9660 /dev/cdrom /mnt/cdrom
>
> My error message is
> 'mount: special device /dev/cdrom does not exist'
>
> What's problem?
Normally /dev/cdrom is a symbolic link to the device driver
for cdrom. Check that the link exists and points to the
correct device.
What the correct device is depends on system configuration.
With ATAPI drives you have two different options, I think
IDE-SCSI is the best.
You need a kernel arguemnt that could be "hdc=ide-scsi"
assuming the CDROM is master on the secondary IDE
controller, otherwise "c" has to be replaced with another
letter.
If you are using LILO you will find documentation on
kernel arguments in the directory /usr/doc/lilo-0.xx.
You need to load the ide-scsi driver: Log in as root and
type "insmod ide-scsi".
And you need to make sure cdrom points to the correct
device which will be "scd0" if there are no SCSI controller
in the computer. Type "cd /dev ; ln -sf scd0 cdrom"
--
Kasper Dupont
------------------------------
** 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
******************************