pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40990: net-snmp package assumes struct timeval
>Number: 40990
>Category: pkg
>Synopsis: net-snmp package assumes struct timeval
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 09 12:10:01 +0000 2009
>Originator: Alan Barrett
>Release: NetBSD 5.99.7
>Organization:
Not much
>Environment:
System: NetBSD i386
>Description:
pkgsrc/net/net-snmp won't build on NetBSD-current, because some of the
kernel data structures that used to contain struct timeval now contain
struct timespec.
>How-To-Repeat:
$ cd pkgsrc/net/net-snmp
$ make
[...]
mibII/interfaces.c: In function 'var_ifEntry':
mibII/interfaces.c:833: error: 'struct timespec' has no member named 'tv_usec'
mibII/interfaces.c:840: error: 'struct timespec' has no member named 'tv_usec'
>Fix:
A search for "tv_usec" in the net-snmp sources finds many uses, some
of which work and some of which fail in NetBSD-current. I suppose we
need a configure test to figure out which data should be struct timespec
instead of struct timeval, and conditional code to use tv_nsec instead
of tv_usec in appropriate places.
Home |
Main Index |
Thread Index |
Old Index