[Pkg-giraffe-discuss] possible fixes for build issues on kfreebsd
Guido Günther
agx at sigxcpu.org
Wed Oct 18 06:37:48 UTC 2017
Hi,
On Wed, Oct 18, 2017 at 01:18:01AM +0200, Jan Engelhardt wrote:
>
> On Tuesday 2017-10-17 21:58, Carsten Schoenert wrote:
>
> >> ../../common/platform.linux.cpp:237:16: error: 'backtrace' was not declared in this scope
> >> int addrlen = backtrace(addrlist, BT_MAX);
> >> ../../common/platform.linux.cpp:240:22: error: 'backtrace_symbols' was not declared in this scope
> >> char **symbollist = backtrace_symbols(addrlist, addrlen);
>
> Hm yes, backtrace_symbols is a glibc-ism.
> It would appear that the OpenBSD developers simply used
> "libexecinfo" as a drop-in replacement. If it works for them,
> perhaps that is what the kfreebsd build would need too.
Funny part is that *k*freebsd uses glibc ;) I can't tell from here why
it's not found.
BTW FreeBSD seems to have it too:
https://www.freebsd.org/cgi/man.cgi?query=backtrace&sektion=3&manpath=FreeBSD+11-current
using libexecinfo as you describe.
Cheers,
-- Guido
More information about the Pkg-giraffe-discuss
mailing list