Re: r278328: fails to build kernel due to /usr/src/sys/kern/subr_bus.c: undefined reference to `memchr'

From: Garrett Cooper <yaneurabeya_at_gmail.com>
Date: Fri, 6 Feb 2015 15:35:10 -0800
On Feb 6, 2015, at 14:09, Michael Butler <imb_at_protected-networks.net> wrote:

> On 02/06/15 15:06, O. Hartmann wrote:
>> Recent sources seem to fail in buildkernel with
>> 
>> [...]
>> --- kernel ---
>> linking kernel
>> subr_bus.o: In function `devctl2_ioctl':
>> /usr/src/sys/kern/subr_bus.c:(.text+0x6284): undefined reference to `memchr'
>> *** [kernel] Error code 1
> 
> It seems that this function in libkern was conditionally compiled. You
> might try this:
> 
> 
> *** sys/conf/files~     Sat Jan 31 10:44:44 2015
> --- sys/conf/files      Fri Feb  6 17:05:37 2015
> ***************
> *** 3193,3199 ****
>  libkern/murmur3_32.c          standard
>  libkern/mcount.c              optional profiling-routine
>  libkern/memcchr.c             standard
> ! libkern/memchr.c              optional fdt | gdb
>  libkern/memcmp.c              standard
>  libkern/memmem.c              optional gdb
>  libkern/qsort.c                       standard
> --- 3193,3199 ----
>  libkern/murmur3_32.c          standard
>  libkern/mcount.c              optional profiling-routine
>  libkern/memcchr.c             standard
> ! libkern/memchr.c              standard
>  libkern/memcmp.c              standard
>  libkern/memmem.c              optional gdb
>  libkern/qsort.c                       standard

Thank you for the report. The issue has been fixed in r278336.

Received on Fri Feb 06 2015 - 22:35:13 UTC

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