Boost logo

Boost :

Subject: Re: [boost] 1.65 build failure on FreeBSD 11.1
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2017-08-25 05:42:22

2017-08-24 12:42 GMT+00:00 Roger Leigh via Boost <boost_at_[hidden]>:
> The error is "boost/stacktrace/detail/collect_unwind.ipp:55:7: error: no
> member named '_Unwind_Backtrace' in the global namespace". The details are
> below. A creeping Linux-ism?
> /opt/hudson/workspace/OME-FILES-CPP-DEV-merge-superbuild/BUILD_TYPE/Release/node/brill/build/stage/include/boost/stacktrace/detail/collect_unwind.ipp:55:7:
> error: no member named '_Unwind_Backtrace' in the global namespace
> ::_Unwind_Backtrace(&boost::stacktrace::detail::unwind_callback,
> &state);
> ~~^
> 1 error generated.

FreeBSD has the required function definition here:
It is available if _GNU_SOURCE or _BSD_SOURCE macro is defined.

I have no idea why _BSD_SOURCE is not defined on FreeBSD. If there's
some file that defines those macro, please send me the file name and
path, and I'll include it in the Stacktrace library before the
inclusion of unwind.h,

Otherwise try defining the macro manually.

Best regards,
Antony Polukhin

Boost list run by bdawes at, gregod at, cpdaniel at, john at