NetBSD Problem Report #51421

From www@NetBSD.org  Wed Aug 17 17:00:42 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D06A07A266
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 17 Aug 2016 17:00:41 +0000 (UTC)
Message-Id: <20160817170040.EEC3E7A2D3@mollari.NetBSD.org>
Date: Wed, 17 Aug 2016 17:00:40 +0000 (UTC)
From: denafcm@gmail.com
Reply-To: denafcm@gmail.com
To: gnats-bugs@NetBSD.org
Subject: net/net-snmp doesn't build on FreeBSD 10+
X-Send-Pr-Version: www-1.0

>Number:         51421
>Category:       pkg
>Synopsis:       net/net-snmp doesn't build on FreeBSD 10+
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    sevan
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 17 17:05:00 +0000 2016
>Last-Modified:  Thu Aug 18 15:30:00 +0000 2016
>Originator:     Dennis Lindroos
>Release:        pkgsrc-2016Q2
>Organization:
>Environment:
FreeBSD 10.2-PRERELEASE
>Description:
Package net/net-snmp-5.7.3 does not build on FreeBSD 10, configure fails with "configure: error: Perl support requires --enable-shared", and two other problems.

This should be added to patches/patch-af, freebsd1* should not match freebsd10 (does anybody use freebsd1 anyway ?:)

--- configure.orig      2014-12-08 22:23:37.000000000 +0200
+++ configure   2016-08-17 17:59:41.062784000 +0300
@@ -13023,7 +13023,7 @@
       hardcode_shlibpath_var=no
       ;;

-    freebsd1*)
+    freebsd1)
       ld_shlibs=no
       ;;

@@ -14017,7 +14017,7 @@
   shlibpath_var=LD_LIBRARY_PATH
   ;;

-freebsd1*)
+freebsd1)
   dynamic_linker=no
   ;;

In patches/patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c, the "ifdef __APPLE__" should also include __FreeBSD__ (or similar..)

In patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c should add a semi-colon to the line 46 "snmp_log(LOG_ERR, "sysctl machdep.cpu_brand failed (errno %d)\n", errno)".


>How-To-Repeat:
Build with the "perl" option (which is in PKG_SUGGESTED_OPTIONS anyway).
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->freebsd-pkg-people
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Thu, 18 Aug 2016 13:30:21 +0000
Responsible-Changed-Why:
Over to FreeBSD Bug People


Responsible-Changed-From-To: freebsd-pkg-people->sevan
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Thu, 18 Aug 2016 14:19:36 +0000
Responsible-Changed-Why:
take


From: Sevan Janiyan <sevan@NetBSD.org>
To: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/51421: net/net-snmp doesn't build on FreeBSD 10+
Date: Thu, 18 Aug 2016 16:26:12 +0100

 Hi Dennis,
 Thanks for the patch, it seems that there are further issues with v11 &
 up which remain to be addressed. Workaround for one issue is disabling
 mibII/ipv6 support as per FreeBSD ports but I've not had a chance to
 look into it yet.


 Sevan

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.