From owner-freebsd-current Sun Sep 27 16:11:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA08326 for freebsd-current-outgoing; Sun, 27 Sep 1998 16:11:54 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA08218 for ; Sun, 27 Sep 1998 16:11:14 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id RAA12208; Sun, 27 Sep 1998 17:10:58 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199809272310.RAA12208@panzer.plutotech.com> Subject: Re: X11R6 and CAM (??) In-Reply-To: from Simon Shapiro at "Sep 27, 98 07:07:02 pm" To: shimon@simon-shapiro.org Date: Sun, 27 Sep 1998 17:10:58 -0600 (MDT) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Simon Shapiro wrote... > I know the ports are not dow yet, but this one does not seem ELF related, > rather... CAM (??) releated; The following errors started cropping up just > about when CAM was checked in. I searched for these symbols and cannot > find them. Any clue? > > gcc -O2 -I. -I./lib/Xt -I. -I./X11 -I/usr/X11R6/include -I/include > -DCSRG_BASED -DHAVE_SYS_PARAM_H -DFUNCPROTO=15 -DNARROWPROTO -c > freebsd_system.c > freebsd_system.c:147: `DK_NDRIVE' undeclared here (not in a function) > freebsd_system.c:147: `DK_NAMELEN' undeclared here (not in a function) > freebsd_system.c:196: `DK_NDRIVE' undeclared here (not in a function) > freebsd_system.c: In function `total_disk_transfers': > freebsd_system.c:278: `DK_NDRIVE' undeclared (first use this function) > freebsd_system.c:278: (Each undeclared identifier is reported only once > freebsd_system.c:278: for each function it appears in.) > freebsd_system.c: In function `collect_stats': > freebsd_system.c:310: `DK_NDRIVE' undeclared (first use this function) > freebsd_system.c:385: `MOUNT_NFS' undeclared (first use this function) > freebsd_system.c: In function `get_namelist': > freebsd_system.c:483: `DK_NDRIVE' undeclared (first use this function) > *** Error code 1 > You fail to mention what port you're building. This isn't X related, or ELF related, or even CAM related. One of the things that went into the tree along with CAM was the devstat code. See devstat(3) and devstat(9). It's a new statistics gathering package that replaces the old dkstat code, which was limited in a number of ways. It looks like whatever port you've got there needs to be converted to use the devstat code instead of the dkstat code. If you, or someone else, does the conversion, I'd suggest making it autodetect whether the system in question has devstat and then use the appropriate statistics gathering mechanisms. An easy way to test for this in a Makefile would be: .if exists(/usr/include/devstat.h) CFLAGS+= FREEBSD_DEVSTAT (or whatever you want) .endif Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message