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 688510 - d3dvideosink: "DECLARE_INTERFACE_IID_" redefined compiler warning
d3dvideosink: "DECLARE_INTERFACE_IID_" redefined compiler warning
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.x
Other Windows
: Normal normal
: 1.0.3
Assigned To: Andoni Morales
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-11-17 05:16 UTC by Michael Esemplare
Modified: 2012-11-20 11:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
d3dvideosink: fix redefinition of DECLARE_INTERFACE_IID_ (829 bytes, patch)
2012-11-20 11:08 UTC, Andoni Morales
committed Details | Review

Description Michael Esemplare 2012-11-17 05:16:07 UTC
Compiling with -WError switch fails to build for windows cross compile. 

Using i686-w64-mingw32 toolchain.

Output from make:

Making all in sys
make[2]: Entering directory `/home/src/git/gst/gst-plugins-bad/sys'
make -C d3dvideosink
make[3]: Entering directory `/home/src/git/gst/gst-plugins-bad/sys/d3dvideosink'
  CC     libgstd3dvideosink_la-d3dvideosink.lo
In file included from d3dvideosink.c:25:0:
d3dvideosink.h:39:0: error: "DECLARE_INTERFACE_IID_" redefined [-Werror]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/objbase.h:70:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[3]: *** [libgstd3dvideosink_la-d3dvideosink.lo] Error 1
make[3]: Leaving directory `/home/src/git/gst/gst-plugins-bad/sys/d3dvideosink'
make[2]: *** [d3dvideosink] Error 2
make[2]: Leaving directory `/home/src/git/gst/gst-plugins-bad/sys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/src/git/gst/gst-plugins-bad'
make: *** [all] Error 2
Comment 1 Andoni Morales 2012-11-20 11:08:18 UTC
Created attachment 229463 [details] [review]
d3dvideosink: fix redefinition of  DECLARE_INTERFACE_IID_

Newer mingw has this macro already defined.
Comment 2 Tim-Philipp Müller 2012-11-20 11:11:20 UTC
Thanks!

 commit 689cef0fc7a3504b7756101ec8ee28b0ba6960e8
 Author: Andoni Morales Alastruey <ylatuya@gmail.com>
 Date:   Tue Nov 20 12:05:17 2012 +0100

    d3dvideosink: fix redefinition of DECLARE_INTERFACE_IID
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688510