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

From: Michael Butler <imb_at_protected-networks.net>
Date: Fri, 06 Feb 2015 17:09:38 -0500
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



Received on Fri Feb 06 2015 - 21:09:45 UTC

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