Re: random(4) update causes mips compile fail | mips boot fail

From: Mark R V Murray <mark_at_grondar.org>
Date: Sat, 7 Sep 2013 20:21:23 +0100
On 7 Sep 2013, at 20:12, Sean Bruno <sean_bruno_at_yahoo.com> wrote:

> On Sat, 2013-09-07 at 19:56 +0100, Mark R V Murray wrote:
>>> Ok.  Right now, the mips kernel doesn't build unless I have random
>> built
>>> in, we were using it as a module previously.  
>> 
>> 
>> I'm testing a fix, but if you want to help out, please move the
>> random_null_func()
>> from randomdev.c to pseudo_rng.c in sys/dev/random. Patch enclosed.
>> 
>> Thanks!
>> 
>> M 
> 
> Closer:
> 
> --- kernel.debug ---
> linking kernel.debug
> random_adaptors.o: In function `random_sysctl_active_adaptor_handler':
> /home/sbruno/bsd/head/sys/dev/random/random_adaptors.c:(.text+0x2dc):
> undefined reference to `random_get_active_adaptor'
> /home/sbruno/bsd/head/sys/dev/random/random_adaptors.c:(.text+0x2dc):
> relocation truncated to fit: R_MIPS_26 against
> `random_get_active_adaptor'
> *** [kernel.debug] Error code 1

Nearly there - I saw that too.

Proposed fix enclosed.

M
-- 
Mark R V Murray



Received on Sat Sep 07 2013 - 17:21:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC