Subject: kern/15670: Unable to compile kernel of v1.5.2 distribution, i386 port, errors out at very end of procedure.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <drwho@virtadpt.net>
List: netbsd-bugs
Date: 02/19/2002 07:30:22
>Number:         15670
>Category:       kern
>Synopsis:       Unable to compile kernel of v1.5.2 distribution, i386 port, errors out at very end of procedure.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 19 07:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     The Doctor
>Release:        1.5.2
>Organization:
The Crystal Chantry
>Environment:
NetBSD  1.5.2 NetBSD 1.5.2 (GENERIC_LAPTOP) #3: Sat Aug 18 23:43:41 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
>Description:
Unable to complete kernel recompilation procedure.
Followed kernel recompilation procedure outlined in NetBSD Guide.  Executed the make command to rebuild the OS kernel...  compilation seemed to proceed normally, but terminates at the very end of the procedure with an undefined reference error:

<final output of procedure:>
ld -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} vers.o
if_ethersubr.o In function 'ether_output':
if_ethersubr.o(.text+0x2e4): undefined reference to 'looutput'
ip_output.o: In function 'ip_mloopback':
ip_output.o(.text+0x15b2): undefined refernce to 'loooutput'

#
<end of output>

The build fails.  The system in question is a Toshiba Tecra 8100, 256MB RAM, 11.0GB hard drive currently using the LAPTOP_INSTALL installation kernel.
>How-To-Repeat:
Copy /usr/src/sys/arch/i386/conf/GENERIC to TECRA (type of my machine - Toshiba Tecra 8100), configure using "dmesg | grep ' at' | less" / "vi TECRA" procedure in NetBSD guide...  "config TECRA" / "cd ../compile/TECRA"...  "make depend ; make"
Compilation procedure churns for a few minutes then errors out with the description given above.
>Fix:
No fix yet, I'm too new with NetBSD to have much of a handle yet on what's going on.  I did some poking around in the relevant files but didn't find anything that appeared to be out of place (I havn't tried altering any kernel code, this is a stock recompilation).  Unfortunately, I don't know the makefiles well enough yet to know if there's a missing reference somewhere.
>Release-Note:
>Audit-Trail:
>Unformatted: