From owner-freebsd-gnome@FreeBSD.ORG Tue Nov 16 19:15:04 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A94C416A4CE; Tue, 16 Nov 2004 19:15:04 +0000 (GMT) Received: from lakermmtao04.cox.net (lakermmtao04.cox.net [68.230.240.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDCEC43D53; Tue, 16 Nov 2004 19:15:03 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao04.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041116191459.TIDG4706.lakermmtao04.cox.net@dolphin.local.net>; Tue, 16 Nov 2004 14:14:59 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id iAGJEuwC029652; Tue, 16 Nov 2004 13:14:56 -0600 (CST) (envelope-from conrads@cox.net) Date: Tue, 16 Nov 2004 13:14:51 -0600 From: "Conrad J. Sabatier" To: Norikatsu Shigemura Message-ID: <20041116131451.773bcb96@dolphin.local.net> In-Reply-To: <20041112133305.4b49aa90.nork@FreeBSD.org> References: <20041112133305.4b49aa90.nork@FreeBSD.org> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__16_Nov_2004_13_14_51_-0600_4x+jYdrhf+3JXcl6" cc: freebsd-hackers@freebsd.org cc: freebsd-gnome@freebsd.org Subject: Re: devel/libgtop2 cannot build X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 19:15:04 -0000 This is a multi-part message in MIME format. --Multipart=_Tue__16_Nov_2004_13_14_51_-0600_4x+jYdrhf+3JXcl6 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 12 Nov 2004 13:33:05 +0900, Norikatsu Shigemura wrote: > Hi gnome maintainers! > > I compiled devel/libtop2 on 6-current. But it couldn't. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - > cc -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -D_GNU_SOURCE > -DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/freebsd > -I../../include -I/usr/local/include/glib-2.0 > -I/usr/local/lib/glib-2.0/include -Winline -Wall -std=gnu89 > -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes > -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare > -fno-strict-aliasing -O2 -fno-ident -pipe -march=pentium3 > -I/usr/X11R6/include -DGTOPLOCALEDIR=\"/usr/X11R6/share/locale\" > -DLIBGTOP_VERSION=\"2.8.1\" -DLIBGTOP_SERVER_VERSION=\"5\" > -DLIBGTOP_VERSION_CODE=2008001 > -DLIBGTOP_SERVER=\"/usr/X11R6/bin/libgtop_server2\" > -I/usr/local/include -Winline -Wall -std=gnu89 -Wchar-subscripts > -Wmissing-declarations -Wmissing-prototypes -Wnested-externs > -Wpointer-arith -Wcast-align -Wsign-compare -fno-strict-aliasing -O2 > -fno-ident -pipe -march=pentium3 -c procmap.c -fPIC -DPIC -o > .libs/procmap.o > procmap.c: In function `glibtop_get_proc_map_p': > procmap.c:276: error: structure has no member named `v_cachedfs' > gmake[3]: *** [procmap.lo] Error 1 > gmake[3]: Leaving directory > `/usr/ports/devel/libgtop2/work/libgtop-2.8.1/sysdeps/freebsd'- - - - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > According to src/sys/sys/vnode.h 1.254, v_cachedfs member was > removed. Anyone, do you have any idea? > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - revision 1.254 > date: 2004/11/09 22:51:03; author: phk; state: Exp; lines: +0 -1 > Remove vnode->v_cachedfs. > > It was only used for the highly dangerous "export all vnodes with a > sysctl" function. > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > -_______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > The attached patch, applied under /usr/ports/devel/libgtop2/work/libgtop-2.8.1/sysdeps/freebsd, works for me under CURRENT. -- Conrad J. Sabatier -- "In Unix veritas" --Multipart=_Tue__16_Nov_2004_13_14_51_-0600_4x+jYdrhf+3JXcl6 Content-Type: text/plain; name="patch" Content-Disposition: attachment; filename="patch" Content-Transfer-Encoding: 7bit --- procmap.c.orig Tue Nov 16 13:05:31 2004 +++ procmap.c Tue Nov 16 13:11:13 2004 @@ -272,8 +272,10 @@ #if defined(__FreeBSD__) && (__FreeBSD_version >= 500039) switch (vnode.v_type) { case VREG: +#if (__FreeBSD_version < 600006) maps [i-1].inode = vnode.v_cachedid; maps [i-1].device = vnode.v_cachedfs; +#endif default: continue; } --Multipart=_Tue__16_Nov_2004_13_14_51_-0600_4x+jYdrhf+3JXcl6--