NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/53125: sys/timevar.h is absent in installed systems.



The following reply was made to PR lib/53125; it has been noted by GNATS.

From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek%gmail.com@localhost>
To: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%netbsd.org@localhost>
Cc: Utkarsh Anand <utkarsh009%yandex.com@localhost>
Subject: Re: lib/53125: sys/timevar.h is absent in installed systems.
Date: Wed, 28 Mar 2018 10:24:14 +0200

 Besides linking against libkvm, I'd suggest to also do other thing
 suggested by the kvm_open(3) manpage, and use use KVM_NO_FILES flags
 for kvm_open().
 And maybe consider using kvm_openfiles() - rationale is in the manpage also.
 
 Jaromir
 
 2018-03-28 8:45 GMT+02:00 Thomas Klausner <wiz%netbsd.org@localhost>:
 > The following reply was made to PR lib/53125; it has been noted by GNATS.
 >
 > From: Thomas Klausner <wiz%NetBSD.org@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc:
 > Subject: Re: lib/53125: sys/timevar.h is absent in installed systems.
 > Date: Wed, 28 Mar 2018 08:42:28 +0200
 >
 >  On Wed, Mar 28, 2018 at 05:05:01AM +0000, Utkarsh Anand wrote:
 >  >  Not sure what's happening when I try to compile this:
 >  ...
 >  >  Error:
 >  >  /var/tmp/temp-eb1f46.o: In function `main':
 >  >  temp.c:(.text+0x2e): undefined reference to `kvm_open'
 >  >  temp.c:(.text+0x5e): undefined reference to `kvm_getproc2'
 >  >  clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
 >
 >  # man kvm_open
 >  NAME
 >       kvm_open, kvm_openfiles, kvm_close -- initialize kernel virtual memory
 >       access
 >
 >  LIBRARY
 >       Kernel Data Access Library (libkvm, -lkvm)
 >  ...
 >
 >  -> you need to link against libkvm.
 >   Thomas
 >
 


Home | Main Index | Thread Index | Old Index