NetBSD Problem Report #49984
From www@NetBSD.org Wed Jun 17 10:37:29 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(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 2758DA65C0
for <gnats-bugs@gnats.NetBSD.org>; Wed, 17 Jun 2015 10:37:29 +0000 (UTC)
Message-Id: <20150617103725.A89D6A65C0@mollari.NetBSD.org>
Date: Wed, 17 Jun 2015 10:37:25 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: net/net-snmp does not compile on Solaris 11.2
X-Send-Pr-Version: www-1.0
>Number: 49984
>Category: pkg
>Synopsis: net/net-snmp does not compile on Solaris 11.2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 17 10:40:00 +0000 2015
>Closed-Date: Thu Feb 09 09:34:59 +0000 2017
>Last-Modified: Thu Feb 09 09:35:01 +0000 2017
>Originator: Joern Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
Solaris 11.2/i86, GCC 4.8.2
>Description:
Compiling the current version of net/net-snmp on Solaris 11.2 fails with
libtool: compile: gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/pkgsrc/pkg-hrz/pkgsrc/net/net-snmp/work.pkgsrc-sol11i86/.buildlink/include -fno-strict-aliasing -O2 -Usolaris2 -Dsolaris2=solaris2 -c host/data_access/swrun_procfs_psinfo.c -fPIC -DPIC -o host/data_access/.libs/swrun_procfs_psinfo.o
In file included from /usr/include/sys/pset.h:15:0,
from /usr/include/sys/procfs.h:37,
from host/data_access/swrun_procfs_psinfo.c:29:
/usr/include/sys/processor.h:175:45: error: unknown type name 'kthread_t'
extern boolean_t i_processor_affinity_check(kthread_t *, struct cpu *);
^
/usr/include/sys/processor.h:176:37: error: unknown type name 'kthread_t'
extern int i_processor_affinity_one(kthread_t *, id_t, boolean_t);
^
/usr/include/sys/processor.h:177:33: error: unknown type name 'kthread_t'
extern int i_processor_affinity(kthread_t *, uint_t *, id_t *, uint32_t *,
^
This bug has been reported upstream: https://sourceforge.net/p/net-snmp/bugs/2639/
>How-To-Repeat:
>Fix:
Adding
#include <sys/processor.h>
#include <sys/procset.h>
#include <thread.h>
to swrun_procfs_psinfo.c makes the package compile successfully.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 17 Jun 2015 11:24:31 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Thu, 09 Feb 2017 09:34:59 +0000
State-Changed-Why:
applied - sorry it wasn't done before.
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/49984 CVS commit: pkgsrc/net/net-snmp
Date: Thu, 9 Feb 2017 09:33:57 +0000
Module Name: pkgsrc
Committed By: maya
Date: Thu Feb 9 09:33:57 UTC 2017
Modified Files:
pkgsrc/net/net-snmp: distinfo
Added Files:
pkgsrc/net/net-snmp/patches:
patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c
Log Message:
Fix compilation on Solaris 11.2.
Patch by Joern Clausen in PR pkg/49984, also committed upstream:
https://sourceforge.net/p/net-snmp/code/ci/e2ce8bb37819c9ae24d482ac4108772f7b2c9b8c/
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 pkgsrc/net/net-snmp/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/net/net-snmp/patches/patch-agent_mibgroup_host_data__access_swrun__procfs__psinfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.