Linux-Development-Sys Digest #818, Volume #7 Tue, 2 May 00 23:13:14 EDT
Contents:
How are dynamic libs found ([EMAIL PROTECTED])
Re: How are dynamic libs found (=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?=)
Re: Ethernet Controller CS8900 supported by linux? (Anders Larsen)
RE: route.c - HOW DOES IT WORK ("oscar legat")
Re: (yet another newbie question) (Rick Ellis)
Re: Have new parallel port - but it's PCI!! (Henrik Carlqvist)
Re: expanding a filesystem (Markus Kossmann)
Re: How do you ascertain the number of bytes to read of a packet? (Gordon Warren)
how to retrieve libs from ld.so.cache ([EMAIL PROTECTED])
Re: Help with finding the ftp source code (Jim Darrnall)
Re: CPU Load <- off by 1.00 (Kinkie)
get_user and bottom half help (Eric)
Questions on Priority in Traffic Control(QoS) ([EMAIL PROTECTED])
Re: compiling with libc5 under a glibc2 system ("H.J. Lu")
Re: How are dynamic libs found (David T. Blake)
Re: Have new parallel port - but it's PCI!! (Chris Rankin)
network code tutorial? (Weiguang Shi)
Re: how to retrieve libs from ld.so.cache (Paul Kimoto)
?Linux RS/6000 ? (Edcoy)
Re: CPU Load <- off by 1.00 (Hans-Joachim Baader)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: How are dynamic libs found
Date: Tue, 02 May 2000 15:59:01 GMT
Hi all
A Program of mine needs a certain dynamic library,
that I moved from '/usr/lib' to '/usr/local/lib'.
'/usr/local/lib' is listed in '/etc/ld.so.conf'.
So, why is it not found a the new place?
I thought '/etc/ld.so.conf' is to finding a dynamic library,
like $PATH to finding programs - seems to be wrong?!
Can anybody explain this to me?
thanks in advance
Irgei M-T
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <[EMAIL PROTECTED]>
Subject: Re: How are dynamic libs found
Date: Tue, 2 May 2000 18:12:57 +0200
On Tue, 2 May 2000 [EMAIL PROTECTED] wrote:
> Hi all
>
> A Program of mine needs a certain dynamic library,
> that I moved from '/usr/lib' to '/usr/local/lib'.
>
> '/usr/local/lib' is listed in '/etc/ld.so.conf'.
> So, why is it not found a the new place?
Dynamic libraries are 'cached' in /etc/ld.so.cache, so the loader doesn't
have to look for them each time.
> I thought '/etc/ld.so.conf' is to finding a dynamic library,
> like $PATH to finding programs - seems to be wrong?!
>
> Can anybody explain this to me?
Yep. yoy simply have to update the dynamic libraries cache by doing a
ldconfig as root. Then it should work
Rasmus B�g Hansen
------------------------------
From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: Ethernet Controller CS8900 supported by linux?
Date: Tue, 02 May 2000 18:06:05 +0200
Eko Bono Suprijadi wrote:
>
> Hi all,
> I have a PC104 Board with Ethernet Controller CS8900.
> Anyone knows, if this controller is supported by linux?
> I just want run this PC104 Board under Real Time Linux.
> Thanks for info...
>From /usr/src/linux/Documentation/Configure.help:
CS89x0 support
CONFIG_CS89x0
Support for CS89x0 chipset based Ethernet cards. If you have a
network (Ethernet) card of this type, say Y and read the
Ethernet-HOWTO, available via FTP (user: anonymous) in
ftp://metalab.unc.edu/pub/Linux/docs/HOWTO as well as
Documentation/networking/cs89x0.txt.
If you want to compile this as a module ( = code which can be
inserted in and removed from the running kernel whenever you want),
say M here and read Documentation/modules.txt as well as
Documentation/networking/net-modules.txt. The module will be called
cs89x.o.
--
cheers
Anders Larsen
e-mail: alarsen AT baumerident DOT com
Q: What does the CE in Windows CE stand for?
A: Caveat Emptor
------------------------------
From: "oscar legat" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.networking
Subject: RE: route.c - HOW DOES IT WORK
Date: Tue, 2 May 2000 18:42:45 +0200
Tobias J�nsson <[EMAIL PROTECTED]> escribi� en el mensaje de noticias
8ec5ab$119$[EMAIL PROTECTED]
> Hi
>
> Currently I'm trying to route one incoming packet to two outgoing
interfaces
> (packet duplication). To do this I will probably try modifying the route.c
> code. Therefore, I have the following questions:
>
> - Can anyone point me to any kind of documentation for route.c? ...how it
> works, how it gets called, etc
> - Is there anyone who have done this hack before, or knows how, and where,
> to do it?
>
> Thanks in advance
>
> Tobias J�nsson, KTH, Stockholm
>
>
You should try in this link: www.packetfactory.net . With the 'libpcap' and
'libnet' libraries you can do anything you need.
Oscar Legat ....
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: (yet another newbie question)
Date: 2 May 2000 17:13:49 GMT
In article <[EMAIL PROTECTED]>,
Pipegeek <[EMAIL PROTECTED]> wrote:
>Is there a version of Quicktime (or some sort of clone) for Linux? This is
>(oddly enough) one of the major factors in whether or not I switch OSs.
You can compile xanim with quicktime support.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: Henrik Carlqvist <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Have new parallel port - but it's PCI!!
Date: Mon, 01 May 2000 20:08:04 +0200
Chris Rankin wrote:
> Does anyone know of a good disassembler for Linux so that I can pull
> this thing apart, if necessary?
You probably already have objdump in your distribution. It can be used
to disassemble a program like this:
objdump -d /bin/ls
gnu as is the default assembler in most distributions, but there is also
another one which uses a different syntax which some people prefer:
nasm. You will find it at:
http://www.cryogen.com/Nasm/
ftp://ftp.us.kernel.org/pub/software/devel/nasm/source/
There is also a nice graphical disassembler called ldasm. You will find
it at:
http://rover.wiesbaden.netsurf.de/~ravemax/ldasm.htm
I'm no assembler expert in Linux. So far I have been able to disassemble
files and recognise what they do. However, I haven't been able to
reassemble a file once it has been disassembled.
regards Henrik
--
spammer strikeback:
root@localhost
[EMAIL PROTECTED]
------------------------------
From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: expanding a filesystem
Date: Tue, 02 May 2000 18:53:59 +0200
"Ramaprasad K.R." wrote:
>
> Hi
>
> Can a ext2 filesystem be expanded ?
Yes. There is a list of ext2 resize utilities at
http://linux.msede.com/ext2/
--
Markus Kossmann
[EMAIL PROTECTED]
------------------------------
From: Gordon Warren <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.development.app
Subject: Re: How do you ascertain the number of bytes to read of a packet?
Date: Tue, 02 May 2000 14:43:28 -0400
[EMAIL PROTECTED] wrote:
> How does one calculate the number of bytes to read of a received packet
> on Linux? On Solaris, I would do it this way:
>
> int pkt_len;
> ioctl(sockno, I_NREAD, &pkt_len);
ioctl(sockno, FIONREAD, &pkt_len);
--
=============================================================
= Gordon Warren [EMAIL PROTECTED] =
= GPG Public key http://members.xoom.com/gwarren/gpg.pubkey =
= Home page http://members.xoom.com/gwarren/ =
=============================================================
------------------------------
From: [EMAIL PROTECTED]
Subject: how to retrieve libs from ld.so.cache
Date: Tue, 02 May 2000 19:53:10 GMT
Hi All
I just removed some libs from '/usr/lib'
that I don't find on my other machines.
Is there a convenient way to do
reverse engineering to get the lib file
from '/etc/ld.so.cache'?
thanks,
Irgei
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Jim Darrnall <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel,linux.sources.kernel,comp.os.linux.development
Subject: Re: Help with finding the ftp source code
Date: Tue, 02 May 2000 15:36:10 -0500
Xiaofeng Tan wrote:
> I am really new to the linux kernel. I just wonder if anyone could tell
> me where I can find the ftp source code? Thanks a lot.
>
> Tom
It's on the 2nd cdrom
JD
------------------------------
From: Kinkie <[EMAIL PROTECTED]>
Subject: Re: CPU Load <- off by 1.00
Date: 02 May 2000 22:26:57 +0200
Reply-To: [EMAIL PROTECTED]
Rao VA <[EMAIL PROTECTED]> writes:
> A 2.0.38 kernel, which has been running for 65 days shows a load that
> never drops below 1.00, even when the system is apparently idle for longer
> periods of time.
>
> I've been investigating processes for anamolies, the only suspect is an xntpd
> that's constantly in the Run state, however doesn't seem to consume CPU
> cycles. I can't kill this process and even though the process is in the Run
> state, a 'strace' on the process doesn't show anything.
A process will be in the "Run" state (or at least will be accounted for in
the CPU load) also when it's waiting on some file operation (see for
instance the spikes when some NFS server dies).
--
/Kinkie
Se sulla scatola c'e` scritto "Per windows 95 e superiori", dovrebbe
funzionare sotto Linux, vero?
------------------------------
From: Eric <[EMAIL PROTECTED]>
Subject: get_user and bottom half help
Date: Tue, 02 May 2000 13:22:43 -0700
Hi:
I am an old o.s. hacker, but new to linux. I have a dynamic profiler
application I want to port to linux from vax vms. I need to be able to
see what a process is doing w/o modifying it's code or even compiling it
with any profiling options. The app i need to monitor will be running
non-stop for weeks so the standard profiling techniques of gcc will not
work
for me.
What I want to do is:
50 times a second (or so), scan a particular app's (chosen by pid)
memory
so i can determine the current pc and the call stack (limit say 5
calls).
I want the stack scan to be able to tell if the pc (or caller's pc) is
in the application or
a shared library or whatever so I can "charge" cpu time to a caller
instead
of some library routine.
So...
I was wondering about the following items:
1. I need to have my module get control with my target process context
in place
Can I write a bottom-half routine that checks checks current->"process
id" or
whatever, and then if i have a match, begin to poke around the process's
memory
space using the get_user kernel call? What I am uncertain about is:
Will this allow me to get control while the target process is still
mapped or
is that a non issue (but get_user does not include a proc id, so i
assume it
operates on the "current" process).
What about smp. Can I force my target process to always use a particular
processor,
and run a hi-prior-real-time process that wakes up 50 times a sec to
force a resched
of my target process at least that often?
2. What about access violations from kernel mode.
On prior systems, I've been able to use some sort of probe-like
operation that
would allow me to test access to user memory BEFORE i try to read the
location so
i would not get an acc vio in kernel mode. Does linux have such a thing?
Is an
acc vio in kernel mode a crash? If not, what happens.
I've looked at the kernel module programming docs, and there is an
example of a
sys call hack that will spy on a process and watch the files it opens.
It then
uses printk to trace the name of the file. But what if the traced system
call
passes in a bad file name pointer. Will the system crash?
What about printk, what happens if it does try to use a bad pointer?
thanks
eric
------------------------------
From: [EMAIL PROTECTED]
Subject: Questions on Priority in Traffic Control(QoS)
Date: Tue, 02 May 2000 21:18:30 GMT
Hi, All
When doing experiments on Linux Traffic Control, I run into
some problems. One of them is that I can't see the priorities o
f classes affect their queuing delays.
The following is my testbed:
192.168.3.x
==========>flow 3
======= Linux Router
|------++++++++++ 172.16.79.123
eth1 + + -------
eth2 + + eth0
|------++++++++++
=======
192.168.2.x
==========>flow 2
All the tc commands are:
#Attaching the Qdisc to the eth0 device.
#The maximum available bandwidth is 10M bit.
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit \
cell 8 avpkt 1000 mpu 64
#Adding the root class to the queuing discipline.
#The root has 10Mbit completely
tc class add dev eth0 parent 1:0 classid 1:1 \
cbq bandwidth 10Mbit rate 10Mbit \
allot 1514 cell 8 weight 100Kbit prio 8 maxburst 20 avpkt 1000 bounded
#Traffic from 192.168.2.1. The priority is 1 and the allocation is 5Mbit
tc class add dev eth0 parent 1:1 classid 1:2 \
cbq bandwidth 10Mbit rate 5Mbit \
allot 1514 cell 8 weight 50Kbit prio 1 maxburst 20 avpkt 1000
#Traffic from 192.168.3.1. The priority is 8 and the allocation is 5Mbit
tc class add dev eth0 parent 1:1 classid 1:3 \
cbq bandwidth 10Mbit rate 5Mbit \
allot 1514 cell 8 weight 50Kbit prio 8 maxburst 20 avpkt 1000
#Installing the u32 classifier/filter on the root of the link sharing
tree
tc filter add dev eth0 parent 1:0 protocol ip prio 20 \
u32 match ip src 192.168.2.0/24 flowid 1:2
tc filter add dev eth0 parent 1:0 protocol ip prio 100 \
u32 match ip src 192.168.3.0/24 flowid 1:3
I injected two UDP traffic flows into eth1 and eth2 respectively.
The sending rate of flow 3 going into eth2 is more than 10Mbps
(more than its allocated rate 5Mbps) and the purpose is to flood
the total available bandwidth. The sending rate of flow 2 going into
eth1 is around 32kbps (less than its allocated rate 5Mbps)
Obviously, flow 3 can borrow bandwidth from flow 2.
However, the queuing delay of flow 2 should NOT be affected by
flow 3, although it can lend bandwidth to flow 3, when the priority
of flow 2 is higher than that of flow 3.( This is my expectation) .
So I made the priority assignment in both 'class' and 'filter' different
(refer to above tc commands)for flow 2 and 3.
Unfortunately, the measurement data shows that the queuing delay
of flow 2 is still affected by flow 3 even if the priority of
flow 2 is higher than that of flow 3. The strange thing was that
if I made the priority assignment the same, the queueing delay
of flow 2 is the same as the case in which the priority of flow 2
is higher. So my question is that,
why the priority assignment in 'tc' doesn't work?
Another problem is about 'allot 1514'. I can't change this
mtu setting to be less than 1500. Say, I set allot to be 200,
tc will automatically change it back to 1500.
Could please give me some hints?
Thanks a lot!
Sincerely,
Song
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "H.J. Lu" <[EMAIL PROTECTED]>
Subject: Re: compiling with libc5 under a glibc2 system
Date: Tue, 02 May 2000 14:39:04 -0700
Ox wrote:
>
> Wolfgang's Kiste wrote:
> >
> > Hi,
> >
> > I need programms to compile with libc5 on a glibc2 system (SuSe 6.3).
> > I looked already in the glib2-howto, but this covers only the case when
> > you update your system from libc5 to glibc2.
> > Any ideas how it could work?
> >
> > Thanks
> >
> > Wolfgang
>
> Hi Wolfgang
>
> I have the same problem. System based on libc6 and I have to compile prgm
> for a SmallLinux distro which supports only the libc5.
> The How-to was not a real help for me !!! We must downgrade the glibc2 to
> the libc5 !!
> If you find something make me a sign please.
> If I find I will say you :-)
>
ftp://ftp.valinux.com/pub/support/hjl/gcc/gcc-2.95.x
Install
gcc-libc5-2.95.3-0.20000413.1.i386.rpm
gcc-libc5-c++-2.95.3-0.20000413.1.i386.rpm
gcc-libc5-g77-2.95.3-0.20000413.1.i386.rpm
gcc-libc5-objc-2.95.3-0.20000413.1.i386.rpm
on Red Hat 6.2. You should be set.
H.J.
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: How are dynamic libs found
Date: 2 May 2000 16:57:10 GMT
Reply-To: [EMAIL PROTECTED]
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi all
>
> A Program of mine needs a certain dynamic library,
> that I moved from '/usr/lib' to '/usr/local/lib'.
>
> '/usr/local/lib' is listed in '/etc/ld.so.conf'.
> So, why is it not found a the new place?
You have to re-run /sbin/ldconfig after moving the libraries.
usually this happens at boot, but you can run it as root
anytime.
You could also try
export LD_LIBRARY_PATH=/usr/local/lib
before calling the binary.
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: Chris Rankin <au.zipworld.com@{no.spam}rankinc>
Subject: Re: Have new parallel port - but it's PCI!!
Date: Wed, 03 May 2000 08:34:04 +1000
Mario Klebsch wrote:
> I am not an expert on this topic, but why are you using 0x278 as
> IO-Address?
>
> > Interrupt: pin A routed to IRQ 9
> > Region 0: I/O ports at f800
> ^^^^
>
> It seems prety obvious, the I/O-ports are located at 0xf800. Since you
> have tried to use 0xf800, my guess would be, that the port layout is
> different that for a single parallel port. It seems to be a multi I/O
> card. So you probably have some other ports there, too. They cannot
> all occupy the I/O address 0xf800.
Actually, the location of the I/O port is configurable on this card. I
tried using 0xf800 and was similarly unsuccessfuly. In fact, I have been
talking to the Linux parport people and it seems that 0xf800 is the base
address and the parallel port is at an offset from there. Some kind of
custom configuration now seems to be in order.
Cheers,
Chris.
------------------------------
From: Weiguang Shi <[EMAIL PROTECTED]>
Subject: network code tutorial?
Date: Tue, 2 May 2000 16:50:26 -0600
Hi, there:
Is there some tutorial which covers the IP routing table lookup in Linux?
I mean something easier to read than the source code?
Thanks
Weiguang
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: how to retrieve libs from ld.so.cache
Date: 2 May 2000 19:35:11 -0500
Reply-To: [EMAIL PROTECTED]
In article <8enbmu$pn8$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> I just removed some libs from '/usr/lib'
> that I don't find on my other machines.
>
> Is there a convenient way to do
> reverse engineering to get the lib file
> from '/etc/ld.so.cache'?
There are some hackish ways to try to do undeleting, but generally on unix
filesystem "delete" means "delete".
/etc/ld.so.cache does not cache libraries, just their locations. Look at
how short it is!
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Edcoy)
Subject: ?Linux RS/6000 ?
Date: 03 May 2000 01:16:31 GMT
If Linux supports the PowerPC.
And Linux supports Microchannel.
Why doesn't support a Microchannel PowerPC (RS/6000)?
Would it be a simple task to produce a capable kernel?
Ed Coyle
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Hans-Joachim Baader)
Subject: Re: CPU Load <- off by 1.00
Date: 2 May 2000 23:01:44 +0200
In article <8emqk2$t3o$[EMAIL PROTECTED]>, Rao VA <[EMAIL PROTECTED]> wrote:
>I've been investigating processes for anamolies, the only suspect is an xntpd
>that's constantly in the Run state, however doesn't seem to consume CPU
>cycles. I can't kill this process and even though the process is in the Run
>state, a 'strace' on the process doesn't show anything.
This is of course the culprit. However, if you can't kill it, I don't know
of a way to get rid of it except rebooting. On the other hand, it would
be useful to find out how it happened.
hjb
--
http://www.pro-linux.de/ - Germany's largest volunteer Linux support site
------------------------------
** 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
******************************