From owner-freebsd-questions Sun Dec 31 14:55:38 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA23206 for questions-outgoing; Sun, 31 Dec 1995 14:55:38 -0800 (PST) Received: from melbourne.DIALix.oz.au (uucp@melbourne.DIALix.oz.au [192.203.228.98]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id OAA23195 for ; Sun, 31 Dec 1995 14:55:27 -0800 (PST) Received: (from uucp@localhost) by melbourne.DIALix.oz.au (sendmail) with UUCP id JAA24405 for freebsd-questions@freebsd.org; Mon, 1 Jan 1996 09:55:14 +1100 (EST) Received: (from mark@localhost) by putte.seeware.DIALix.oz.au (8.6.12/8.6.9) id IAA00521; Mon, 1 Jan 1996 08:58:24 +1100 Date: Mon, 1 Jan 1996 08:58:24 +1100 From: Mark Hannon Message-Id: <199512312158.IAA00521@putte.seeware.DIALix.oz.au> To: freebsd-questions@freebsd.org Subject: Matcd compilation In-Reply-To: <199512310242.CAA06056@albion.loach.org> Sender: owner-questions@freebsd.org Precedence: bulk In article <199512310242.CAA06056@albion.loach.org>, you wrote: >I'm having a nasty time of configuring a new kernel for my freshly upgraded >2.1.0-Release system. While compiling a kernel based on the following messy, >rather lame (who has time to fix the little things?) kernel configuration >file: > > >I get the following most bogus result: > >albion# make >cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I../../../include -DJESSIETOE -DI486_CPU -DXSERVER -DMAXCONS=16 -DHARDFONTS -DQUOTA -DIPACCT -DIPFIREWALL_VERBOSE -DIPFIREWALL -DMROUTING -DGATEWAY -DSYSVMSG -DSYSVSEM -DSYSVSHM -DOPEN_MAX=128 -DCHILD_MAX=128 -DCOMPAT_LINUX -DDDB -DKTRACE -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_REPORT_GEOMETRY -DSCSI_DELAY=10 -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -Di386 -DLOAD_ADDRESS=0xF01000 >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 > >Has anyone else experienced similar troubles compiling with that driver, and, >if so, what do I need to fix where, or (god forbid), do I need to go and try Yep, you used the upgrade option when going to 2.1.0 didn't you? So did I and the new kernel sources were extracted into /sys without cleaning it, it seems that with the reorganisation of the matcd driver this means that you have an old (and obsolete) file around which is stuffing things up. Clean /sys with a rm -rf and then re-extract the kernel sources. Worked like a charm for me. /mark -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Mark Hannon,| FreeBSD - Free Unix for your PC| mark@seeware.DIALix.oz.au| | Melbourne, | PGP key available by fingering | epamha@epa.ericsson.se | | Australia | seeware@melbourne.DIALix.oz.au | | +-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+