From owner-freebsd-scsi Thu Jul 16 11:09:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA19458 for freebsd-scsi-outgoing; Thu, 16 Jul 1998 11:09:56 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from boromir.vpop.net (dns1.vpop.net [206.117.147.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA19451 for ; Thu, 16 Jul 1998 11:09:54 -0700 (PDT) (envelope-from mreimer@vpop.net) Received: from vpop.net (bilbo.vpop.net [206.117.152.4]) by boromir.vpop.net (8.8.5/8.8.5) with ESMTP id LAA28155 for ; Thu, 16 Jul 1998 11:09:36 -0700 (PDT) Message-ID: <35AE41F1.18E0FC12@vpop.net> Date: Thu, 16 Jul 1998 18:09:53 +0000 From: Matthew Reimer Organization: VPOP Technologies, Inc. X-Mailer: Mozilla 4.5b1 [en] (X11; I; FreeBSD 2.2.6-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD-scsi@FreeBSD.ORG Subject: Problem building with ch and CAM 19980712 snapshot Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to build 2.2-STABLE (cvsup'ed yesterday) with support for the media changer ch0, but the build is failing like this: --------- cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -nostdinc -I- -I. -I../.. -I../../../include -DCOMPAT_43 -DNFS -DFFS -DINET -DKERNEL ../../cam/scsi/scsi_ch.c ../../cam/scsi/scsi_ch.c:688: conflicting types for `chioctl' ../../cam/scsi/scsi_ch.c:176: previous declaration of `chioctl' *** Error code 1 Stop. --------- It looks like the definition of d_ioctl_t in sys/conf.h is different in 3.0 versus 2.2: sys/conf.h in 2.2: typedef int d_ioctl_t __P((dev_t dev, int cmd, caddr_t data, int fflag, struct proc *p)); sys/conf.h in 3.0 typedef int d_ioctl_t __P((dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p)); referenced from scsi_ch.c: static int chioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) { It compiles fine if I change the definition for chioctl above to int from u_long, but is this safe? Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message