Linux-Development-Sys Digest #960, Volume #7 Mon, 19 Jun 00 02:13:10 EDT
Contents:
Re: How to check the remained disk size in Linux (Kaz Kylheku)
Re: Running a.out? (Paul Kimoto)
Re: How to programm serial port? (Lac Hao Viet)
dynamic linker problem (Lim)
Re: Running a.out? ([EMAIL PROTECTED])
Calling ide ioctl from a driver (Jonathan Buzzard)
process cpu time ("Michael Faurot")
NVIDIA GLX Driver & XFree 4.0 (Me)
Re: polling the keyboard (Bertil Stroberg)
Re: __P prefix in pthreads.h (Frank Sweetser)
Re: [Help:] Problems with NFS Daemon under 2.2.16 kernel (Tom Eastep)
how to make a RPM? ("Harold")
Modifing packets on the wire ("Carver")
Re: Modifing packets on the wire (Ferriere65)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: How to check the remained disk size in Linux
Reply-To: [EMAIL PROTECTED]
Date: Sun, 18 Jun 2000 06:25:46 GMT
On Sun, 18 Jun 2000 12:57:43 +0800, Nera <[EMAIL PROTECTED]> wrote:
>Dear all
>
> How to check the remained disk size in Linux, like under DOS?
Using the df command or the statfs and fstatfs system calls in a program.
By the way, you might want to see the new thread in this newsgroup about
enlarging your disk size by 4 inches. ;)
--
#exclude <windows.h>
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Running a.out?
Date: 18 Jun 2000 02:32:50 -0500
Reply-To: [EMAIL PROTECTED]
In article <TVX25.72041$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Stephen Speicher <[EMAIL PROTECTED]> wrote:
>> Is there any way to run these a.out executables on the newer
>> RH 6.1 system?
> Try 'modprobe binfmt_aout' You may also need to install the libc5
> rpms.
libc5 was ELF. You will need the libc4 libraries.
--
Paul Kimoto
------------------------------
From: Lac Hao Viet <[EMAIL PROTECTED]>
Subject: Re: How to programm serial port?
Date: Sun, 18 Jun 2000 07:14:26 GMT
http://www.linuxdoc.org
look for Serial Progamming Howto
It explains deeply about Linux Serial Programming and has some extremely
useful links for Serial devices.
In article <[EMAIL PROTECTED]>,
"Marius Sturm" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am looking for informations about programming serial port,
> especially how to setup unnormal baudrates e.g. 16000 baud.
> Hope anybody can help me.
>
> Marius.
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Lim <[EMAIL PROTECTED]>
Subject: dynamic linker problem
Date: Sun, 18 Jun 2000 08:30:13 GMT
Hi,
I got some problems configuring kernel 2.2.16 on my linux box, when I
did "make xconfig" it gave me this error message. (I could manage to
upgrade my kernel before (from 2.2.5 to 2.2.15)):
[root@spica linux] make xconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/linux/scripts'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkparse.o
tkparse.c
cpp: -lang-c: linker input file unused since linking not done
BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info:
Assertion `! "bad dynamic tag"' failed!
make{1}: ***[tkparse.o] Error 1
make[1]: Leaving directory `/usr/src/linux/scripts'
make: ** [xconfig] Error 2
I tried to upgrade ld.so to version 1.9.9 but the upgrade failed and gave
me a similar message.
Could anyone tell me the what the problem is and how to solve it ?
Software version :
- egcs 1.1.2
- gcc --version 2.91.66
- ld.so 1.9.5
- binutils-2.9.5.0.22-6
- Redhat 6.0
- kernel 2.2.15
Any help will be appreciated
Thanks,
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Running a.out?
Date: Sun, 18 Jun 2000 12:52:03 GMT
Paul Kimoto <[EMAIL PROTECTED]> wrote:
> libc5 was ELF. You will need the libc4 libraries.
Whoops, I stand corrected. Shows you how long it's been since I used
the a.out format. My earlier post obviously should have said you'll
need to download an install libc4. Searching the RedHat CD for them
would be fruitless.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Jonathan Buzzard)
Subject: Calling ide ioctl from a driver
Date: Sun, 18 Jun 2000 15:53:30 +0100
I have written a device driver and ancillary programs for Toshiba laptops
that enables you to control all the power saving features of the laptop.
The problem is that a couple of models don't support setting the hard drive
standby time. What I would like to do is emulate the Toshiba power
saving calls for the models that don't support them by using the
standard IDE hard drive standby feature.
You can set this with an ioctl on /dev/hda, but this of course requires
write permission on /dev/hda which either requires root permission or
giving rather too much permission on /dev/hda.
If figure that I can call ide_ioctl directly from within the kernel,
but how do I get the struct inode and struct file parameters when in
the kernel?
JAB.
--
Jonathan A. Buzzard Email: [EMAIL PROTECTED]
Northumberland, United Kingdom. Tel: +44(0)1661-832195
------------------------------
From: "Michael Faurot" <[EMAIL PROTECTED]>
Subject: process cpu time
Date: 18 Jun 2000 13:46:11 GMT
I'm trying to devise a method, from within a shell program, to determine
if a specific process is hung or not. What I'm thinking of doing is
checking the amount of cpu time the process has used, sleep for several
minutes and then check again to see if that has increased or not.
I suspect I can do this by parsing one of the pseudo files under
/proc/PID (where PID represent the process ID of the process to checked).
Which pseudo file would tell me this and where within that file?
Thanks.
--
==============================================================================
Michael | mfaurot | Take everything in stride. Trample anyone who gets
Faurot | atww.net | in your way.
------------------------------
From: [EMAIL PROTECTED] (Me)
Crossposted-To: uk.comp.os.linux,comp.os.linux.x
Subject: NVIDIA GLX Driver & XFree 4.0
Date: 18 Jun 2000 18:18:02 GMT
Reply-To: [EMAIL PROTECTED]
Hi,
I am having some problems getting the Accerlearted GL code working on
my Linux box. I am running kernel 2.2.15 with glibc 2.0 (an upgrading
SuSE 6.1 distribution). I have successfully installed XFree 4.0 and
got everything working. I then installed Mesa 3.2 and got the libraries
compiled and all the demos running. I then downloaded the NVIDIA kernel
module and GLX drivers version 0.9-3 to run on my diamond viper 550
(TNT) card. I installed all the kernel modules and the GL libs from
the tarball distribution (taking care to rename old GL files). The
X server works fine. The problems start when I try to compile the
Mesa xdemo "glxinfo" with these libraries. I get the following output;
gcc -I../include glxinfo.c -L../lib -lglut -lGLU -lGL -o glxinfo
/usr/lib/libGL.so: undefined reference to `dlsym@@GLIBC_2.0'
/usr/lib/libGL.so: undefined reference to `dlerror@@GLIBC_2.0'
/usr/lib/libGL.so: undefined reference to `dlclose@@GLIBC_2.0'
/usr/lib/libGL.so: undefined reference to `dlopen@@GLIBC_2.1'
collect2: ld returned 1 exit status
I have tried including -ldl but still get;
gcc -I../include glxinfo.c -L../lib -lglut -lGLU -lGL -ldl -o glxinfo
/usr/lib/libGL.so: undefined reference to `dlsym@@GLIBC_2.0'
/usr/lib/libGL.so: undefined reference to `dlerror@@GLIBC_2.0'
/usr/lib/libGL.so: undefined reference to `dlclose@@GLIBC_2.0'
/usr/lib/libGL.so: undefined reference to `dlopen@@GLIBC_2.1'
collect2: ld returned 1 exit status
Does anyone recognise the mistake Im making? Anymore info needed?
one other point. When I checked my XFree4.0.log I noticed the following;
...
(II) [GLX]: __glXInitImports not found. GLX disabled
(II) [GLX]: Add the following line in your XF86Config file:
(II) [GLX]:
(II) [GLX]: Load "glx"
(II) [GLX]:
(II) [GLX]: More hints:
(II) [GLX]: Make sure you are loading libglx.so, not libglx.a
(II) [GLX]: Make sure you are NOT explictly loading libGLcore.
glx will load it.
...
despite the fact I have included the load glx line (and ensured that
libglx.a has been renamed).
Help.
--
Tony Lacey <[EMAIL PROTECTED]> [http://www.bupswee.net]
------------------------------
From: Bertil Stroberg <[EMAIL PROTECTED]>
Subject: Re: polling the keyboard
Date: Sun, 18 Jun 2000 22:24:13 +0200
Jeffrey Ric wrote:
> I am developping a program that needs to be able to react when the user
> presses a key. I was wandering if there is a library call that I could
> use to get the next character if something has been pressed or a null in
> other cases. (Program is written in C++). Any help will be
> appreciated.
>
> Jeffrey
I've used the select() on serial and network stuff and it might work fine
on the keyboard, so give it a try.
--Bertil
------------------------------
From: [EMAIL PROTECTED] (Frank Sweetser)
Subject: Re: __P prefix in pthreads.h
Date: 18 Jun 2000 21:11:23 GMT
Geoff Marshall <[EMAIL PROTECTED]> wrote:
>I thank you for your help. OK. I think I'm barking up the wrong tree.
>Here's my real problem:
>
>[geoff@ATHENA geoff]$ gcc server.c -oserverd -ansi
>/tmp/ccSaSYrl.o: In function `main':
>/tmp/ccSaSYrl.o(.text+0x18): undefined reference to `pthread_create'
>collect2: ld returned 1 exit status
The unresolved reference is at linking time - it can't find the actual
definition of pthread_create. You need to tell the linker to include the
pthread library - add '-lpthread' onto the end of the command line.
--
Frank Sweetser rasmusin at wpi.edu, fs at suave.net
Full-time WPI Network Tech, Part time Linux/Perl guy
You're immune to both romance and mirth! you must be a.. a...
Yes, that's right. I'm an engineer.
- Dilbert
------------------------------
From: [EMAIL PROTECTED] (Tom Eastep)
Crossposted-To:
comp.os.linux.setup,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.help
Subject: Re: [Help:] Problems with NFS Daemon under 2.2.16 kernel
Reply-To: [EMAIL PROTECTED]
Date: Sun, 18 Jun 2000 16:53:15 -0700
Jose Manuel Benitez Sanchez wrote:
>Kaz Kylheku wrote:
>>
>> On Fri, 16 Jun 2000 20:58:54 +0200, Jose Manuel Benitez Sanchez
>> <[EMAIL PROTECTED]> wrote:
>> >Jun 14 12:21:46 bahia rpc.nfsd: nfssvc: Function not implemented
>>
>> Jose, you did not compile the NFS server kernel code! Reconfigure your
>> kernel, and say yes to be prompted for new, experimental and incomplete
>> code. Then the NFS server configuration option will be available to you.
> That's true, but I don't intend to use the kernel NFS server, but an
>external NFS server as installed by the nfs-utils package. It did work
>with the kernel bundled together with the distribution (2.2.14-5).
>That's the way I'd like it working with the new kernel.
>
nfs-utils is not an NFS server -- it's simply the tools that work with
knfsd. Kaz is correct -- you need to enable kernel NFS server support.
-Tom
--
Tom Eastep \ Eastep's First Principle of Computing:
ICQ #60745924 \ "Any sane computer will tell you how it
[EMAIL PROTECTED] \ works if you ask it the proper questions"
Shoreline, Washington USA \___________________________________________
------------------------------
From: "Harold" <[EMAIL PROTECTED]>
Subject: how to make a RPM?
Date: Mon, 19 Jun 2000 09:28:32 +0800
This is a multi-part message in MIME format.
=======_NextPart_000_0007_01BFD9D0.BC3247E0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Untitled DocumentIs there some downloadable tools?
Thanks!
==========================================================================
=======
Welcome to my linux page:
Linux Paradise (under construction)
BTW: Because my job is so busy, I=20
want some friend to maintain this=20
site with me together, please give=20
me some suggestion.
Thanks.=20
=======_NextPart_000_0007_01BFD9D0.BC3247E0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Untitled Document</TITLE>
<META content=3D"text/html; charset=3Dgb2312" =
http-equiv=3DContent-Type><BASE=20
href=3Dfile://C:\WIN98\Desktop\>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Is there some downloadable tools?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<HR>
<BR>
<P>Welcome to my linux page:<BR><A href=3D"http://hyang.uhome.net"=20
target=3D_blank>Linux Paradise</A> (under construction)<BR>BTW: Because =
my job is=20
so busy, I <BR>want some friend to maintain this <BR>site with me =
together,=20
please give <BR>me some suggestion.<BR>Thanks. </P></BODY></HTML>
=======_NextPart_000_0007_01BFD9D0.BC3247E0==
------------------------------
From: "Carver" <[EMAIL PROTECTED]>
Subject: Modifing packets on the wire
Date: Mon, 19 Jun 2000 00:24:48 -0700
Hi, in my network I've got a router that is installed between two subnets.
I want it to take each packet that moves from A to B (or B to A) and modify
it in a specific way. I know that I might have to muck around with kernel
code, so I was wondering if I could do this in user space by using
SOCK_PACKET or something like that. Does anyone have any idea of how I can
accomplish this?
Also, it might be helpful to know that I'm going to develop the program
using redhat 6.2.
Thanks,
Carver
------------------------------
From: [EMAIL PROTECTED] (Ferriere65)
Subject: Re: Modifing packets on the wire
Date: 19 Jun 2000 05:41:08 GMT
>Hi, in my network I've got a router that is installed between two subnets.
>I want it to take each packet that moves from A to B (or B to A) and modify
>it in a specific way. I know that I might have to muck around with kernel
>code, so I was wondering if I could do this in user space by using
>SOCK_PACKET or something like that. Does anyone have any idea of how I can
>accomplish this?
>
>Also, it might be helpful to know that I'm going to develop the program
>using redhat 6.2.
>
>Thanks,
>Carver
>
>
>
see at http://phrack.infonexus.com/search.phtml?view&article=p56-10
I think you'll find there exactly what you are looking 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 (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
******************************