Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2009 00:26:28 -0500 (CDT)
From:      Scott Bennett <bennett@cs.niu.edu>
To:        Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>, freebsd-questions@freebsd.org
Subject:   Re: /sys/modules/mii/nsgphy.c compilation errors
Message-ID:  <200909250526.n8P5QSQV012971@mp.cs.niu.edu>

Next in thread | Raw E-Mail | Index | Archive | Help
     On Tue, 22 Sep 2009 15:22:40 -0400 Lowell Gilbert
<freebsd-questions-local@be-well.ilk.org> wrote:
>Scott Bennett <bennett@cs.niu.edu> writes:
>
>>      An update committed since Friday appears to have broken mii/nsgphy.c
>> in the kernel.  When I try to build a kernel now, I get the following errors
>> during the compilations of mii/nsgphy.c.
>>
>> /usr/src/sys/modules/mii/../../dev/mii/nsgphy.c:104: error: 'MII_MODEL_NATSEMI_DP83865' undeclared here (not in a function)
>> /usr/src/sys/modules/mii/../../dev/mii/nsgphy.c:104: error: 'MII_STR_NATSEMI_DP83865' undeclared here (not in a function)
>> *** Error code 1
>> 1 error
>> *** Error code 2
>> 1 error
>> *** Error code 2
>> 1 error
>>
>>      Having run cvsup just a few minutes ago and then having tried again to
>> build a kernel, I see that the errors persist.  Is this something that someone
>> is already fixing?  Or should I try to submit a PR?
>
>You don't mention which branch you're on, but it sounds like it's

     Oops.  It's 7.2-STABLE.

>probably a local issue for your installation.  I built and installed
>from the latest RELENG_7 today, and there are new bug reports on
>RELENG_8 since Friday.  Those failing identifiers *are* present in the
>correct sources; it looks like your miidevs.h isn't being regenerated
>properly.  You *are* remembering to do a buildworld before a
>buildkernel, right?
>
     Actually, I did.  However, your note jogged a memory, so I went back to
the handbook and discovered that something I was doing was non-standard and
would have had the same effect.  It's how I've always done it, so it's rather
remarkable that it hasn't burned me before this.  So I tried doing it the
right way, and that quickly caused the file system to overflow. :-(  I moved
the file system to a larger partition, tried it again, and it worked just fine.
     Thanks very much for your note, which provided the clue that led me to
my error.


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:       bennett at cs.niu.edu                              *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200909250526.n8P5QSQV012971>