· 8 years ago · Jan 15, 2018, 05:32 AM
1
2root@raspberrypi:~/src/rtmpdump# make SYS=posix
3make[1]: Entering directory '/root/src/rtmpdump/librtmp'
4gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
5In file included from handshake.h:86:0,
6 from rtmp.c:152:
7dh.h: In function 'DHInit':
8dh.h:256:12: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}'
9 MP_new(dh->g);
10 ^
11dh.h:171:19: note: in definition of macro 'MP_new'
12 #define MP_new(m) m = BN_new()
13 ^
14In file included from rtmp.c:152:0:
15handshake.h: In function 'InitRC4Encryption':
16handshake.h:120:12: error: storage size of 'ctx' isn't known
17 HMAC_CTX ctx;
18 ^~~
19In file included from rtmp.c:152:0:
20handshake.h:72:35: warning: implicit declaration of function 'HMAC_CTX_init' [-Wimplicit-function-declaration]
21 #define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0)
22 ^
23handshake.h:125:3: note: in expansion of macro 'HMAC_setup'
24 HMAC_setup(ctx, secretKey, 128);
25 ^~~~~~~~~~
26handshake.h:74:67: warning: implicit declaration of function 'HMAC_CTX_cleanup' [-Wimplicit-function-declaration]
27 #define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)
28 ^
29handshake.h:127:3: note: in expansion of macro 'HMAC_finish'
30 HMAC_finish(ctx, digest, digestLen);
31 ^~~~~~~~~~~
32In file included from rtmp.c:152:0:
33handshake.h:120:12: warning: unused variable 'ctx' [-Wunused-variable]
34 HMAC_CTX ctx;
35 ^~~
36handshake.h: In function 'HMACsha256':
37handshake.h:269:12: error: storage size of 'ctx' isn't known
38 HMAC_CTX ctx;
39 ^~~
40handshake.h:269:12: warning: unused variable 'ctx' [-Wunused-variable]
41rtmp.c: In function 'RTMP_ReadPacket':
42rtmp.c:3555:7: warning: variable 'didAlloc' set but not used [-Wunused-but-set-variable]
43 int didAlloc = FALSE;
44 ^~~~~~~~
45At top level:
46rtmp.c:2907:19: warning: 'av_NetConnection_Connect_Rejected' defined but not used [-Wunused-const-variable=]
47 static const AVal av_NetConnection_Connect_Rejected =
48 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49rtmp.c:1559:35: warning: 'av_record' defined but not used [-Wunused-const-variable=]
50 #define SAVC(x) static const AVal av_##x = AVC(#x)
51 ^
52rtmp.c:1905:1: note: in expansion of macro 'SAVC'
53 SAVC(record);
54 ^~~~
55<builtin>: recipe for target 'rtmp.o' failed
56make[1]: *** [rtmp.o] Error 1
57make[1]: Leaving directory '/root/src/rtmpdump/librtmp'
58Makefile:76: recipe for target 'librtmp/librtmp.a' failed
59make: *** [librtmp/librtmp.a] Error 2