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 658251 - dccp: cross compile warning - "WINVER" redefined
dccp: cross compile warning - "WINVER" redefined
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.23
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-09-05 13:02 UTC by Levente Farkas
Modified: 2011-10-29 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Levente Farkas 2011-09-05 13:02:05 UTC
when i try to cross compile bad on linux with mingw64 for win32 i've got the error bellow. probably the code is good with mingw32 however it's fail when compiled with mingw64.
please do not define WINVER on mingw64.
---------------------------------------
libtool: compile:  i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../gst/dccp -I../.. -I/usr/i686-w64-mingw32/sys-root/mingw/include -mms-bitfields -I/usr/i686-w64-mingw32/sys-root/mingw/include
/gstreamer-0.10 -I/usr/i686-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/i686-w64-mingw32/sys-root/mingw/lib/glib-2.0/include -I/usr/i686-w64-mingw32/sys-root/mingw/include/libxml2 -DG_THREADS_MANDATOR
Y -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-security -Wold-st
yle-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -MT libgstdccp_
la-gstdccpplugin.lo -MD -MP -MF .deps/libgstdccp_la-gstdccpplugin.Tpo -c ../../../gst/dccp/gstdccpplugin.c  -DDLL_EXPORT -DPIC -o .libs/libgstdccp_la-gstdccpplugin.o
In file included from ../../../gst/dccp/gstdccpclientsrc.h:29:0,
                 from ../../../gst/dccp/gstdccpplugin.c:24:
../../../gst/dccp/gstdccp_common.h:32:0: warning: "WINVER" redefined
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:240:0: note: this is the location of the previous definition
In file included from ../../../gst/dccp/gstdccpplugin.c:24:0:
../../../gst/dccp/gstdccpclientsrc.h:58:3: error: expected specifier-qualifier-list before 'uint8_t'
In file included from ../../../gst/dccp/gstdccpplugin.c:25:0:
../../../gst/dccp/gstdccpserversink.h:74:3: error: expected specifier-qualifier-list before 'uint8_t'
In file included from ../../../gst/dccp/gstdccpplugin.c:26:0:
../../../gst/dccp/gstdccpclientsink.h:67:3: error: expected specifier-qualifier-list before 'uint8_t'
In file included from ../../../gst/dccp/gstdccpplugin.c:27:0:
../../../gst/dccp/gstdccpserversrc.h:58:3: error: expected specifier-qualifier-list before 'uint8_t'
make[3]: *** [libgstdccp_la-gstdccpplugin.lo] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/gst-plugins-bad-0.10.22/build_win32/gst/dccp'
make[2]: Leaving directory `/builddir/build/BUILD/gst-plugins-bad-0.10.22/build_win32/gst'
make[2]: *** [dccp] Error 2
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/gst-plugins-bad-0.10.22/build_win32'
make: Leaving directory `/builddir/build/BUILD/gst-plugins-bad-0.10.22/build_win32'
---------------------------------------
Comment 1 Levente Farkas 2011-09-05 15:09:46 UTC
may be the same guard can be used as in gstrtspconnection.c:

#ifndef WINVER
#define WINVER 0x0501
#endif
Comment 2 Sebastian Dröge (slomo) 2011-09-07 10:48:35 UTC
Could you provide a patch in git format-patch style?
Comment 3 Levente Farkas 2011-09-07 21:36:40 UTC
fixed in the current git.