Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2019 07:22:25 +0000
From:      =?utf-8?B?TSZTIC0gS3Jhc3puYWkgQW5kcsOhcw==?= <Krasznai.Andras@mands.hu>
To:        Pete Wright <pete@nomadlogic.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   RE: undefined symbol: random_source_register during kernel compilation
Message-ID:  <5da8f5c9f9074395b613ff517f2b0327@MSEXCH13.mands.hu>
In-Reply-To: <2c1ad95b-ee79-f752-a66c-53a223dd00a7@nomadlogic.org>
References:  <1563452492662.7098@mands.hu> <2c1ad95b-ee79-f752-a66c-53a223dd00a7@nomadlogic.org>

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

Good morning!
I found a problem rather quickly: the compilation complains about a missing libcasper.h file. (/usr/include/capsicum_helpers.h references libcasper.h, and not from the sources but from the installed system.

The problem is that casper is a feature which can be switched off (and on again) in /etc/src.conf, but I suppose that if I switch it BACK, thatis if I want it to compile casper again (remove the WITHOUT_CASPER=YES line from src.conf, e.g.), then the sources for casper should be there somewhere in my freshly synchonized source tree.

(and it is: libcasper.h is in /usr/src/lib/libcasper/libcasper  but compilation supposes that it has already been installed into /usr/include).

Now I try to compile GENERIC with my original src.conf, which switches off the CASPER, and see what happens.

rgds
Andras Krasznai





-----Eredeti üzenet-----
Feladó: Pete Wright [mailto:pete@nomadlogic.org] 
Küldve: 2019. július 18. 19:10
Címzett: M&S - Krasznai András; freebsd-current@freebsd.org
Tárgy: Re: undefined symbol: random_source_register during kernel compilation



On 7/18/19 5:21 AM, M&S - Krasznai András wrote:
> Hi
>
>
> I have been trying to compile a freebsd-current kernel since the 16th of July, and keep getting the following error during "make buildkernel":
>
>
> Building /usr/obj/usr/src/amd64.amd64/sys/G13NEW/kernel.full
> linking kernel.full
> ld: error: undefined symbol: random_source_register
>>>> referenced by ivy.c:108 (/usr/src/sys/dev/random/ivy.c:108)
>>>>                ivy.o:(rdrand_modevent)
> ld: error: undefined symbol: random_source_deregister
>>>> referenced by ivy.c:115 (/usr/src/sys/dev/random/ivy.c:115)
>>>>                ivy.o:(rdrand_modevent)
> ld: error: undefined symbol: random_source_register
>>>> referenced by nehemiah.c:124 (/usr/src/sys/dev/random/nehemiah.c:124)
>>>>                nehemiah.o:(nehemiah_modevent)
> ld: error: undefined symbol: random_source_deregister
>>>> referenced by nehemiah.c:133 (/usr/src/sys/dev/random/nehemiah.c:133)
>>>>                nehemiah.o:(nehemiah_modevent)
> *** Error code 1
>
> Stop.
> make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/G13NEW
> .ERROR_TARGET='kernel.full'
> .ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/sys/G13NEW/kernel.full.meta'
> .MAKE.LEVEL='2'
> MAKEFILE=''
> .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose curdirOk=
> yes'
>
> I deleted and resynchronized the source tree and emptied the /usr/obj directory, but it did not help.
>
> How could I get kernel compilation work again? I would like to say that the make.conf, src.conf files as well as my kernel configuration file was not changed since a couple of months (since I installed freebsd-current).
are you able to build GENERIC?  if so might be worth looking at the 
delta's b/w GENERIC and your custom configuration and trying to zero in 
on what may be causing this to fail.

-p

-- 
Pete Wright
pete@nomadlogic.org
@nomadlogicLA


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5da8f5c9f9074395b613ff517f2b0327>