Subject: pkg/33818: libgtop2 doesn't build on recent -current
To: None <,,>
From: John Nemeth <>
List: pkgsrc-bugs
Date: 06/25/2006 01:40:00
>Number:         33818
>Category:       pkg
>Synopsis:       sysutils/libgtop2 doesn't build on recent -current
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 25 01:40:00 +0000 2006
>Originator:     John Nemeth
>Release:        NetBSD 3.99.21
Cornerstone Service
System: NetBSD 3.99.21 NetBSD 3.99.21 (GENERIC) #0: Thu Jun 22 13:20:45 PDT 2006 sparc64
Architecture: sparc64
Machine: sparc64
	When trying to build libgtop2 on above system, got the
following errors:

 cc -DHAVE_CONFIG_H -I. -I../.. -I../../sysdeps/freebsd -I../../include -I/usr/pkgsrc/sysutils/libgtop2/work/.buildlink/include/glib/glib-2.0 -I/usr/pkgsrc/sysutils/libgtop2/work/.buildlink/lib/glib-2.0/include -DHAVE_STATVFS_READS_COUNT -DHAVE_STATVFS_WRITES_COUNT -I/usr/pkgsrc/sysutils/libgtop2/work/.buildlink/include -I/usr/include/krb5 -Winline -Wall -std=gnu89 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -fno-strict-aliasing -O2 -mcpu=v9 -MT proctime.lo -MD -MP -MF .deps/proctime.Tpo -c proctime.c  -fPIC -DPIC -o .libs/proctime.o
proctime.c: In function 'calcru':
proctime.c:74: warning: unused variable 'tv'
proctime.c: In function 'glibtop_get_proc_time_p':
proctime.c:128: error: storage size of 'pstats' isn't known
proctime.c:128: warning: unused variable 'pstats'
gmake[3]: *** [proctime.lo] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/sysutils/libgtop2/work/libgtop-2.14.0/sysdeps/freebsd'

It appears that something changed in the system header files such
that 'struct pstats' is not defined during the compilation of
proctime.c.  'struct pstats' is defined in <sys/resourcevar.h>.

	Setup a recent -current system (I don't know how recent it
has to be, download current pkgsrc, and attempt to build