Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2000 01:17:45 +0900
From:      Tomoaki SATO <tomo@design.toshiba.co.jp>
To:        current@freebsd.org
Cc:        tomo@design.toshiba.co.jp
Subject:   I cannot make bktr.
Message-ID:  <20001020011745J.tomo@design.toshiba.co.jp>

next in thread | raw e-mail | index | archive | help
Hi, all.

I cannot make a kernel on FreeBSD-current. I get a following compile
error message.

/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c: In
function `bktr_detach':
/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484:
`unit' undeclared (first use in this function)
/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: (Each 
undeclared identifier is reported only once
/work/src/sys/modules/bktr/bktr/../../../dev/bktr/bktr_os.c:484: for
each function it appears in.)
*** Error code 1

Stop in /work/src/sys/modules/bktr/bktr.
*** Error code 1

I think this is a simple problem. "unit" is undeclared in bktr_detach.
So I make a simple patch.

ns# diff bktr_os.c.org bktr_os.c
466a467
>       unsigned int    unit;
467a469
>       unit = device_get_unit(dev);

----
Tomoaki SATO / tomo@design.toshiba.co.jp
TOSHIBA DESIGN CENTER


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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