Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2023 00:25:55 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Christoph Moench-Tegeder <cmt@burggraben.net>
Cc:        Mark Millard <marklmi@yahoo.com>, toolchain@freebsd.org
Subject:   Re: c++: dynamic_cast woes
Message-ID:  <6E31D6F9-8E9D-42FE-9D14-2A80EBD2B912@FreeBSD.org>
In-Reply-To: <ZNLBwvwFMdo22k-3@elch.exwg.net>
References:  <ZNATMN6sbaxcqE6n@elch.exwg.net> <E0109064-9ED3-483F-A7D9-6588EC07BF1F@yahoo.com> <6B6A7C9C-8F82-443D-BBC3-B2263FEAFD79@FreeBSD.org> <ZNLBwvwFMdo22k-3@elch.exwg.net>

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

--Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 9 Aug 2023, at 00:29, Christoph Moench-Tegeder <cmt@burggraben.net> wrote:
> 
> ## Dimitry Andric (dim@FreeBSD.org):
> 
>> Yes, this is a typical problem when type info is replicated across
>> dynamic library boundaries. The best thing to prevent this is to
>> ensure that the key functions for a class (typically constructors
>> and destructors) are only in one translation unit (object file),
>> and that object file is only in one .so file.
> 
> As FreeBSD is basically unsupported from upstream, this sounds
> like I'm in for quite a bit of fun here. Well.

FWIW, it took quite a while (kicad has LOTS of dependencies!), but I
built kicad and it looks like I can reproduce the original problem,
after disabling the static-cast-patch. So I will investigate it a bit
further.

-Dimitry


--Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZNQScwAKCRCwXqMKLiCW
o2siAKCcltB9ryrfK4LmHRk/JBkRSKo8WACgrYacbXPBaZ6ah6JfiwnSHE6Hwzs=
=1few
-----END PGP SIGNATURE-----

--Apple-Mail=_82CD0035-E2D2-4D7A-9644-CE21A5F6ECD1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E31D6F9-8E9D-42FE-9D14-2A80EBD2B912>