Subject: Re: libkvm programs with different behaviour
To: None <port-arm32@netbsd.org>
From: Stefan Voss <voss@yoda.in-berlin.de>
List: port-arm32
Date: 12/06/1998 10:54:15
In message <199812051359.NAA13992@sun52.NIS.cambridge>,
Richard Earnshaw wrote:
> >
> > [snip]
> > But since a few weeks the kvm programs don't behave the same. E.g. at
> > the moment I have a working 'ps' binary that I built from current but
> > 'netstat' (also built from current) refuses to work. The kvm programs
> > that refuse to work all fail at the point when they call kvm_open() or
> > kvm_openfiles():
> >
> > [snip]
> >
> >
> > I compared the code of 'ps' and 'netstat'. Both use kvm_openfiles()
> > with the same parameters. 'ps' works ok but 'netstat' does not.
> >
> > Can somebody give me a hint why these two programs behave differently
> > despite using the same code?
>
> netstat is dynamically linked, whereas ps is statically linked. Are you
> installing the new libkvm.so?
Yes, I think I do. I do 'make' and 'make install' in /usr/src/lib. I'll try
and see if linking statically and linking dynamically makes a difference.
>
> Richard
>
>
Regards,
Stefan
--
Stefan Voss
(voss@yoda.in-berlin.de)
Worse things happen in C.