Re: git: c00d34566536 - main - Install unwind.h into /usr/include

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Thu, 21 Apr 2022 20:57:09 UTC
On 21 Apr, Don Lewis wrote:
> On 21 Apr, T$(D)F(Bl Coosemans wrote:
>> On Wed, 20 Apr 2022 18:35:15 -0700 (PDT) Don Lewis
>> <truckman@FreeBSD.org> wrote:
>>> My only remaining question is why the selftest fails before the recent
>>> padding fix.  I would expect the tests to pass with the incorrectly
>>> placed padding as long as everything was compiled with the same
>>> structure definition.
>> 
>> Are you building with devel/libunwind installed?  It installs its own
>> unwind.h which does not have the alignment changes so it does not induce
>> padding in __cxa_exception.  So you're not actually compiling with the
>> same structure definition.
> 
> Bingo!  libunwind is getting pulled in by the gstreamer dependency.  Not
> sure how to fix this because some of the other dependencies are not
> getting built with libunwind.

... and in view of the above, why does adding the padding to the system
unwind.h header fix the self test since that will introduce a mismatch?