After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781561 - msdk: meson build fails
msdk: meson build fails
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.12.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-20 20:22 UTC by Scott D Phillips
Modified: 2017-05-11 06:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] msdk: use a dummy.cpp file to force c++ linking (2.11 KB, patch)
2017-04-20 20:22 UTC, Scott D Phillips
none Details | Review
[PATCH v2] msdk: use a dummy.cpp file to force c++ linking (2.19 KB, patch)
2017-04-20 20:37 UTC, Scott D Phillips
committed Details | Review
[PATCH] msdk: Declare libmfx.a as a C++ static library (1.14 KB, patch)
2017-05-10 22:35 UTC, Scott D Phillips
committed Details | Review

Description Scott D Phillips 2017-04-20 20:22:38 UTC
Created attachment 350166 [details] [review]
[PATCH] msdk: use a dummy.cpp file to force c++ linking

The msdk plugin is linked without libstdc++ in the meson build. Add a dummy.cpp file to force c++ linking.
Comment 1 Scott D Phillips 2017-04-20 20:37:25 UTC
Created attachment 350167 [details] [review]
[PATCH v2] msdk: use a dummy.cpp file to force c++ linking

changes since v1:
- added link to the meson issue for this
- left the autotools build alone
Comment 2 Nirbheek Chauhan 2017-04-20 20:49:50 UTC
Review of attachment 350167 [details] [review]:

LGTM! Should go into 1.12 if possible. Minimal possibility of regressions.
Comment 3 Tim-Philipp Müller 2017-05-04 23:06:41 UTC
Is this workaround still required with meson 0.40.0 and/or 0.40.1 ?
Comment 4 Nirbheek Chauhan 2017-05-04 23:11:27 UTC
This was a regression in 0.39 which was fixed in 0.40. We should probably bump the required Meson version instead of doing this now.
Comment 5 Tim-Philipp Müller 2017-05-04 23:14:48 UTC
I've pushed it into the 1.12 branch now since we don't want to bump the version there, do we? (We traditionally don't bump build deps or any deps really in a stable branch)

commit 1d0f9a7f8de2d0f338513fd026fc86c81e7c7040
Author: Scott D Phillips <scott.d.phillips@intel.com>
Date:   Thu Apr 20 20:18:30 2017 -0700

    msdk: use a dummy.cpp file to force c++ linking
    
    Add a dummy.cpp file to force c++ linking as required by libmfx.a.
    I'm certain that the meson build worked for me in the past, but I
    have no idea how it could have, looking at it now.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781561
Comment 6 Nirbheek Chauhan 2017-05-04 23:16:36 UTC
Fair enough!
Comment 7 Sebastian Dröge (slomo) 2017-05-08 14:30:41 UTC
Should this be closed now?
Comment 8 Tim-Philipp Müller 2017-05-08 14:41:56 UTC
> Should this be closed now?

No, will do once we bump the req.
Comment 9 Scott D Phillips 2017-05-10 22:35:28 UTC
Created attachment 351587 [details] [review]
[PATCH] msdk: Declare libmfx.a as a C++ static library

Here's a patch for master. We've bumped the meson requirement so the dummy.cpp file isn't needed at all.
Comment 10 Tim-Philipp Müller 2017-05-11 06:20:10 UTC
commit b2663e12e4b2096264ec18577136b4f22b75c2ca
Author: Scott D Phillips <scott.d.phillips@intel.com>
Date:   Wed May 10 22:29:10 2017 -0700

    msdk: Declare libmfx.a as a C++ static library
    
    This lets meson know that the overall plugin needs built with C++
    linking.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781561
Comment 11 Tim-Philipp Müller 2017-05-11 06:20:45 UTC
Comment on attachment 350167 [details] [review]
[PATCH v2] msdk: use a dummy.cpp file to force c++ linking

This we pushed to 1.12 branch.