[rtmpdump] Link OpenSSL statically for Win32

Howard Chu hyc at highlandsun.com
Sun Apr 18 21:33:03 CEST 2010


David Woodhouse wrote:
> On Sun, 2010-04-18 at 11:44 -0700, Howard Chu wrote:
>> It might be, but the OpenSSL license is incompatible with the GPL, so it would
>> be illegal for us to distribute such a binary. What end-users build and run is
>> their own business of course.
>
> Ah, crap. Of course.
>
> Is the GNUTLS build expected to work on Windows? I get this...

I hadn't tried it. But there's no particular reason we're using winsock.h 
instead of winsock2.h. Fixing that seems to clear this up.
>
> [dwmw2 at macbook rtmpdump]$ make CC=/usr/bin/i686-pc-mingw32-gcc mingw AR=/usr/bin/i686-pc-mingw32-ar mingw CRYPTO=GNUTLS
> make[1]: Entering directory `/home/dwmw2/working/rtmpdump'
> /usr/bin/i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\"  -O2   -c -o rtmpdump.o rtmpdump.c
> make[2]: Entering directory `/home/dwmw2/working/rtmpdump/librtmp'
> /usr/bin/i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_GNUTLS -O2   -c -o rtmp.o rtmp.c
> In file included from /usr/i686-pc-mingw32/sys-root/mingw/include/gcrypt.h:35,
>                   from handshake.h:27,
>                   from rtmp.c:123:
> /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:16:2: error: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
> In file included
> from /usr/i686-pc-mingw32/sys-root/mingw/include/gcrypt.h:35,
>                   from handshake.h:27,
>                   from rtmp.c:123:
> /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:124: error:
> redefinition of 'struct ip_mreq'
> /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:272: error: two
> or more data types in declaration specifiers
> make[2]: *** [rtmp.o] Error 1
> make[2]: Leaving directory `/home/dwmw2/working/rtmpdump/librtmp'
>


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/


More information about the rtmpdump mailing list