[rtmpdump] compile rtmpdump 2.1c ubuntu : error

Carmelo Ingrao carmelo42 at gmail.com
Wed Feb 17 15:22:16 CET 2010


Hello,

I'm trying to compile rtmpdump 2.1c from sources but I have some errors ...

I'm on ubuntu 9.10

Can someone help me please ?

Thanks !

Carmelo

vadmin at ubuntu:~$ cd rtmpdump/
vadmin at ubuntu:~/rtmpdump$ ls
amf.c    ChangeLog   dh.h         log.c  Makefile    README    rtmpdump.c  rtmpsuck.c  thread.h
amf.h    COPYING     handshake.h  log.h  parseurl.c  rtmp.c    rtmp.h      streams.c
bytes.h  dhgroups.h  hashswf.c    log.o  parseurl.h  rtmpdump  rtmpsrv.c   thread.c
vadmin at ubuntu:~/rtmpdump$ make linux
make[1]: Entering directory `/home/vadmin/rtmpdump'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.1c\" -O2   -c -o rtmp.o rtmp.c
rtmp.c:33:25: error: openssl/rc4.h: No such file or directory
rtmp.c: In function ‘ReadN’:
rtmp.c:785: warning: implicit declaration of function ‘RC4’
In file included from rtmp.c:2048:
handshake.h:24:25: error: openssl/sha.h: No such file or directory
handshake.h:25:26: error: openssl/hmac.h: No such file or directory
In file included from handshake.h:28,
                 from rtmp.c:2048:
dh.h:28:24: error: openssl/bn.h: No such file or directory
dh.h:29:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:28,
                 from rtmp.c:2048:
dh.h: At top level:
dh.h:61: error: expected ‘)’ before ‘*’ token
dh.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dh.h:150: error: expected ‘)’ before ‘*’ token
dh.h:181: error: expected ‘)’ before ‘*’ token
dh.h:214: error: expected ‘)’ before ‘*’ token
In file included from rtmp.c:2048:
handshake.h:58: error: expected declaration specifiers or ‘...’ before ‘RC4_KEY’
handshake.h:58: error: expected declaration specifiers or ‘...’ before ‘RC4_KEY’
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:60: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:60: error: (Each undeclared identifier is reported only once
handshake.h:60: error: for each function it appears in.)
handshake.h:63: error: ‘rc4keyIn’ undeclared (first use in this function)
handshake.h:63: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:64: error: ‘rc4keyOut’ undeclared (first use in this function)
handshake.h:66: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:66: error: expected ‘;’ before ‘ctx’
handshake.h:67: warning: implicit declaration of function ‘HMAC_CTX_init’
handshake.h:67: error: ‘ctx’ undeclared (first use in this function)
handshake.h:68: warning: implicit declaration of function ‘HMAC_Init_ex’
handshake.h:68: warning: implicit declaration of function ‘EVP_sha256’
handshake.h:69: warning: implicit declaration of function ‘HMAC_Update’
handshake.h:70: warning: implicit declaration of function ‘HMAC_Final’
handshake.h:71: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
handshake.h:76: warning: implicit declaration of function ‘RC4_set_key’
handshake.h:60: warning: unused variable ‘digest’
handshake.h: In function ‘HMACsha256’:
handshake.h:207: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:207: error: expected ‘;’ before ‘ctx’
handshake.h:208: error: ‘ctx’ undeclared (first use in this function)
handshake.h: In function ‘CalculateDigest’:
handshake.h:221: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h: In function ‘VerifyDigest’:
handshake.h:236: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:236: warning: unused variable ‘calcDigest’
handshake.h: In function ‘HandShake’:
handshake.h:263: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:263: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:264: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:318: warning: implicit declaration of function ‘DHInit’
handshake.h:318: warning: assignment makes pointer from integer without a cast
handshake.h:329: warning: implicit declaration of function ‘DHGenerateKey’
handshake.h:337: warning: implicit declaration of function ‘DHGetPublicKey’
handshake.h:353: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
In file included from rtmp.c:2048:
handshake.h:437: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
handshake.h:452: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:457: warning: unused variable ‘digestResp’
handshake.h:500: warning: unused variable ‘digest’
handshake.h:499: warning: unused variable ‘signature’
handshake.h: In function ‘SHandShake’:
handshake.h:579: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:579: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:580: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:648: warning: assignment makes pointer from integer without a cast
handshake.h:683: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:771: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:776: warning: unused variable ‘digestResp’
handshake.h:819: warning: unused variable ‘digest’
handshake.h:818


And, samed problem with sudo :

vadmin at ubuntu:~/rtmpdump$ ls
amf.c    ChangeLog   dh.h         log.c  Makefile    README    rtmpdump.c  rtmpsuck.c  thread.h
amf.h    COPYING     handshake.h  log.h  parseurl.c  rtmp.c    rtmp.h      streams.c
bytes.h  dhgroups.h  hashswf.c    log.o  parseurl.h  rtmpdump  rtmpsrv.c   thread.c
vadmin at ubuntu:~/rtmpdump$ sudo make linux
[sudo] password for vadmin: 
make[1]: Entering directory `/home/vadmin/rtmpdump'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.1c\" -O2   -c -o rtmp.o rtmp.c
rtmp.c:33:25: error: openssl/rc4.h: No such file or directory
rtmp.c: In function ‘ReadN’:
rtmp.c:785: warning: implicit declaration of function ‘RC4’
In file included from rtmp.c:2048:
handshake.h:24:25: error: openssl/sha.h: No such file or directory
handshake.h:25:26: error: openssl/hmac.h: No such file or directory
In file included from handshake.h:28,
                 from rtmp.c:2048:
dh.h:28:24: error: openssl/bn.h: No such file or directory
dh.h:29:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:28,
                 from rtmp.c:2048:
dh.h: At top level:
dh.h:61: error: expected ‘)’ before ‘*’ token
dh.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dh.h:150: error: expected ‘)’ before ‘*’ token
dh.h:181: error: expected ‘)’ before ‘*’ token
dh.h:214: error: expected ‘)’ before ‘*’ token
In file included from rtmp.c:2048:
handshake.h:58: error: expected declaration specifiers or ‘...’ before ‘RC4_KEY’
handshake.h:58: error: expected declaration specifiers or ‘...’ before ‘RC4_KEY’
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:60: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:60: error: (Each undeclared identifier is reported only once
handshake.h:60: error: for each function it appears in.)
handshake.h:63: error: ‘rc4keyIn’ undeclared (first use in this function)
handshake.h:63: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:64: error: ‘rc4keyOut’ undeclared (first use in this function)
handshake.h:66: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:66: error: expected ‘;’ before ‘ctx’
handshake.h:67: warning: implicit declaration of function ‘HMAC_CTX_init’
handshake.h:67: error: ‘ctx’ undeclared (first use in this function)
handshake.h:68: warning: implicit declaration of function ‘HMAC_Init_ex’
handshake.h:68: warning: implicit declaration of function ‘EVP_sha256’
handshake.h:69: warning: implicit declaration of function ‘HMAC_Update’
handshake.h:70: warning: implicit declaration of function ‘HMAC_Final’
handshake.h:71: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
handshake.h:76: warning: implicit declaration of function ‘RC4_set_key’
handshake.h:60: warning: unused variable ‘digest’
handshake.h: In function ‘HMACsha256’:
handshake.h:207: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:207: error: expected ‘;’ before ‘ctx’
handshake.h:208: error: ‘ctx’ undeclared (first use in this function)
handshake.h: In function ‘CalculateDigest’:
handshake.h:221: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h: In function ‘VerifyDigest’:
handshake.h:236: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:236: warning: unused variable ‘calcDigest’
handshake.h: In function ‘HandShake’:
handshake.h:263: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:263: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:264: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:318: warning: implicit declaration of function ‘DHInit’
handshake.h:318: warning: assignment makes pointer from integer without a cast
handshake.h:329: warning: implicit declaration of function ‘DHGenerateKey’
handshake.h:337: warning: implicit declaration of function ‘DHGetPublicKey’
handshake.h:353: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
In file included from rtmp.c:2048:
handshake.h:437: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
handshake.h:452: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:457: warning: unused variable ‘digestResp’
handshake.h:500: warning: unused variable ‘digest’
handshake.h:499: warning: unused variable ‘signature’
handshake.h: In function ‘SHandShake’:
handshake.h:579: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:579: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:580: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:648: warning: assignment makes pointer from integer without a cast
handshake.h:683: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:771: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:776: warning: unused variable ‘digestResp’
handshake.h:819: warning: unused variable ‘digest’
handshake.h:818


More information about the rtmpdump mailing list