Subject: Re: Loading LKMs at boot yields unresolved symbols, but from commandline
To: Quentin Garnier <cube@cubidou.net>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: netbsd-users
Date: 03/04/2005 10:47:36
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigA6296F02D7352D246FE69D23
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Quentin Garnier wrote:

>On Fri, Mar 04, 2005 at 09:32:02AM -0800, Jeff Rizzo wrote:
>[...]
>  
>
>>The problem:  if I load the LKMs from the commandline, it's fine. 
>>However, when I configure things in lkm.conf for boot-time load, I get
>>undefined reference errors.  This is *with* the -s flag.
>>    
>>
>
>Hmm.  At first I thought it was kern/29133, but I'm not that sure.
>
>I'm wondering a bit about the part in /etc/rc.lkm where it adds
>-A unconditionally (well, as long as the kernel is readable).  Could
>you try with that part commented out?  (It begins with booted_kernel.)
>
>  
>

Sure enough, with that part commented out, it loads just fine.  What do
you think the best general-purpose solution is?

Thanks!

+j


--------------enigA6296F02D7352D246FE69D23
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iQCVAwUBQiitTLOuUtxCgar5AQLGkwP5ASLmSeJU8o++s7ryFrelJh9mmPhFl7q1
WqPJ/ltYmjZUb2+Jk2m3ZBy7jzzGkTGJgdPHLiBuRqICF9kBj428aqhqJetigCCj
fzbgyj6r6ak7HnQ2CAtokWH+Wu7c1fHgBgkJ4cuxtKrH0Gs/rd5iPJTc+omUseJb
6XLkcwGiiOY=
=KzmD
-----END PGP SIGNATURE-----

--------------enigA6296F02D7352D246FE69D23--