Subject: sysutils/gkrellm broken on NetBSD-current
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: tech-pkg
Date: 04/19/2006 21:55:40
Hi,

building sysutils/gkrellm from pkgsrc HEAD on a -current NetBSD system
currently fails with

[...]
cc -O2 -I/usr/pkg/include -I/usr/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2   -Wall -Werror -I.. `/build/pkg/sysutils/gkrellm/work/.tools/bin/pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/pkg/share/locale\" -I/usr/pkg/include -I/usr/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2  -c -o sysdeps-unix.o sysdeps-unix.c
In file included from sysdeps-unix.c:51:
sysdeps/netbsd.c: In function `gkrellm_sys_disk_init':
sysdeps/netbsd.c:434: error: `HW_DISKSTATS' undeclared (first use in this function)
sysdeps/netbsd.c:434: error: (Each undeclared identifier is reported only once
sysdeps/netbsd.c:434: error: for each function it appears in.)
sysdeps/netbsd.c:434: error: invalid application of `sizeof' to an incomplete type
sysdeps/netbsd.c: In function `gkrellm_sys_disk_read_data':
sysdeps/netbsd.c:447: error: `HW_DISKSTATS' undeclared (first use in this function)
sysdeps/netbsd.c:447: error: invalid application of `sizeof' to an incomplete type
sysdeps/netbsd.c:457: error: invalid application of `sizeof' to an incomplete type
sysdeps/netbsd.c:457: warning: division by zero
sysdeps/netbsd.c:464: error: invalid use of undefined type `struct disk_sysctl'
sysdeps/netbsd.c:464: error: dereferencing pointer to incomplete type
sysdeps/netbsd.c:465: error: invalid use of undefined type `struct disk_sysctl'
sysdeps/netbsd.c:465: error: dereferencing pointer to incomplete type
sysdeps/netbsd.c:471: error: invalid use of undefined type `struct disk_sysctl'
sysdeps/netbsd.c:471: error: dereferencing pointer to incomplete type
gmake[1]: *** [sysdeps-unix.o] Error 1
gmake[1]: Leaving directory `/build/pkg/sysutils/gkrellm/work/gkrellm-2.2.9/src'
gmake: *** [build-rec] Error 1
*** Error code 2
[...]

probably due to the recent I/O stats [1]changes. Is anybody already
working on this, or should I send a PR?


Cheers, Jukka

[1] http://mail-index.netbsd.org/source-changes/2006/04/14/0012.html

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~