Hi guys,
Cannot compile rtmpdump with KSV path on my raspberry pi.
for make command it shows the following:
Code:
pi@raspserv:/usr/src/rtmpdump-ksv $ sudo make
make[1]: Entering directory '/usr/src/rtmpdump-ksv/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
In file included from handshake.h:86:0,
from rtmp.c:161:
dh.h: In function ‘DHInit’:
dh.h:256:12: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
MP_new(dh->g);
^
dh.h:171:19: note: in definition of macro ‘MP_new’
#define MP_new(m) m = BN_new()
^
In file included from rtmp.c:161:0:
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:120:12: error: storage size of ‘ctx’ isn’t known
HMAC_CTX ctx;
^~~
In file included from rtmp.c:161:0:
handshake.h:72:35: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration]
#define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0)
^
handshake.h:125:3: note: in expansion of macro ‘HMAC_setup’
HMAC_setup(ctx, secretKey, 128);
^~~~~~~~~~
handshake.h:74:67: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration]
#define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)
^
handshake.h:127:3: note: in expansion of macro ‘HMAC_finish’
HMAC_finish(ctx, digest, digestLen);
^~~~~~~~~~~
In file included from rtmp.c:161:0:
handshake.h:120:12: warning: unused variable ‘ctx’ [-Wunused-variable]
HMAC_CTX ctx;
^~~
handshake.h: In function ‘HMACsha256’:
handshake.h:269:12: error: storage size of ‘ctx’ isn’t known
HMAC_CTX ctx;
^~~
handshake.h:269:12: warning: unused variable ‘ctx’ [-Wunused-variable]
rtmp.c: In function ‘RTMP_ReadPacket’:
rtmp.c:4235:7: warning: variable ‘didAlloc’ set but not used [-Wunused-but-set-variable]
int didAlloc = FALSE;
^~~~~~~~
At top level:
rtmp.c:1680:35: warning: ‘av_getStreamLength’ defined but not used [-Wunused-const-variable=]
#define SAVC(x) static const AVal av_##x = AVC(#x)
^
rtmp.c:3037:1: note: in expansion of macro ‘SAVC’
SAVC(getStreamLength);
^~~~
rtmp.c:1680:35: warning: ‘av_onBWCheck’ defined but not used [-Wunused-const-variable=]
#define SAVC(x) static const AVal av_##x = AVC(#x)
^
rtmp.c:3022:1: note: in expansion of macro ‘SAVC’
SAVC(onBWCheck);
^~~~
rtmp.c:1680:35: warning: ‘av_record’ defined but not used [-Wunused-const-variable=]
#define SAVC(x) static const AVal av_##x = AVC(#x)
^
rtmp.c:2029:1: note: in expansion of macro ‘SAVC’
SAVC(record);
^~~~
<builtin>: recipe for target 'rtmp.o' failed
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory '/usr/src/rtmpdump-ksv/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2
I was using
https://github.com/BurntSushi/rtmpdump-ksv
but i tried another sources and problem is present there too.
Could someone help me?
Thanks