r278328: fails to build kernel due to /usr/src/sys/kern/subr_bus.c: undefined reference to `memchr'
Michael Butler
imb at protected-networks.net
Fri Feb 6 22:09:46 UTC 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150206/bdfc4999/attachment.sig>
More information about the freebsd-current
mailing list