NetBSD Problem Report #41178
From www@NetBSD.org Fri Apr 10 01:00:13 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 1E60A63C166
for <gnats-bugs@gnats.netbsd.org>; Fri, 10 Apr 2009 01:00:13 +0000 (UTC)
Message-Id: <20090410010012.B7D7E63BC38@www.NetBSD.org>
Date: Fri, 10 Apr 2009 01:00:12 +0000 (UTC)
From: kamelderouiche@yahoo.com
Reply-To: kamelderouiche@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: libstatgrap: Failed Build
X-Send-Pr-Version: www-1.0
>Number: 41178
>Category: pkg
>Synopsis: libstatgrap: Failed Build
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 10 01:05:00 +0000 2009
>Closed-Date: Sat May 16 11:49:22 +0000 2009
>Last-Modified: Sat May 16 11:50:01 +0000 2009
>Originator: Derouiche
>Release: NetBSD 5.0_BETA
>Organization:
Algerie Motors Company
>Environment:
NetBSD Torabora 5.0_BETA NetBSD 5.0_BETA (GENERIC) #0: Sun Jan 18 15:59:42 PST 2009 builds@wb40:/home/builds/ab/netbsd-5/i386/200901180002Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/GENERIC i386
>Description:
n/a
>How-To-Repeat:
$ make
if /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include -O2 -I/usr/include -MT cpu_stats.lo -MD -MP -MF ".deps/cpu_stats.Tpo" -c -o cpu_stats.lo cpu_stats.c; then mv -f ".deps/cpu_stats.Tpo" ".deps/cpu_stats.Plo"; else rm -f ".deps/cpu_stats.Tpo"; exit 1; fi
mkdir .libs
cc -DHAVE_CONFIG_H -I. -I../.. -O2 -MT cpu_stats.lo -MD -MP -MF .deps/cpu_stats.Tpo -c cpu_stats.c -fPIC -DPIC -o .libs/cpu_stats.o
cc -DHAVE_CONFIG_H -I. -I../.. -O2 -MT cpu_stats.lo -MD -MP -MF .deps/cpu_stats.Tpo -c cpu_stats.c -o cpu_stats.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include -O2 -I/usr/include -MT disk_stats.lo -MD -MP -MF ".deps/disk_stats.Tpo" -c -o disk_stats.lo disk_stats.c; then mv -f ".deps/disk_stats.Tpo" ".deps/disk_stats.Plo"; else rm -f ".deps/disk_stats.Tpo"; exit 1; fi
cc -DHAVE_CONFIG_H -I. -I../.. -O2 -MT disk_stats.lo -MD -MP -MF .deps/disk_stats.Tpo -c disk_stats.c -fPIC -DPIC -o .libs/disk_stats.o
disk_stats.c: In function 'sg_get_disk_io_stats':
disk_stats.c:499: error: 'HW_DISKSTATS' undeclared (first use in this function)
disk_stats.c:499: error: (Each undeclared identifier is reported only once
disk_stats.c:499: error: for each function it appears in.)
disk_stats.c:501: error: invalid application of 'sizeof' to incomplete type 'struct disk_sysctl'
disk_stats.c:510: error: invalid application of 'sizeof' to incomplete type 'struct disk_sysctl'
disk_stats.c:510: warning: division by zero
disk_stats.c:535: error: invalid use of undefined type 'struct disk_sysctl'
disk_stats.c:535: error: dereferencing pointer to incomplete type
disk_stats.c:560: error: invalid use of undefined type 'struct disk_sysctl'
disk_stats.c:560: error: dereferencing pointer to incomplete type
*** Error code 1
>Fix:
Please: Updated package, with a pkgsrc.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 16 May 2009 11:49:22 +0000
State-Changed-Why:
Add patches and made to build on NetBSD-5.0.
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41178 CVS commit: pkgsrc/devel/libstatgrab
Date: Sat, 16 May 2009 11:46:09 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat May 16 11:46:09 UTC 2009
Modified Files:
pkgsrc/devel/libstatgrab: Makefile PLIST distinfo
pkgsrc/devel/libstatgrab/patches: patch-aa patch-ab patch-ac patch-ae
Added Files:
pkgsrc/devel/libstatgrab/patches: patch-af patch-ag patch-ah patch-ai
patch-aj patch-ak patch-al
Log Message:
Update libstatgrab to 0.16.
Pkgsrc changes:
* try to fix build failure on recent NetBSD, reported in PR 41178.
* set LICENSE=gnu-gpl-v2
* marked as DESTDIR ready
libstatgrab NEWS:
libstatgrab 0.16 (13 March 2008)
* Fix saidar build on Solaris with Sun's compiler.
* Add support for FreeBSD 8.0.
* Fix build on "armel" Debian port.
(Thanks to Riku Voipio and Martin Guy)
* Fix statgrab-make-mrtg-config on machines with no swap.
(Thanks to Tom Carlson)
libstatgrab 0.15 (14 July 2007)
* Fix breakages in memory stats on OpenBSD that were introduced in
the last release.
(Thanks to David Love)
* Update internal string functions and some related cleanups.
(Thanks to David Love)
* Fix compile warning on FreeBSD.
libstatgrab 0.14 (08 January 2007)
* Fix memory stats on OpenBSD.
* Add colour support to saidar.
(Thanks to Angelina Carlton)
* Fix CPU stats on Solaris - swap and iowait were incorrectly reported.
* Fix kstat related memory leaks on Solaris.
(Thanks to Javier Donaire)
* Fix network stats on some unusual Solaris setups.
* Fix process time_spent on Linux.
(Thanks to Fred Barnes)
* Make interface up status check the link status as well.
(Thanks to Michelangelo Vassallo)
* Fix build on NetBSD 3.
(Thanks to Wijnand Wiersma)
* Rework curses detection code in the configure script.
* Fix bug that caused saidar to crash when the window was rapidly resized.
libstatgrab 0.13 (19 March 2006)
* Fix build problems with recent linux kernels.
* Make saidar truncate disk/inteface/mount names to fit in display.
* Add WIN32 support using MINGW (not widely tested).
* Fix network interface up/down status on Solaris.
* Add extern "C" to header file to make linking with C++ code easier.
* Fix statgrab to cope with filesystem paths containing dots.
* Make NFS a legal filesystem type on all platforms.
* A few minor build fixes.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/libstatgrab/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/libstatgrab/PLIST
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/libstatgrab/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libstatgrab/patches/patch-aa \
pkgsrc/devel/libstatgrab/patches/patch-ab
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libstatgrab/patches/patch-ac \
pkgsrc/devel/libstatgrab/patches/patch-ae
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libstatgrab/patches/patch-af \
pkgsrc/devel/libstatgrab/patches/patch-ag \
pkgsrc/devel/libstatgrab/patches/patch-ah \
pkgsrc/devel/libstatgrab/patches/patch-ai \
pkgsrc/devel/libstatgrab/patches/patch-aj \
pkgsrc/devel/libstatgrab/patches/patch-ak \
pkgsrc/devel/libstatgrab/patches/patch-al
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.