Subject: pkg/33818: libgtop2 doesn't build on recent -current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: John Nemeth <jnemeth@cornerstoneservice.ca>
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
>Organization:
Cornerstone Service
>Environment:
System: NetBSD ultra.cornerstoneservice.ca 3.99.21 NetBSD 3.99.21 (GENERIC) #0: Thu Jun 22 13:20:45 PDT 2006  jnemeth@ultra.cornerstoneservice.ca:/mnt/objdir/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	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>.

>How-To-Repeat:
	Setup a recent -current system (I don't know how recent it
has to be, download current pkgsrc, and attempt to build
sysutils/libgtop.

>Fix: