[Bug 197763] net-mgmt/net-snmp: compilation fails with

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 17 15:52:26 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197763

            Bug ID: 197763
           Summary: net-mgmt/net-snmp: compilation fails with
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi at FreeBSD.org
          Reporter: aduitsis at gmail.com
          Assignee: zi at FreeBSD.org
             Flags: maintainer-feedback?(zi at FreeBSD.org)

While trying to compile net-snmp inside a jail, the compilation breaks with the
message:


 ./.libs/libnetsnmpmibs.so: undefined reference to `kd'
 cc: error: linker command failed with exit code 1 (use -v to see invocation)
 *** Error code 1

Unfortunately, --without-kmem-usage does not help. After eliminating mib
modules one by one, I have reached the conclusion that the culprit is mib
module 'ucd-snmp/memory'. Using something like:

 CONFIGURE_ARGS=--with-out-mib-modules="host ucd-snmp/memory"
--without-kmem-usage

makes the compilation succeed. The host mib module has also been known to cause
similar problems with jails for quite some time, also excluded. 

I understand that this is arguably not a problem with the port and should be
reported upstream. However, since this is a jail-only issue related to the
absence of /dev/kmem, maybe at a make config option could be added so that the
user can choose a jail-friendly build.

Thanks,
Athanasios

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer zi at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list