r278328: fails to build kernel due to /usr/src/sys/kern/subr_bus.c: undefined reference to `memchr'
Garrett Cooper
yaneurabeya at gmail.com
Fri Feb 6 23:35:13 UTC 2015
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150206/4b8986c8/attachment.sig>
More information about the freebsd-current
mailing list