Subject: Re: Link failure - custom kernel with if_rum defined
To: Paul Goyette <paul@whooppee.com>
From: None <khym@azeotrope.org>
List: current-users
Date: 05/07/2007 00:32:41
On Sun, May 06, 2007 at 03:41:27PM -0700, Paul Goyette wrote:
> Sources updated via CVS at "Sun May  6 21:34:35 UTC 2007"
> 
> Kernel config file contains
> 
>   	rum*            at uhub? port ?
> 
> Got the following errors:
> #      link  LAPPY/netbsd
> /usr/obj/tooldir/x86_64/i386/bin/i386--netbsdelf-ld -Map netbsd.map --cref 
> -T /u
> sr/src/sys/arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o 
> netbsd ${
> SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
> if_rum.o: In function `rum_init':
> if_rum.c:(.text+0x1b73): undefined reference to `firmware_open'
> if_rum.c:(.text+0x1b86): undefined reference to `firmware_get_size'
> if_rum.c:(.text+0x1b93): undefined reference to `firmware_malloc'
> if_rum.c:(.text+0x1bc0): undefined reference to `firmware_read'
> if_rum.c:(.text+0x1bcd): undefined reference to `firmware_close'
> if_rum.c:(.text+0x1ca5): undefined reference to `firmware_free'
> if_rum.c:(.text+0x1ccf): undefined reference to `firmware_free'
> if_rum.c:(.text+0x1fd6): undefined reference to `firmware_free'
> if_rum.c:(.text+0x229a): undefined reference to `firmware_close'
> *** [netbsd] Error code 1
> 1 error
> 
> nbmake: stopped in /usr/obj/objdir/i386/sys/arch/i386/compile/LAPPY
> 
> I'm not sure why sys/dev/firmload.c (which seems to be where those 
> routines get defined) isn't getting included...

Yeah, I noticed that a few months ago and sent a PR about it
with a patch, but there hasn't been any activity :( kern/35113
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=35113

Also mentioned in the PR is an addition to usbdevs to add the
vendor/product ID for my ASUS WL 167g ver 2, and a manpage fix (which
has already been done).
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 31 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++