Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2012 18:23:08 GMT
From:      "Jens K. Loewe" <bsd@tuxproject.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170674: libsysinfo fails to link correctly (missing kvm dependency)
Message-ID:  <201208161823.q7GIN8wd076299@red.freebsd.org>
Resent-Message-ID: <201208161830.q7GIUEsR083920@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170674
>Category:       ports
>Synopsis:       libsysinfo fails to link correctly (missing kvm dependency)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 16 18:30:14 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jens K. Loewe
>Release:        9.0-RELEASE
>Organization:
Hochschule Ostfalia
>Environment:
FreeBSD freebsd 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When compiling libsysinfo, the following happens:

---------------

/usr/local/lib/libsysinfo.so: undefined reference to `kvm_getprocs'
/usr/local/lib/libsysinfo.so: undefined reference to `kvm_open'
/usr/local/lib/libsysinfo.so: undefined reference to `kvm_getloadavg'
/usr/local/lib/libsysinfo.so: undefined reference to `kvm_getswapinfo'
/usr/local/lib/libsysinfo.so: undefined reference to `kvm_close'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

---------------

In libsysinfo's Makefile there should be a reference to kvm (as a linker option).
>How-To-Repeat:
Compile libsysinfo.
>Fix:
Add the missing -lkvm switch.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208161823.q7GIN8wd076299>