GNOME Bugzilla – Bug 658251
dccp: cross compile warning - "WINVER" redefined
Last modified: 2011-10-29 15:15:27 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' ---------------------------------------
may be the same guard can be used as in gstrtspconnection.c: #ifndef WINVER #define WINVER 0x0501 #endif
Could you provide a patch in git format-patch style?
fixed in the current git.