Subject: pkg/33334: xosview doesn't compile after the latest kernel io statistics changes
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <pr200603@veego.de>
List: pkgsrc-bugs
Date: 04/22/2006 07:55:00
>Number:         33334
>Category:       pkg
>Synopsis:       xosview doesn't compile after the latest kernel io statistics changes
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 22 07:55:00 +0000 2006
>Originator:     Bernd Ernesti
>Release:        NetBSD 3.99.18
>Organization:
	
>Environment:
System: NetBSD 3.99.18
Architecture: i386
Machine: i386
>Description:
	xosview doesn't compile anymore after the recent interface
	changes, which were done without a __NetBSD_Version__ bump:
	
c++ -O2 -DUVM -I/usr/pkg/include -I/usr/X11R6/include -O2 -DUVM -I/usr/pkg/include -I/usr/X11R6/include  -I/usr/X11R6/include  -DXOSVIEW_VERSION=\"1.8.3\" -I/pkgsrc/sysutils/xosview/work.i386/xosview-1.8.3 -I/pkgsrc/sysutils/xosview/work.i386/xosview-1.8.3/bsd -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_BATTERY_METER=1 -DHAVE_USLEEP=1 -I..  -c kernel.cc -o kernel.o
kernel.cc: In function `int BSDDiskInit()':
kernel.cc:783: error: `HW_DISKSTATS' undeclared (first use this function)
kernel.cc:783: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
kernel.cc:783: error: invalid application of `sizeof' to an incomplete type
kernel.cc:789: error: invalid application of `sizeof' to an incomplete type
kernel.cc:789: warning: division by zero in `size / 0'
kernel.cc: In function `void BSDGetDiskXFerBytes(long long unsigned int*)':
kernel.cc:826: error: invalid application of `sizeof' to an incomplete type
kernel.cc:827: error: invalid application of `sizeof' to an incomplete type
kernel.cc:828: error: elements of array `disk_sysctl 
   drive_stats[((NetBSD_N_Drives - 1) + 1)]' have incomplete type
kernel.cc:828: error: storage size of `drive_stats' isn't known
*** Error code 1

Stop.
make: stopped in /pkgsrc/sysutils/xosview/work.i386/xosview-1.8.3/bsd

>How-To-Repeat:
	cd pkgsrc/sysutils/xosview
	make
>Fix: