Date: Sat, 27 Jul 1996 09:51:21 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) Cc: afr04@rs1.rrz.Uni-Koeln.DE (Ralf Luettgen) Subject: Re: Error during compilation of kernel with worm Message-ID: <199607270751.JAA28734@uriah.heep.sax.de> In-Reply-To: <1.5.4.32.19960726143020.00698ea0@mail.rrz.uni-koeln.de> from Ralf Luettgen at "Jul 26, 96 04:30:20 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
As Ralf Luettgen wrote: > I've try to compile the kernel on another machine with the same result. > I found a macro for wormopen in two files in the source tree : > > #define wormopen nxopen > { wormopen, wormclose, rawread, rawwrite, /*62*/ > > in > ./i386/i386/conf.c You forgot one line in this file (one that's quite more important): #if NWORM > 0 d_open_t wormopen; d_close_t wormclose; > static d_open_t wormopen; > wormopen, > > in > ./scsi/worm.c Yep, the `static' seems to be the problem. However, these four static declarations serve no purpose, you can simply delete these lines. They are left over from the integration from -current (where all these functions are static since there's no i386/i386/conf.c any longer). I wonder how i've got the kernel to link at all... > But I didn't find any worminit macro in the who source tree? Sorry, i wrote this without looking into the source, it's actually this line: SCSI_DEVICE_ENTRIES(worm) ...that creates all these wormfoo() function entries. Now, that we've solved this, please be aware that the worm driver in 2.1.5 doesn't work out of the box with an HP 4020i drive. That's since this drive is lying and claims to be a CD-ROM, and the SCSI code in 2.1.5 doesn't know anything about driver type overrides, i.e. it always assigns the `native' driver. I have once sent an (untested) patch to the freebsd-scsi mailing list to include SCSI type override into 2.1.5. Get back to me in private mail if you need it. Please use freebsd-scsi@freebsd.org if you wanna discuss further problems with the driver. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607270751.JAA28734>