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 756866 - windows: Drop Windows XP/Server 2003 support and fix GLib compilation
windows: Drop Windows XP/Server 2003 support and fix GLib compilation
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: cerbero
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-20 13:40 UTC by Sebastian Dröge (slomo)
Modified: 2018-11-03 10:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
windows: Drop Windows XP/Server 2003 support and fix GLib compilation (5.68 KB, patch)
2015-10-20 13:40 UTC, Sebastian Dröge (slomo)
none Details | Review
windows: Drop Windows XP/Server 2003 support and fix GLib compilation (7.79 KB, patch)
2016-07-05 20:03 UTC, Nicolas Dufresne (ndufresne)
none Details | Review
windows: Drop Windows XP/Server 2003 support and fix GLib compilation (4.73 KB, patch)
2016-07-05 20:13 UTC, Nicolas Dufresne (ndufresne)
none Details | Review

Description Sebastian Dröge (slomo) 2015-10-20 13:40:41 UTC
See commit message. Should clean up the GLib patch a bit and get it upstream,
but should we do this or not?
Comment 1 Sebastian Dröge (slomo) 2015-10-20 13:40:45 UTC
Created attachment 313744 [details] [review]
windows: Drop Windows XP/Server 2003 support and fix GLib compilation
Comment 2 Sebastian Dröge (slomo) 2015-10-20 13:58:04 UTC
We're still as _MSC_VER=1200 (VS6 from 1998) because that's what every Windows version ships with and other software is compiling with. GLib has conditional code for 1400 (VS2005), 1500 (VS2008), 1900 (VS2015).
Comment 3 Tim-Philipp Müller 2015-10-20 16:16:07 UTC
I think it's a bit silly to keep supporting a Windows version even Microsoft doesn't support any longer.

In my experience Windows 7 is pretty much the baseline these days.

So +1 to dropping XP support.
Comment 4 Nirbheek Chauhan 2016-05-24 09:05:13 UTC
We should get this in. MinGW doesn't even define POLL* symbols for poll() in winsock2.h without _WIN32_WINNT >= 0x0600. GLib falls back to manually defining them in the configure file, but that's terrible and won't work with libraries that don't use g_poll().
Comment 5 Nicolas Dufresne (ndufresne) 2016-07-05 18:58:14 UTC
Review of attachment 313744 [details] [review]:

::: recipes/glib/0030-Fix-compilation-with-WINVER-0x600-and-_WINNT_WIN32-0.patch
@@ +47,3 @@
++old_LIBS=$LIBS
++LIBS="$LIBS $G_LIBS_EXTRA"
++AC_CHECK_FUNCS(getprotobyname_r endservent if_nametoindex if_indextoname sendmmsg)

This change does not seem needed, at least it does not fail here, any reason ?

@@ +70,3 @@
++           const gpointer addr,
++           gchar *addr_str,
++           socklen_t size);

Not totally correct, at least no in current code tree. How Chun-wei patch works, is that on windows you should wall ws2funcs.pInetPton, ws2funcs.pInetNtop and ws2funcs.pIfNameToIndex. I would add defines in the win32networking.h adapter.
Comment 6 Nicolas Dufresne (ndufresne) 2016-07-05 19:12:11 UTC
(In reply to Nicolas Dufresne (stormer) from comment #5)
> Review of attachment 313744 [details] [review] [review]:
> 
> :::
> recipes/glib/0030-Fix-compilation-with-WINVER-0x600-and-_WINNT_WIN32-0.patch
> @@ +47,3 @@
> ++old_LIBS=$LIBS
> ++LIBS="$LIBS $G_LIBS_EXTRA"
> ++AC_CHECK_FUNCS(getprotobyname_r endservent if_nametoindex if_indextoname
> sendmmsg)

Nevermind, I got this one.
Comment 7 Nicolas Dufresne (ndufresne) 2016-07-05 20:03:59 UTC
Created attachment 330920 [details] [review]
windows: Drop Windows XP/Server 2003 support and fix GLib compilation

This is a rebased version. Note that instead of linking iphlpapi a second time
(we do that dynamically already) I simply fix the name clash.
Comment 8 Nicolas Dufresne (ndufresne) 2016-07-05 20:13:30 UTC
Created attachment 330921 [details] [review]
windows: Drop Windows XP/Server 2003 support and fix GLib compilation

The patch inside was duplicated, fixed.
Comment 9 Nicolas Dufresne (ndufresne) 2016-07-05 20:50:01 UTC
Ok, now gst-ffmpeg fails to build:

In file included from ./libavutil/thread.h:132:0,
                 from libavfilter/pthread.c:29:
./compat/w32pthreads.h: In function 'pthread_mutex_init':
./compat/w32pthreads.h:117:5: error: implicit declaration of function 'InitializeCriticalSectionEx' [-Werror=implicit-function-declaration]


There is no trace of InitializeCriticalSectionEx in our bundled MingW, in fact synchapi.h is missing. It's not clear when it was introduced in MingW, but sounds like to go forward with this, we need some update to MingW no matter what.
Comment 10 Nicolas Dufresne (ndufresne) 2016-07-09 00:44:19 UTC
I think prior to this, we really need to update mingw.
Comment 11 GStreamer system administrator 2018-11-03 10:19:51 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/cerbero/issues/21.