ports/170674: libsysinfo fails to link correctly (missing kvm dependency)

Jens K. Loewe bsd at tuxproject.de
Thu Aug 16 18:30:14 UTC 2012


>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 at 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:



More information about the freebsd-ports-bugs mailing list