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 783678 - Can't build with gcc7
Can't build with gcc7
Status: RESOLVED FIXED
Product: gstreamermm
Classification: Bindings
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gstreamermm-maint
gstreamermm-maint
Depends on:
Blocks:
 
 
Reported: 2017-06-12 08:57 UTC by Luigi Baldoni
Modified: 2017-07-03 11:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstreamermm gcc7 build log (21.33 KB, text/plain)
2017-06-12 08:57 UTC, Luigi Baldoni
  Details
patch for gstreamermm 1.8.0 to build with gstreamer 1.12 (3.35 KB, patch)
2017-06-12 08:58 UTC, Luigi Baldoni
none Details | Review
fixex build with gcc7 in gstmm 1.8.0 (3.32 KB, patch)
2017-07-02 15:02 UTC, Luigi Baldoni
none Details | Review

Description Luigi Baldoni 2017-06-12 08:57:27 UTC
Created attachment 353597 [details]
gstreamermm gcc7 build log

Using 1.8.0 tarball plus a patch to support gst 1.12 (included).

See conversion error at line #369 in the build log.

No problem with gcc6 instead.
Comment 1 Luigi Baldoni 2017-06-12 08:58:51 UTC
Created attachment 353598 [details] [review]
patch for gstreamermm 1.8.0 to build with gstreamer 1.12
Comment 2 rinni 2017-06-21 10:09:44 UTC
For me this patch does _not_ fix the build failure with gcc-7.
I still can't compile with g++ 7.1 (gstreamer version was 1.12)
Comment 3 Luigi Baldoni 2017-06-21 10:15:37 UTC
Indeed, still waiting on Marcin Kolny to fix the gcc7 trouble.

He mentioned being working on gstmm 1.12, so perhaps that release will also 
fix this.
Comment 4 Marcin Kolny (IRC: loganek) 2017-07-02 13:00:13 UTC
Thanks guys for the report.

This problem has been fixed in the unstable development version. The fix will be available in the next major software release.
Comment 5 Marcin Kolny (IRC: loganek) 2017-07-02 13:03:32 UTC
However, iterator needs to be refactored, I've opened a bug: https://bugzilla.gnome.org/show_bug.cgi?id=784446
Comment 6 Luigi Baldoni 2017-07-02 15:02:43 UTC
Created attachment 354796 [details] [review]
fixex build with gcc7 in gstmm 1.8.0

@rinni this patch works for me, it brings iterator.h to the latest commit, courtesy of Marcin.

But use it at your own risk, no idea how stable it will be.
Comment 7 Marcin Kolny (IRC: loganek) 2017-07-02 15:57:50 UTC
The patch is stable. It's just generated version of .hg file, so it's safe to use it.
Comment 8 rinni 2017-07-03 11:53:59 UTC
I can confirm that if fixes the build with gcc 7. Thanks!