Re: vwarn: libc vs opensolaris/ctf/tools

From: stephane rochoy <stephane.rochoy_at_stormshield.eu>
Date: Thu, 21 Apr 2022 14:57:13 UTC
Mark Johnston <markj@freebsd.org> writes:

> On Thu, Apr 21, 2022 at 04:24:18PM +0200, stephane rochoy wrote:
>> The vwarn function seems to be defined both in 
>> lib/libc/gen/err.c
>> and in cddl/contrib/opensolaris/tools/ctf/common/utils.c. It 
>> seems
>> to be ok to workaround the problem by enclosing OpenSolaris'
>> implementation in #if 0.
>
> I think that'd be fine.  We can remove it outright.
>
> Your build is statically linking ctfdump, due to the use of 
> NO_SHARED.
> I can reproduce the failure locally, but as far as I can tell 
> the
> problem has been there for a long time.

Ok, got it.

>>     WITH_SHLIBRANDOM=1
>
> What is WITH_SHLIBRANDOM?

A feature borrowed from HardenedBSD. You would be right to suspect
my src.conf need some cleanup ;)

Anyway, thanks for the (lighthning fast) answer Mark!

Regards,
-- 
St├ęphane Rochoy
O: Stormshield