Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 1996 08:58:24 +1100
From:      Mark Hannon <mark@seeware.DIALix.oz.au>
To:        freebsd-questions@freebsd.org
Subject:   Matcd compilation
Message-ID:  <199512312158.IAA00521@putte.seeware.DIALix.oz.au>
In-Reply-To: <199512310242.CAA06056@albion.loach.org>

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

<clip>

>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

<clip>

>
>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 |                          |
+-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



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