Date: Mon, 1 Aug 2011 13:34:11 GMT From: Emil Smolenski <am@raisa.eu.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/159354: [PATCH] net-mgmt/net-snmp doesn't build without /dev/kmem [regression] Message-ID: <201108011334.p71DYBCx087693@red.freebsd.org> Resent-Message-ID: <201108011340.p71DeA6m059617@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159354 >Category: ports >Synopsis: [PATCH] net-mgmt/net-snmp doesn't build without /dev/kmem [regression] >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: Mon Aug 01 13:40:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Emil Smolenski >Release: FreeBSD 8.2-STABLE >Organization: >Environment: FreeBSD testsnmp 8.2-STABLE FreeBSD 8.2-STABLE #6: Fri Jul 15 11:46:06 CEST 2011 root@arrow:/usr/obj/usr/src/sys/ARROW amd64 >Description: Port net-mgmt/net-snmp fails to build when /dev/kmem file is not available (eg. in jail): /bin/sh ../libtool --mode=link cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 -DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.4/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/lib/perl5/5.12.4/mach/CORE -o snmpd snmpd.lo -L../snmplib/.libs -L../snmplib -L./.libs -L/usr/lib -lm -lkvm -ldevstat libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lssp_nonshared -Wl,-R/usr/local/lib/perl5/5.12.4/mach/CORE libtool: link: cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.12.4/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/lib/perl5/5.12.4/mach/CORE -o .libs/snmpd .libs/snmpd.o -Wl,-R/usr/local/lib/perl5/5.12.4/mach/CORE -L../snmplib/.libs -L../snmplib -L./.libs -L/usr/lib ./.libs/libnetsnmpagent.so -L/usr/local/lib -L/usr/local/lib/perl5/5.12.4/mach/CORE ./.libs/libnetsnmpmibs.so /var/ports/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7/agent/.libs/libnetsnmpagent.so -lwrap -lperl -lcrypt -lutil /var/ports/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7/snmplib/.libs/libnetsnmp.so ../snmplib/.libs/libnetsnmp.so -lm -lkvm -ldevstat -lcrypto -lelf -lssp_nonshared -Wl,-rpath -Wl,/usr/local/lib ./.libs/libnetsnmpmibs.so: undefined reference to `kd' *** Error code 1 Stop in /var/ports/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7/agent. *** Error code 1 Stop in /var/ports/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7. *** Error code 1 Stop in /usr/ports/net-mgmt/net-snmp. *** Error code 1 Stop in /usr/ports/net-mgmt/net-snmp. I think this change is the cause of this issue: http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/acconfig.h?r1=19436&r2=19435&pathrev=19436 >How-To-Repeat: # cd /usr/ports/net-mgmt/net-snmp # make >Fix: Put attached file in /usr/ports/net-mgmt/net-snmp/files directory. Patch attached with submission follows: --- include/net-snmp/net-snmp-config.h.in.orig 2011-08-01 11:29:54.355677478 +0000 +++ include/net-snmp/net-snmp-config.h.in 2011-08-01 11:30:08.191927270 +0000 @@ -2061,7 +2061,7 @@ #define UCD_SNMP_LIBRARY 1 /* final conclusion on nlist usage */ -#if defined(HAVE_NLIST) && defined(HAVE_STRUCT_NLIST_N_VALUE) && !defined(NETSNMP_DONT_USE_NLIST) && defined(HAVE_KMEM) && !defined(NETSNMP_NO_KMEM_USAGE) +#if defined(HAVE_NLIST) && defined(HAVE_STRUCT_NLIST_N_VALUE) && !defined(NETSNMP_DONT_USE_NLIST) && !defined(NETSNMP_NO_KMEM_USAGE) #define NETSNMP_CAN_USE_NLIST #endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108011334.p71DYBCx087693>