From owner-freebsd-questions Mon Mar 11 09:05:17 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA25279 for questions-outgoing; Mon, 11 Mar 1996 09:05:17 -0800 (PST) Received: from gateway.us.sidwell.edu (gateway.us.sidwell.edu [198.3.254.200]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA25266 for ; Mon, 11 Mar 1996 09:05:09 -0800 (PST) Received: (from lcozzens@localhost) by gateway.us.sidwell.edu (8.6.12/8.6.10) id MAA02347; Mon, 11 Mar 1996 12:05:11 -0500 Date: Mon, 11 Mar 1996 12:05:11 -0500 (EST) From: Lisa Cozzens To: questions@freebsd.org Subject: Compile errors on matcd driver Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I just upgraded my 2.0.5 system to 2.1 yesterday. The system is a Pentium 120 with a Matsushita/Panasonic 562 drive on a genuine SoundBlaster card. The drive works fine with the driver in the GENERIC kernel, but I'm now trying to recompile the kernel and I keep getting these error messages: In file included from ../../i386/isa/matcd/matcd.c:354: ../../i386/isa/matcd/matcddrv.h:171: redefinition of `matcderrors' ../../i386/isa/matcd/matcd.h:171: `matcderrors' previously defined here ../../i386/isa/matcd/matcd.c:437: `NMATCD' undeclared here (not in a function) ../../i386/isa/matcd/matcd.c:437: size of array `matcd_data' has non-integer type ../../i386/isa/matcd/matcd.c:461: `NMATCD' undeclared here (not in a function) ../../i386/isa/matcd/matcd.c:485: `NMATCD' undeclared here (not in a function) ../../i386/isa/matcd/matcd.c:485: size of array `kdc_matcd' has non-integer type ../../i386/isa/matcd/matcd.c: In function `matcdopen': ../../i386/isa/matcd/matcd.c:639: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c:639: (Each undeclared identifier is reported only once ../../i386/isa/matcd/matcd.c:639: for each function it appears in.) ../../i386/isa/matcd/matcd.c: In function `matcdclose': ../../i386/isa/matcd/matcd.c:830: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c: In function `matcdstrategy': ../../i386/isa/matcd/matcd.c:896: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c: In function `matcd_probe': ../../i386/isa/matcd/matcd.c:1255: `NMATCD' undeclared (first use this function) ../../i386/isa/matcd/matcd.c: In function `matcd_blockread': ../../i386/isa/matcd/matcd.c:1915: warning: `dp' might be used uninitialized in this function Then the kernel compilation halts. If I comment out the line for the matcd driver in my kernel config file, the kernel compiles fine, but I *really* want CD-ROM drive support. I've tried linking the matcd.c file to the matcd.c file on the second CD-ROM (the live file system) but I get the same errors. This kernel compiled fine under 2.0.5. Any hints? Please CC any responses to me (lcozzens@sidwell.edu) Thanks! Lisa ____ Lisa Cozzens (lcozzens@sidwell.edu) (o | WWW Home Page: http://www.sidwell.edu/~lcozzens/ \ "We are what we consistently do; excellence, therefore, ========= is not an act but a habit." --Aristotle