Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: libgio-2.0-0.dll does not work on Windows 2000
https://bugzilla.redhat.com/show_bug.cgi?id=758911
Summary: libgio-2.0-0.dll does not work on Windows 2000 Product: Fedora Version: 16 Platform: i386 OS/Version: Windows Status: NEW Severity: unspecified Priority: unspecified Component: mingw32-glib2 AssignedTo: rjones@redhat.com ReportedBy: t.sailer@alumni.ethz.ch QAContact: extras-qa@fedoraproject.org CC: lfarkas@lfarkas.org, t.sailer@alumni.ethz.ch, rjones@redhat.com, kalevlember@gmail.com, erik-fedora@vanpienbroek.nl, fedora-mingw@lists.fedoraproject.org Classification: Fedora Story Points: --- Type: ---
Description of problem: libgio-2.0-0.dll is not usable on Windows 2000.
Version-Release number of selected component (if applicable): mingw32-glib2-2.30.1-1.fc16.noarch
How reproducible: always
Steps to Reproduce: 1.try to run a program that uses libgio-2.0-0.dll on Windows 2000
Actual results: a dialog box pops up stating that freeaddrinfo was not defined.
Expected results: program runs
Additional info: the reason for this is that freeaddrinfo is not present in the Windows 2000 version of ws2_32.dll. MS has a work around provided in wspiapi.h; wspiapi.h uses freeaddrinfo from ws2_32.dll if available, otherwise provides its own implementation. But mingw32 (unlike mingw w64) does not provide wspiapi.h. Therefore, gio...dll directly links to freeaddrinfo from ws2_32.dll, which does not work on Windows 2000.
I created a quick&dirty workaround by just including wspiapi from mingw w64: http://sailer.fedorapeople.org/mingw32-glib2-2.30.1-2.fc16.src.rpm
A better fix might be to add wspiapi from w64 to mingw32, and then recompile mingw32-glib2 (glib2 should autodetect the presence of wspiapi.h).