[Bug 675415] build: fix librfb linking on win32

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon May 7 16:07:21 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=675415
  GStreamer | gst-plugins-bad | unspecified

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.10.24

--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-05-07 23:07:18 UTC ---
commit 9503daa56ab5a33bad27bcb0e5f3bc492e3963cb
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Mon May 7 23:57:08 2012 +0100

    rfbsrc: call WSAStartup/Cleanup on win32

    If we link against libwinsock2, we should probably call
    Startup/Cleanup as well.

    https://bugzilla.gnome.org/show_bug.cgi?id=675415

commit 2f20ec731202b72a03c5013239ab122fa2f22337
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date:   Thu May 3 23:42:13 2012 +0200

    rfbsrc: fix librfb linking on win32

    libtool: link:  i686-w64-mingw32-gcc -shared .libs/libgstrfbsrc.dll.def
    .libs/libgstrfbsrc_la-gstrfbsrc.o  -Wl,--whole-archive ./.libs/librfb.a
    -Wl,--no-whole-archive  -L/usr/i686-w64-mingw32/sys-root/mingw/lib
    -lgstbase-0.10 -lgstreamer-0.10 -lxml2 -lgobject-2.0 -lgthread-2.0
    -lgmodule-2.0 -lglib-2.0 -lintl  -mms-bitfields -mms-bitfields -O2   -o
    .libs/libgstrfbsrc.dll -Wl,--enable-auto-image-base -Xlinker
    --out-implib -Xlinker .libs/libgstrfbsrc.dll.a
    Creating library file: .libs/libgstrfbsrc.dll.a
    ./.libs/librfb.a(librfb_la-rfbdecoder.o): In function
    `rfb_decoder_read':
   
/home/elmarco/pkg/rhel/mingw-gstreamer-plugins-bad-free/gst-plugins-bad-0.10.23/build_win32/gst/librfb/../../../gst/librfb/rfbdecoder.c:164:
    undefined reference to `_imp__recv at 16'
    ./.libs/librfb.a(librfb_la-rfbdecoder.o): In function
    `rfb_decoder_connect_tcp':
   
/home/elmarco/pkg/rhel/mingw-gstreamer-plugins-bad-free/gst-plugins-bad-0.10.23/build_win32/gst/librfb/../../../gst/librfb/rfbdecoder.c:112:
    undefined reference to `_imp__socket at 12'
   
/home/elmarco/pkg/rhel/mingw-gstreamer-plugins-bad-free/gst-plugins-bad-0.10.23/build_win32/gst/librfb/../../../gst/librfb/rfbdecoder.c:119:
    undefined reference to `_imp__htons at 4'
   
/home/elmarco/pkg/rhel/mingw-gstreamer-plugins-bad-free/gst-plugins-bad-0.10.23/build_win32/gst/librfb/../../../gst/librfb/rfbdecoder.c:123:
    undefined reference to `_imp__inet_addr at 4'
   
/home/elmarco/pkg/rhel/mingw-gstreamer-plugins-bad-free/gst-plugins-bad-0.10.23/build_win32/gst/librfb/../../../gst/librfb/rfbdecoder.c:125:
    undefined reference to `_imp__connect at 12'

    It needs -lws2_32 which is already in $(WINSOCK2_LIBS)

    https://bugzilla.gnome.org/show_bug.cgi?id=675415

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list