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 795766 - [bad] Compilation fails on GCC 8.0.1
[bad] Compilation fails on GCC 8.0.1
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-02 21:51 UTC by U. Artie Eoff
Modified: 2018-11-03 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description U. Artie Eoff 2018-05-02 21:51:37 UTC
gstreamer (master) heads/master-0-g98200ddd8dfd 
gst-plugins-base (master) heads/master-0-gdbd9ff1cf510 
gst-plugins-good (master) heads/master-0-gae1c2b0c674f 
gst-plugins-bad (master) heads/master-0-ge1a90f1ec998

With GCC 8.0.1 (default on recent Fedora 28 release), gst-plugins-bad fails to compile:

In file included from /opt/media/install/include/gstreamer-1.0/gst/gst.h:90,
                 from gstopencvutils.h:29,
                 from gstopencvutils.cpp:26:
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'gdouble GDOUBLE_SWAP_LE_BE(gdouble)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:597:5: error: conflicting C language linkage declaration 'GDOUBLE_SWAP_LE_BE(gdouble)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'gfloat GST_READ_FLOAT_LE(const guint8*)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:700:5: error: conflicting C language linkage declaration 'GST_READ_FLOAT_LE(const guint8*)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'gfloat GST_READ_FLOAT_BE(const guint8*)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:721:5: error: conflicting C language linkage declaration 'GST_READ_FLOAT_BE(const guint8*)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'gdouble GST_READ_DOUBLE_LE(const guint8*)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:742:5: error: conflicting C language linkage declaration 'GST_READ_DOUBLE_LE(const guint8*)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'gdouble GST_READ_DOUBLE_BE(const guint8*)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:763:5: error: conflicting C language linkage declaration 'GST_READ_DOUBLE_BE(const guint8*)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'void GST_WRITE_FLOAT_LE(guint8*, gfloat)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:783:5: error: conflicting C language linkage declaration 'GST_WRITE_FLOAT_LE(guint8*, gfloat)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'void GST_WRITE_FLOAT_BE(guint8*, gfloat)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:803:5: error: conflicting C language linkage declaration 'GST_WRITE_FLOAT_BE(guint8*, gfloat)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'void GST_WRITE_DOUBLE_LE(guint8*, gdouble)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:823:5: error: conflicting C language linkage declaration 'GST_WRITE_DOUBLE_LE(guint8*, gdouble)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h: In function 'void GST_WRITE_DOUBLE_BE(guint8*, gdouble)':
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:843:5: error: conflicting C language linkage declaration 'GST_WRITE_DOUBLE_BE(guint8*, gdouble)::<unnamed union> u' [-Werror]
   } u;
     ^
/opt/media/install/include/gstreamer-1.0/gst/gstutils.h:575:5: note: previous declaration 'GFLOAT_SWAP_LE_BE(gfloat)::<unnamed union> u'
   } u;
     ^
cc1plus: all warnings being treated as errors

Can workaround with --disable-fatal-warnings.
Comment 1 GStreamer system administrator 2018-11-03 14:22:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/700.