Date: Thu, 16 Jul 1998 18:09:53 +0000 From: Matthew Reimer <mreimer@vpop.net> To: FreeBSD-scsi@FreeBSD.ORG Subject: Problem building with ch and CAM 19980712 snapshot Message-ID: <35AE41F1.18E0FC12@vpop.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35AE41F1.18E0FC12>