Linux-Development-Sys Digest #636, Volume #6 Mon, 19 Apr 99 15:13:56 EDT
Contents:
Threads ("K Prabhakaran")
Re: New to Linux -- How to mount MSDOS floppy (Daniel Robert Franklin)
Re: New to Linux -- How to mount MSDOS floppy (Arun Sharma)
Kernel 2.2.6; missing linux/irda.h (Richard Henschel)
Re: do I need all libfoo.so.2.0.x , libfoo.so.2.1 (Richard Henschel)
Building pgcc-1.1.2 (Alexander Rodyukov)
Re: msdos module broken under 2.2.6 (David Ronis)
Re: Linux system ID, is there such a thing? (Justin Vallon)
libc5 v's libc6 - Problem linking against libc.so.5 (Shaun Cloherty)
After install 2.2.5 I lost DHCP !!!! (Jorge Ventura)
I want Ctrl-Alt-Pause do a shutdown (system halt) (David Guyon Martin)
Can device driver use the filing system? (Philip Boucherat)
Re: [Q] Linux pstat() or table() equivalent (Paul Roebuck)
linux-kernel using nntp ? (Arun Sharma)
Showing process priority/scheduler (pmueller)
New to Linux -- How to mount MSDOS floppy ([EMAIL PROTECTED])
question on ext2 fs warnings (Bill Greene)
"Permission denied" ("Bill Zimmerly")
----------------------------------------------------------------------------
From: "K Prabhakaran" <[EMAIL PROTECTED]>
Subject: Threads
Date: Mon, 19 Apr 1999 03:52:40 -0700
Hi All
I want to use threads in Linux 2.0.35. I found a lot of threads library in
http://linas.org/linux/threads-faq.html. But i am little bit confused of
which one to use. Basically i am going to use in a multi-threaded TCP/IP
server. So are these thread libs are multi-threaded safe, especially when i
use with sockets. I am sure someone might have done lots of testing with all
these libs and found a best one. And i did a few testing.
First i tested the code in SUN Solaris(Office machine) after that i moved
the code to linux(Home machine) and tested with these libraries and found
somethings in that, which i couldn't found or no need in solaris
with
LinuxThreads
In this for every threads it is creating a process(not really), like
when i do a "ps" command it shows all the threads i created as a process.
Why it is?
FSU Pthreads
This library has its own implementation of memory(malloc, free)
routines. These routines hangs.
PCThreads.
Using this library causes lot of extra coding. Like
pthread_cond_init(&_cond, NULL);
pthread_mutex_init(&_lock, NULL);
(void) pthread_attr_init(&attrib);
(void) pthread_attr_setdetachstate(&attrib, PTHREAD_CREATE_JOINABLE);
(void) pthread_attr_setschedparam(&attrib, ¶m);
(void) pthread_attr_setstacksize(&attrib, STACK_SIZE);
These are needed when creating threads, mutex lock and condition variables.
Which is not required in any other linux implementation and in Solaris.
Provenzano Pthreads
This version seems to be working fine.
But i am confused with, which one to choose for the implementation. And what
to do for libsocket to be thread safe. Because i want to catch the errors in
socket, for each thread, but this is not happening now, and it is always
zero.
Thanks
-prabha
------------------------------
From: [EMAIL PROTECTED] (Daniel Robert Franklin)
Subject: Re: New to Linux -- How to mount MSDOS floppy
Date: 19 Apr 99 06:19:59 GMT
[EMAIL PROTECTED] writes:
>I have a 1.44 MB floppy formatted with MSDOS and I want to mount it and
>copy files off of it. What is the exact command I use?
mount -t vfat /dev/fd0 /floppy
or substitute msdos for vfat if you prefer.
/dev/fd0 represents your first floppy drive, /floppy is where you want to
mount the filesystem (could equally be /mnt or wherever you like as long
as the directory is empty).
To save typing all that stuff every time you wish to mount the device, add
an entry like this in your /etc/fstab:
/dev/fd0 /floppy auto user,noauto 0 0
which will let any user with read/write permission on /dev/fd0 mount the
floppy on /floppy by simply typing "mount /floppy". It will also figure
out what kind of floppy you have (e.g. ext2, msdos, minix) automatically.
Don't forget to type umount /floppy from somewhere other than under
/floppy before you remove it!
Also look at the mtools package.
Cheers,
- Daniel
--
******************************************************************************
* Daniel Franklin - Postgraduate student in Electrical Engineering
* [EMAIL PROTECTED]
******************************************************************************
------------------------------
Subject: Re: New to Linux -- How to mount MSDOS floppy
From: Arun Sharma <[EMAIL PROTECTED]>
Date: Mon, 19 Apr 1999 06:29:07 GMT
[EMAIL PROTECTED] writes:
> I have a 1.44 MB floppy formatted with MSDOS and I want to mount it and
> copy files off of it. What is the exact command I use?
>
Use mtools. (mcopy, mdir etc) - easier than mounting the floppy. If
you have to, try "mount /mnt/floppy" or "mount -t msdos /dev/fd0
/mnt/floppy".
-Arun
------------------------------
From: [EMAIL PROTECTED] (Richard Henschel)
Subject: Kernel 2.2.6; missing linux/irda.h
Date: Sun, 18 Apr 1999 23:41:30 GMT
I get this while compiling irlmp.c in the 2.2.6 kernel:
make -C irda modules
make[2]: Entering directory `/usr/src/linux/net/irda'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -c -o irlmp.o irlmp.c
irlmp.c:35: linux/irda.h: No such file or directory
irlmp.c: In function `irlmp_do_discovery':
irlmp.c:689: `CS_ASCII' undeclared (first use this function)
irlmp.c:689: (Each undeclared identifier is reported only once
irlmp.c:689: for each function it appears in.)
irlmp.c: In function `irlmp_get_discovery_response':
irlmp.c:866: `CS_ASCII' undeclared (first use this function)
irlmp.c: In function `irlmp_hint_to_service':
irlmp.c:1013: `HINT_PNP' undeclared (first use this function)
irlmp.c:1015: `HINT_PDA' undeclared (first use this function)
irlmp.c:1017: `HINT_COMPUTER' undeclared (first use this function)
irlmp.c:1019: `HINT_PRINTER' undeclared (first use this function)
irlmp.c:1023: `HINT_MODEM' undeclared (first use this function)
irlmp.c:1025: `HINT_FAX' undeclared (first use this function)
irlmp.c:1027: `HINT_LAN' undeclared (first use this function)
irlmp.c:1036: `HINT_EXTENSION' undeclared (first use this function)
irlmp.c:1037: `HINT_TELEPHONY' undeclared (first use this function)
irlmp.c:1040: `HINT_FILE_SERVER' undeclared (first use this function)
irlmp.c:1043: `HINT_COMM' undeclared (first use this function)
irlmp.c:1047: `HINT_OBEX' undeclared (first use this function)
irlmp.c: In function `irlmp_service_to_hint':
irlmp.c:1077: `HINT_PNP' undeclared (first use this function)
irlmp.c:1080: `HINT_PDA' undeclared (first use this function)
irlmp.c:1083: `HINT_COMPUTER' undeclared (first use this function)
irlmp.c:1086: `HINT_PRINTER' undeclared (first use this function)
irlmp.c:1092: `HINT_LAN' undeclared (first use this function)
irlmp.c:1095: `HINT_EXTENSION' undeclared (first use this function)
irlmp.c:1096: `HINT_COMM' undeclared (first use this function)
irlmp.c:1100: `HINT_OBEX' undeclared (first use this function)
make[2]: *** [irlmp.o] Error 1
So I assume I am missing a header file (linux/irda.h)
because I could not find these macros defined anywhere...
Can this be added to 2.2.7 please? 8^).
------------------------------
From: [EMAIL PROTECTED] (Richard Henschel)
Subject: Re: do I need all libfoo.so.2.0.x , libfoo.so.2.1
Date: Sun, 18 Apr 1999 23:48:44 GMT
On Wed, 31 Mar 1999 21:55:27 +0000, mack <[EMAIL PROTECTED]> wrote:
>my /lib directory has groups of files like
>
>
>
>-rwxr-xr-x 1 root root 12859 Oct 7 1997 libBrokenLocale-2.0.5.so*
>-rwxr-xr-x 1 root root 45080 Jan 10 18:30 libBrokenLocale-2.0.7.so*
>-rwxr-xr-x 1 root root 22090 Jan 2 11:18
>libBrokenLocale-2.0.108.so*
>-rwxr-xr-x 1 root root 22090 Jan 6 08:55
>libBrokenLocale-2.0.109.so*
>-rwxr-xr-x 1 root root 21922 Feb 27 01:55 libBrokenLocale-2.1.so*
>lrwxrwxrwx 1 root root 22 Feb 27 02:06 libBrokenLocale.so.1 ->
>libBrokenLocale-2.1.so*
>
>now I'm at 2.1, do I need all these files?
Only perhaps if you have old applications linked with these
shared libraries. A utility script called binstats by
Peter Chang ([EMAIL PROTECTED]) would help you find out...
>
>thanks
>Joe
>
>--
>Joseph Mack, NA3T, FM05lw EME(B,D)
>AZ_PROJ map server at http://www.wm7d.net/azproj.shtml
>mailto:[EMAIL PROTECTED]
------------------------------
From: Alexander Rodyukov <[EMAIL PROTECTED]>
Subject: Building pgcc-1.1.2
Date: Mon, 19 Apr 1999 03:00:43 GMT
Hello, Friends.
I'm running into pretty strange problem... while trying to compile
pgcc-1.1.2 i'm getting following results:
$ ./configure --prefix=/BUILD/usr --with-gnu-ld -with-gnu-as
$ make bootstrap
[..skip..]
haifa-sched.c:8259: Internal compiler error in function update_flow_info
make[2]: *** [mkstemp.o] Error 1
make[2]: Leaving directory /BUILD/usr/src/Development/egcs-1.1.2/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory /BUILD/usr/src/Development/egcs-1.1.2/gcc'
make: *** [bootstrap] Error 2
Any ideas how to fix it?
Linux BOLiVAR 2.2.4 #1 Wed Mar 24 19:55:11 GMT-7 1999 i686 unknown
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.3/specs
gcc version 2.7.2.3
$ ld -V
GNU ld version 2.9.1 (with BFD 2.9.1.0.23)
Supported emulations:
elf_i386
i386linux
-- With best regards, Alexander.
Sigh. I like to think it's just the Linux people who want to be
on the "leading edge" so bad they walk right off the precipice.
------------------------------
From: David Ronis <[EMAIL PROTECTED]>
Subject: Re: msdos module broken under 2.2.6
Date: Mon, 19 Apr 1999 03:10:00 GMT
I just tried the last poster's suggestion of doing a make mproper before
rebuilding 2.2.6; Aside from blowing away my old .config file, it didn't
help. I still get the unresolved is_binary message. I'm now trying to
build a kernel with msdos support compiled in (not as a module).
David
------------------------------
From: Justin Vallon <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Linux system ID, is there such a thing?
Date: 18 Apr 1999 23:56:04 -0400
[EMAIL PROTECTED] (Peter Samuelson) writes:
> [Clint Byrum <[EMAIL PROTECTED]>]
> In an environment where the computers weren't networked anyway, why
> would it be important to identify them (more or less) uniquely?
Licensing?
--
-Justin
[EMAIL PROTECTED]
------------------------------
From: Shaun Cloherty <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,gnu.gcc.help
Subject: libc5 v's libc6 - Problem linking against libc.so.5
Date: Mon, 19 Apr 1999 19:11:24 +1000
All,
I have a RedHat 5.0 system (default std library is libc.so.6), and I'm
attempting to develop some software which must be linked with a set of
shared libraries linked against libc.so.5. The libraries are distributed
by a commercial entity who won't supply source code (so I can't build
the libraries myself), nor will they supply a libc6 version of the
libraries.....
I have downloaded and installed the libc5 rpm's from RedHat, namely
libc5-5.4.38-3.i386.rpm
libc5-devel-5.4.38-3.i386.rpm
These file dump the libraries and include files in
/usr/i486-linuxlibc5/lib and /usr/i486-linuxlibc5/include respectively.
I added /usr/i486-linuxlibc5/lib to /etc/ld.so.conf and ran
/sbin/ldconfig as root to update the links and cache to include the new
libraries. All appears fine up to this point, I checked that the new
files were found by ld.so by running /sbin/ldconfig -p.
The original libraries are in /usr/local/lib, and are also listed in the
output from /sbin/ldconfig -p.
Now, the glibc2-HOWTO dealing with compiling/linking against libc5 when
libc6 (glibc2) is the primary library, says to use the -b option with
gcc; something like
LDFLAGS = -b i486-linuxlibc5.
in the Makefile
My problem is that I don't have a directory tree called
'i486-linuxlibc5' under /usr/lib/gcc-lib/.
What should this directory contain..... Can I simply copy and modify the
existing directory structure corresponding to glibc2?
The existing directory structure under /usr/lib/gcc-lib/ is
i386-redhat-linux/2.7.2.3/ which somehow tells the linker to link
against the primary library i.e. libc6. It contains an include
sub-directory, the C pre-processor (cpp), a handful of object (.o)
files, and a specs file..... I think the specs file is the key..... I
assume I have to make some change to the specs file, but I have no idea
where to start..... can anyone shed any light on this?
Any help greatly appreciated.....
Shaun
--
Shaun Cloherty
Graduate School of Biomedical Engineering
University of New South Wales
------------------------------
Date: Sun, 18 Apr 1999 21:28:44 -0300
From: Jorge Ventura <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: After install 2.2.5 I lost DHCP !!!!
After re-config (several times) the kernel to get the same as in 2.0.36
the best I get was:
1. All the printer drivers linked with the kernel (in 2.0.36 it works as
modules).
2. I had to give up DHCP.
Any suggestion (about dhcp) ???
Thanks in advance.
Ventura
------------------------------
From: David Guyon Martin <[EMAIL PROTECTED]>
Subject: I want Ctrl-Alt-Pause do a shutdown (system halt)
Date: Mon, 19 Apr 1999 11:44:10 +0200
I want Ctrl-Alt-Pause to do a shutdown (system halt).
Ctrl-Alt-Del is Ok to reboot, but when I want to stop my desktop
computer at home I have to type /sbin/halt
Too long and not friendly for other people who started using linux
instead of Windows.
I just want to hack the kernel and make it read in /etc/inittab a line
with ctrlaltpause:/sbin/halt
Let me know it is a good idea and easy to do, I know C programming but
nothing about kernel development...
David
(remove .nospam.please from my e-mail to answer )
------------------------------
From: Philip Boucherat <[EMAIL PROTECTED]>
Subject: Can device driver use the filing system?
Date: Fri, 16 Apr 1999 16:32:49 +0100
Hi,
According to people on the RedHat mailing list, I am strongly advised
not to try and use the filing system from a device driver I'm developing
for RedHat V5.2.
I would like someone out there to tell me it *is* OK to read/write files
from a driver (and preferably how to do it). The file access is only
during driver load and unload - I need to read firmware from a file and
download it to the device - and I would have thought the driver would be
called in some sort of user context at these times so it shouldn't be
too much of a problem.
I can do this in Windows NT and 95. For NetWare I've got a separate
daemon-type module that is there solely to access the file system, and
when the driver wants a file, it sends a message to the module via
shared memory and the daemon fetches the file and sends it back to the
driver via the same shared memory - would this sort of arrangement be
possible in Linux - i.e. can a user process and a driver communicate via
shared memory, or any other way, given that the driver needs to initiate
the communication?
Thanks in advance,
Phil.
--
Philip Boucherat
------------------------------
Date: Mon, 19 Apr 1999 07:45:23 -0500
From: [EMAIL PROTECTED] (Paul Roebuck)
Subject: Re: [Q] Linux pstat() or table() equivalent
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jens-Uwe Mager) wrote:
>On Sun, 18 Apr 1999 00:02:43 -0500, Paul Roebuck <[EMAIL PROTECTED]> wrote:
>>I was trying a quick port of a library I have that runs on both HP-UX and
>>Digital Alpha.
>>It works fine except I don't know the equivalent routine under Linux. I
>>have another
>>vanilla version that parses "ps" output obtained via popen() but that
>>seems clumsy
>>and inelegant. Can someone provide an elegant Linux solution, if one
>>exists? Thanks.
>
>[ cut code ]
>
>check out /proc/self/cmdline, this appears to be what you want.
Is the /proc filesystem guaranteed to be accessible? On some systems I
have used in the past, there were security considerations as to whether
this filesystem would be mounted. Is this not the case for Linux?
------------------------------
From: [EMAIL PROTECTED] (Arun Sharma)
Subject: linux-kernel using nntp ?
Reply-To: [EMAIL PROTECTED]
Date: Mon, 19 Apr 1999 03:47:24 GMT
Hi,
Is there any publicly accessible NNTP server which provides read-only
access to the linux-kernel mailing list ?
-Arun
------------------------------
From: pmueller <[EMAIL PROTECTED]>
Subject: Showing process priority/scheduler
Date: Mon, 19 Apr 1999 16:05:57 +0200
Hi,
I have developed an application that set the process priority/scheduler
algorithm to "max proiority"/FIFO. How can I check the result? Top
displays as NI value always 0. Is there a special tool necessary to
display the scheduling strategy an priority of a process??
Peter
------------------------------
From: [EMAIL PROTECTED]
Subject: New to Linux -- How to mount MSDOS floppy
Date: Mon, 19 Apr 1999 06:04:52 GMT
I have a 1.44 MB floppy formatted with MSDOS and I want to mount it and
copy files off of it. What is the exact command I use?
nh
P.S. I'm using RedHat 5.2
------------------------------
From: [EMAIL PROTECTED] (Bill Greene)
Subject: question on ext2 fs warnings
Date: Mon, 19 Apr 1999 17:50:12 GMT
During boot, when starting up a fax system, I get 6 warnings on the
console. All are on the hard drive, and are from the routine
ext2_bmp. The first is "block < 0", and the other five are "block >
big". It is listed as a warning, and it appears the fax software
works correctly.
I went so far as to look at the code of ext2_bmp, and can find the
"if" and the message, but what condition is actually being checked for
is beyond what I can figure out.
So my question is, is it worrysome, and what does it actually mean (if
for no other reason, curiosity).
Thanks!
-- bill
Bill Greene
The Rubicon Group, Ltd.
[EMAIL PROTECTED]
------------------------------
From: "Bill Zimmerly" <[EMAIL PROTECTED]>
Subject: "Permission denied"
Date: Mon, 19 Apr 1999 09:25:58 -0500
Dear Linux Gurus,
I've been using Linux 2.0.32 from the Red Hat 5.1 distribution on my email
server for over a year now, and all of a sudden, yesterday afternoon, I
heard that distinctive grinding sound of the floppy drive arm moving
whenever the machine is rebooting.
I don't know whether or not my email server was hacked, there were a few
failed telnet attempts in the log prior to the "crash", but clearly when the
machine came back up, I was in trouble. I couldn't Telnet, FTP, or connect
to my POP3 mailbox anymore. :-( From the "/var/log/messages" file I saw
that I could no longer restart the daemons that run these important
processes...
.
.
inetd[232] ftpd/tcp bind: Permission denied
inetd[232] telnetd/tcp bind: Permission denied
inetd[232] pop3d/tcp bind: Permission denied
.
.
.
etc.
I have heard of the rock-solid performance of Linux and of the legendary
helpfulness of the online Linux community. Since I put up this server over a
year ago, and until yesterday had never experienced a failure, they was no
doubt in my mind of the truth of the former. Now, I am in great need of the
latter!!
What files are needed by "inetd", "bind", or the aforementioned daemons???
Is the log showing a file-permission problem or perhaps a port-permission
problem? Has my "root" lost certain privileges?
I looked at the "inetd.conf" file and all seems to be okay. "root" is how
these processes are started! HELP!!!!!!!
------------------------------
** 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
******************************