kern/62594: kernel link fails if ethernet is not included

Radim Kolar hsn at netmag.cz
Mon Feb 9 09:30:21 PST 2004


>Number:         62594
>Category:       kern
>Synopsis:       kernel link fails if ethernet is not included
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 09 09:30:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2-RELEASE-p2 i386
>Organization:
Sanatana Dharma
>Environment:
System: FreeBSD asura.bsd 5.2-RELEASE-p2 FreeBSD 5.2-RELEASE-p2 #2: Sun Feb 8 16:07:05 CET 2004 root at asura.bsd:/usr/src/sys/i386/compile/GENERIC i386

>Description:
If no 'device ether' is in kernel config file, final linking of kernel
fails.
	
>How-To-Repeat:
asura# make NO_MODULES=yes
linking kernel.debug
if.o: In function `if_setlladdr':
/usr/src/sys/i386/compile/DEBUG/../../../net/if.c:1996: undefined reference to `
arp_ifinit'
*** Error code 1

Stop in /usr/src/sys/i386/compile/DEBUG.
asura#
>Fix:
change if.c:1988 from
#ifdef INET
to 
something like #if defined(INET) && defined(ETHER)

I am not sure which symbol is defined by config item 'device ether', just
guessing, because i can't find it.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list