Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2015 15:35:10 -0800
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Michael Butler <imb@protected-networks.net>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Subject:   Re: r278328: fails to build kernel due to /usr/src/sys/kern/subr_bus.c: undefined reference to `memchr'
Message-ID:  <F032C01D-6BF8-4CE7-8101-83293EAD013A@gmail.com>
In-Reply-To: <54D53BA2.6080406@protected-networks.net>
References:  <20150206210607.4a39a75d.ohartman@zedat.fu-berlin.de> <54D53BA2.6080406@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_6C251643-B355-4B5F-944B-F593FB249550
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

On Feb 6, 2015, at 14:09, Michael Butler <imb@protected-networks.net> =
wrote:

> On 02/06/15 15:06, O. Hartmann wrote:
>> Recent sources seem to fail in buildkernel with
>>=20
>> [...]
>> --- 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
>=20
> It seems that this function in libkern was conditionally compiled. You
> might try this:
>=20
>=20
> *** 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.

--Apple-Mail=_6C251643-B355-4B5F-944B-F593FB249550
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJU1U+uAAoJEMZr5QU6S73eFNIH/RYDKzjzNUM8/CKR5sx3EH6R
dHkdg1hcbQUP6xURHWZAtL3yDgHQCMBMsJ4dlahGBBFHxaiTlmIxQn//Qto/xASy
FDVCwmQGpWja4XWyRpknrH/ttcvlpSiNDSuou0gIKMdjXH1BFMLfvApXcvz4uYa+
gnYqa/pTo0bZb0JglYrK6yIniZUBvtfN/oys8V1K8v+do5d8Flx6asC56X5zmFbV
EukDKbpMCSmtjXY4L24pY/mESZdtVx9+qMm2APGoHe/vpE8gtRNGRuUnFWyW+IJQ
qFKcHKOD4L3imNU07plV438O1SDOama1Sjm55W6DOjfxJcXpW0SbiVYHVXjGTas=
=ieVm
-----END PGP SIGNATURE-----

--Apple-Mail=_6C251643-B355-4B5F-944B-F593FB249550--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F032C01D-6BF8-4CE7-8101-83293EAD013A>