Bug 197698

Summary: x11-toolkits/p5-Wx: Links to wrong stdc++ library
Product: Ports & Packages Reporter: Dave Hayes <dave>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Many People CC: amdmi3, dave
Priority: --- Keywords: needs-patch, needs-qa, regression
Version: Latest   
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196703

Description Dave Hayes 2015-02-16 05:17:43 UTC
> client/wxtest.pl
Can't load '/usr/local/lib/perl5/site_perl/mach/5.18/auto/Wx/Wx.so' for module Wx: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by /usr/local/lib/libwx_baseu-3.0.so.0 not found at /usr/local/lib/perl5/5.18/mach/DynaLoader.pm line 190.
 at client/wxtest.pl line 6.
Compilation failed in require at client/wxtest.pl line 6.

> ldd /usr/local/lib/perl5/site_perl/mach/5.18/auto/Wx/Wx.so | grep stdc
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x802a11000)

> ldd /usr/local/lib/libwx_baseu-3.0.so.0 | grep stdc
	libstdc++.so.6 => /usr/local/lib/gcc48/libstdc++.so.6 (0x801dde000)

This broke when they fixed webkit-gtk2 per bug:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196703 

(There appears to be no "see also" in the new bug submitting form so it's included above).

Naively putting "compiler:c++11-lib" in USES (after the perl5 one) did not work to fix this.
Comment 1 John Marino freebsd_committer freebsd_triage 2015-04-20 10:25:43 UTC
FYI, the situation may or may not have changed; I committed to this port today on a separate but related issue.
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2015-04-24 18:55:48 UTC
I've marked it BROKEN on pre-10.x: it completely ignores LDFLAGS and produces broken library (and some hacks are needed to make it build at all).
Comment 3 Dave Hayes 2015-04-26 20:05:31 UTC
I'm running a build of 9.3 built with clang and built to install clang as the default compiler. Will this port build given those circumstances?
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2015-05-09 02:30:13 UTC
You may try, but I guess not, as it'd need c++ library with c++11 support in addition to compiler. And it should use the same library/compiler as wx itself.
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2015-11-24 14:56:53 UTC
The port was marked broken, I guess there's nothing we can do in the scope of this PR.