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 603527 - programs linked against glib-2.22 won't run on MS Windows 2000
programs linked against glib-2.22 won't run on MS Windows 2000
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.22.x
Other Windows
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 604458 607726 609329 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-12-01 20:27 UTC by Allin Cottrell
Modified: 2010-02-13 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allin Cottrell 2009-12-01 20:27:22 UTC
In GLib 2.22.X, gwin32resolver.c, the function
free_lookup_by_name calls freeaddrinfo().  The MS header
ws2tcpip.h is included indirectly, but this is not going to work
on Windows 2000 unless wspiapi.h is also included, both as
an empirical matter and according to MSDN
(google: msdn freeaddrinfo).  Apps linked to GLib 2.22
fail at startup with the error message, "The procedure entry 
point freeaddrinfo could not be found in ws2_32.dll"

The required header, wspiapi.h, could be included conditionally, 
but it is not part of mingw.
Comment 1 Tor Lillqvist 2009-12-14 00:06:15 UTC
*** Bug 604458 has been marked as a duplicate of this bug. ***
Comment 2 Tor Lillqvist 2009-12-14 00:14:17 UTC
The mingw-w64 "fork" of mingw (which despite its name does provide toolchains producing both 32- and 64-bit code) does have a wspiapi.h. If GLib is compiled with mingw-w64, then wspiapi.h could be included. I think I will do that. I won't go into doubts about the provenance of mingw-w64's wspiapi.h here.
Comment 3 Tor Lillqvist 2009-12-14 01:32:11 UTC
OK, fixed now as well as it can be; i.e. if there is <wspiapi.h> when building GLib, it is used.
Comment 4 Morten Welinder 2010-01-22 15:46:21 UTC
*** Bug 607726 has been marked as a duplicate of this bug. ***
Comment 5 Allin Cottrell 2010-01-22 15:54:04 UTC
It might be helpful if the GTK for Windows page at
www.gtk.org either (a) offered a build of current
GLib that uses <wspiapi.h>, or (b) offered an alternate
link to glib-2.21.N marked "Use this if you want to
support Windows 2000".
Comment 6 Ignacio Casal Quinteiro (nacho) 2010-02-09 13:07:18 UTC
*** Bug 609329 has been marked as a duplicate of this bug. ***