From owner-freebsd-scsi Tue Jul 21 00:21:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA29139 for freebsd-scsi-outgoing; Tue, 21 Jul 1998 00:21:57 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from gw-nl1.philips.com (gw-nl1.philips.com [192.68.44.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA29131 for ; Tue, 21 Jul 1998 00:21:53 -0700 (PDT) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl1.philips.com with ESMTP id JAA19198 for ; Tue, 21 Jul 1998 09:21:28 +0200 (MEST) (envelope-from Jos.Backus@nl.origin-it.com) Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) by smtprelay-nl1.philips.com (8.8.5/8.6.10-1.2.2m-970826) with SMTP id JAA15599 for ; Tue, 21 Jul 1998 09:21:27 +0200 (MET DST) Received: (qmail 4793 invoked by uid 666); 21 Jul 1998 07:19:15 -0000 Message-ID: <19980721091915.B1891@mpn.cp.philips.com> Date: Tue, 21 Jul 1998 09:19:15 +0200 From: Jos Backus To: freebsd-scsi@FreeBSD.ORG Subject: CAM build trouble on -stable Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, I'm using the latest 2.2CAM-19980716-SNAP.diffs patch. The patch applies almost cleanly to yesterday's -stable: ``camcontrol'' needs to be added to the SUBDIR definition in /usr/src/sbin/Makefile and mt.c needs some manual tweaking. bilbo:/usr/src# ls -l **/*.rej -rw-r--r-- 1 root bin 751 Jul 20 17:07 release/Makefile.rej -rw-r--r-- 1 root bin 911 Jul 20 17:07 sbin/Makefile.rej -rw-r--r-- 1 root bin 3266 Jul 20 17:07 usr.bin/mt/mt.c.rej However, when trying to build a kernel, I am seeing the following: cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -nostdinc -I- -I. -I../.. -I../../../include -DAHC_TAGENABLE -DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL ../../cam/scsi/scsi_target.c In file included from ../../cam/scsi/scsi_target.c:45: ../../cam/cam_periph.h:108: warning: `struct devstat' declared inside parameter list ../../cam/cam_periph.h:108: warning: its scope is only this definition or declaration, ../../cam/cam_periph.h:108: warning: which is probably not what you want. ../../cam/scsi/scsi_target.c: In function `ptasync': ../../cam/scsi/scsi_target.c:175: warning: passing arg 1 of `cam_alloc_periph' from incompatible pointer type ../../cam/scsi/scsi_target.c:175: warning: passing arg 2 of `cam_alloc_periph' makes pointer from integer without a cast ../../cam/scsi/scsi_target.c:175: warning: passing arg 3 of `cam_alloc_periph' makes pointer from integer without a cast ../../cam/scsi/scsi_target.c:175: incompatible type for argument 5 of `cam_alloc_periph' ../../cam/scsi/scsi_target.c:175: warning: passing arg 6 of `cam_alloc_periph' from incompatible pointer type ../../cam/scsi/scsi_target.c:175: too many arguments to function `cam_alloc_periph' *** Error code 1 Stop. The first warning I fixed by adding sys/devicestat.h to scsi_target.c, but I'm not sure about the other one. Thanks, -- Jos Backus _/ _/_/_/ "Reliability means never _/ _/ _/ having to say you're sorry." _/ _/_/_/ -- D. J. Bernstein _/ _/ _/ _/ Jos.Backus@nl.origin-it.com _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message