[gstreamer-bugs] [Bug 541358] New: cross mingw32 gcc: getaddrinfo is not in ws2_32.dll before Windows XP
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Jul 3 01:45:54 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=541358
GStreamer | gst-plugins-base | Ver: HEAD CVS
Summary: cross mingw32 gcc: getaddrinfo is not in ws2_32.dll
before Windows XP
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Windows
Status: UNCONFIRMED
Severity: minor
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: damien.lespiau at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
libgstsdp uses getaddrinfo and freeaddrinfo functions. These functions are not
in the winsocks DLL before windows XP. mingw32 knows this and its ws2tcpip.h
does not declare them unless the WINVER macro is set to Windows XP or above.
Thus, when trying to cross-compile with mingw32 from a linux box, the build
stop with:
../../../../gst-plugins-base-0.10.20/gst-libs/gst/sdp/gstsdpmessage.c: In
function `is_multicast_address':
../../../../gst-plugins-base-0.10.20/gst-libs/gst/sdp/gstsdpmessage.c:334:
warning: implicit declaration of function `getaddrinfo'
../../../../gst-plugins-base-0.10.20/gst-libs/gst/sdp/gstsdpmessage.c:350:
warning: implicit declaration of function `freeaddrinfo'
and at link time:
/home/damien/src/build-gst-plugins-base-0.10.20/gst-libs/gst/sdp/../../../../gst-plugins-base-0.10.20/gst-libs/gst/sdp/gstsdpmessage.c:334:
undefined reference to `_getaddrinfo'
/home/damien/src/build-gst-plugins-base-0.10.20/gst-libs/gst/sdp/../../../../gst-plugins-base-0.10.20/gst-libs/gst/sdp/gstsdpmessage.c:350:
undefined reference to `_freeaddrinfo'
The right thing to do would be to provide a replacement for those functions to
support systems like windows 2000 (and maybe some Unixes) but for now I have a
patch to fix the build issue knowing that the DLL won't work with windows 2000
or earlier. This patch should not break anything and makes -base compile with
mingw32 so it still can be useful while waiting for someone that needs to have
gstreamer SDP working for windows 2000.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=541358.
More information about the Gstreamer-bugs
mailing list