Basically using rubenvb's mingw toolchain targetting 32-bit Windows from
mingw-w64, I can't seem to get the static librtmp to work with MPlayer
or find PolarSSL, I am unsure which. It'll use the shared dll but I need
static. I have no problems compiling rtmpdump.exe (& other associated
files) and statically linking it with librtmp or libpolarssl (1.1.1).
Even if I force adding "-lpolarssl" in MPlayer's configure script that
doesn't work, but it should know from librtmp.pc already. I have tried
different versions of the toolchain. I'm also aware that rtmpdump tries
to reference "havege_rand" instead of "havege_random" and already fixed
that. I also tried setting CPATH and LIBRARY_PATH in librtmp.
I have successfully built statically with the mingw.org toolchain, but I
would like to switch away from that because I don't think it is as
"mature". For one they don't feel largefile support should be enabled by
default, definitions they feel should be left out that cause problems compiling,
etc.
I've compiled about 30 other libs haven't identified any issues with
them in MPlayer in this toolchain.
The "bad reloc address" does not appear in 4.6.3.
#include<librtmp/rtmp.h>
int main(void) { RTMP_Socket(NULL); return 0; }
gcc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
/tmp/mplayer-configure-3859-9572/tmp.c -Ilibdvdread4 -I. -Iffmpeg
-fno-common -static -lm -lwinmm -ffast-math -lws2_32 -lz -ladvapi32
-lole32 -lopengl32 -lgdi32 -lwinmm -lgdi32 -o
/tmp/mplayer-configure-3859-9572/tmp.exe -lrtmp
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x22b):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x243):
undefined reference to `mpi_lset'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x24f):
undefined reference to `mpi_cmp_mpi'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x263):
undefined reference to `mpi_copy'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x277):
undefined reference to `mpi_sub_int'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x283):
undefined reference to `mpi_cmp_mpi'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2a7):
undefined reference to `mpi_exp_mod'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2b7):
undefined reference to `mpi_cmp_int'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2c8):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x39a):
undefined reference to `mpi_copy'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x3a9):
undefined reference to `mpi_copy'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x3c1):
undefined reference to `havege_random'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x3e5):
undefined reference to `dhm_make_public'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x3fc):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x413):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x426):
undefined reference to `mpi_copy'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x439):
undefined reference to `mpi_copy'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x44f):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x467):
undefined reference to `mpi_read_string'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x487):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4a7):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4bd):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4de):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x544):
undefined reference to `sha2_hmac_starts'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x554):
undefined reference to `sha2_hmac_update'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x567):
undefined reference to `sha2_hmac_finish'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x671):
undefined reference to `sha2_hmac_starts'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x689):
undefined reference to `sha2_hmac_update'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x6a0):
undefined reference to `sha2_hmac_finish'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x6e3):
undefined reference to `arc4_setup'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x703):
undefined reference to `sha2_hmac_starts'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x71f):
undefined reference to `sha2_hmac_update'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x72f):
undefined reference to `sha2_hmac_finish'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x771):
undefined reference to `arc4_setup'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xaee):
undefined reference to `inet_addr@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xb02):
undefined reference to `htons@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xb50):
undefined reference to `inet_addr@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xb5f):
undefined reference to `gethostbyname@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xda1):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xdbe):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xdd8):
undefined reference to `mpi_read_string'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xde7):
undefined reference to `dhm_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xdf1):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xe06):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xe1c):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xe32):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xe63):
undefined reference to `mpi_lset'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xe91):
undefined reference to `mpi_size'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xece):
undefined reference to `mpi_write_binary'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xf0f):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xf23):
undefined reference to `mpi_read_binary'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xf41):
undefined reference to `mpi_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xf59):
undefined reference to `mpi_read_string'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xf79):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xf89):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xfb3):
undefined reference to `mpi_copy'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xfca):
undefined reference to `dhm_calc_secret'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x112c):
undefined reference to `havege_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2371):
undefined reference to `ssl_read'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2381):
undefined reference to `WSAGetLastError@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x241c):
undefined reference to `recv@16'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x25d2):
undefined reference to `send@16'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x26d2):
undefined reference to `ssl_close_notify'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x26e0):
undefined reference to `ssl_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2707):
undefined reference to `closesocket@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2925):
undefined reference to `dhm_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x292f):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2944):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x295a):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2970):
undefined reference to `mpi_free'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2a72):
undefined reference to `arc4_crypt'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x2ad4):
undefined reference to `WSAGetLastError@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4218):
undefined reference to `arc4_crypt'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x43b1):
undefined reference to `timeGetTime@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x43b9):
undefined reference to `htonl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4573):
undefined reference to `ntohl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x493d):
undefined reference to `timeGetTime@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4945):
undefined reference to `htonl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4d2a):
undefined reference to `arc4_crypt'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x4d57):
undefined reference to `arc4_crypt'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x533f):
undefined reference to `timeGetTime@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x5347):
undefined reference to `htonl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x5393):
undefined reference to `timeGetTime@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x539b):
undefined reference to `htonl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x5639):
undefined reference to `ntohl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x59f9):
undefined reference to `arc4_crypt'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x5a22):
undefined reference to `arc4_crypt'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x87d6):
undefined reference to `ssl_init'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x87ec):
undefined reference to `ssl_set_endpoint'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8802):
undefined reference to `ssl_set_authmode'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8813):
undefined reference to `havege_random'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8821):
undefined reference to `ssl_set_rng'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8829):
undefined reference to `ssl_default_ciphersuites'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8837):
undefined reference to `ssl_set_ciphersuites'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8863):
undefined reference to `ssl_set_session'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8875):
undefined reference to `net_send'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8881):
undefined reference to `net_recv'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x888f):
undefined reference to `ssl_set_bio'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x889d):
undefined reference to `ssl_handshake'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8916):
undefined reference to `socket@12'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8940):
undefined reference to `connect@12'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x89ad):
undefined reference to `htonl@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8a8c):
undefined reference to `setsockopt@20'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8ac1):
undefined reference to `setsockopt@20'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8afd):
undefined reference to `WSAGetLastError@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8b69):
undefined reference to `WSAGetLastError@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x8e08):
undefined reference to `WSASetLastError@4'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0xff9):
undefined reference to `timeGetTime@0'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):rtmp.c:(.text+0x25b7):
undefined reference to `ssl_write'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/bin/ld.exe:
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/lib/../lib\librtmp.a(rtmp.o):
bad reloc address 0x54c in section `.rdata'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.6.4/../../../../i686-w64-mingw32/bin/ld.exe:
final link failed: Invalid operation
collect2: ld returned 1 exit status
Result is: no
_______________________________________________
MPlayer-users mailing list
MPlaye...@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
As you can see from the command-line it doesn't.
pkg-config files rarely contain correct information except for the
most obvious cases.
In addition to polarssl it at the very least misses winsock2 (-lws2_32).
If I edit the configure script librtmp detection to: -lrtmp -lpolarssl
-lws2_32 -lwinmm -lz it works. The librtmp.pc has all this information
that the mingw.org build uses with no issue, either the script is
ignoring it or isn't where it should be.
prefix=/mingw/i686-w64-mingw32
exec_prefix=${prefix}
libdir=/mingw/i686-w64-mingw32/lib
incdir=/mingw/i686-w64-mingw32/include
Name: librtmp
Description: RTMP implementation
Version: v2.4
Requires:
URL: http://rtmpdump.mplayerhq.hu
Libs: -L${libdir} -lrtmp -lpolarssl -lz
Libs.private: -lws2_32 -lwinmm -lgdi32
Cflags: -I${incdir}
I think you weren't quoting the configure log completely.
There should be two tests, one will only use -lrtmp and the
other the pkg-config stuff.
If the second one is missing, pkg-config isn't working right.