pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49984: net/net-snmp does not compile on Solaris 11.2



>Number:         49984
>Category:       pkg
>Synopsis:       net/net-snmp does not compile on Solaris 11.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 17 10:40:00 +0000 2015
>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.



Home | Main Index | Thread Index | Old Index