Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 1998 09:19:15 +0200
From:      Jos Backus <Jos.Backus@nl.origin-it.com>
To:        freebsd-scsi@FreeBSD.ORG
Subject:   CAM build trouble on -stable
Message-ID:  <19980721091915.B1891@mpn.cp.philips.com>

next in thread | raw e-mail | index | archive | help
	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980721091915.B1891>