[rtmpdump] rtmpdump 2.1c does not compile on OS X

John Miller trbasat at googlemail.com
Mon Feb 8 00:48:44 CET 2010


Hi,

I tried to compile rtmpdump 2.1c on Mac OS X 10.5.8 but I received this:

gcc -Wall -arch ppc -arch i386  -DRTMPDUMP_VERSION=\"v2.1c\" -O2   -c -o
log.o log.c
gcc -Wall -arch ppc -arch i386  -DRTMPDUMP_VERSION=\"v2.1c\" -O2   -c -o
rtmp.o rtmp.c
In file included from rtmp.c:2048:
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:68: warning: implicit declaration of function 'EVP_sha256'
handshake.h:68: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer
from integer without a cast
handshake.h:79: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer
from integer without a cast
handshake.h:60: warning: unused variable 'digest'
In file included from rtmp.c:2048:
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:68: warning: implicit declaration of function 'EVP_sha256'
handshake.h: In function 'HMACsha256':
handshake.h:209: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer
from integer without a cast
handshake.h:68: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer
from integer without a cast
handshake.h:79: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer
from integer without a cast
handshake.h: In function 'CalculateDigest':
handshake.h:221: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this
function)
handshake.h:60: warning: unused variable 'digest'
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:353: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this
function)
handshake.h:457: warning: unused variable 'digestResp'
handshake.h: In function 'HMACsha256':
handshake.h:209: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer
from integer without a cast
handshake.h: In function 'CalculateDigest':
handshake.h:221: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this
function)
handshake.h:500: warning: unused variable 'digest'
handshake.h:499: warning: unused variable 'signature'
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:353: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this
function)
handshake.h: In function 'SHandShake':
handshake.h:683: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this
function)
handshake.h:457: warning: unused variable 'digestResp'
handshake.h:776: warning: unused variable 'digestResp'
handshake.h:500: warning: unused variable 'digest'
handshake.h:499: warning: unused variable 'signature'
handshake.h:819: warning: unused variable 'digest'
handshake.h:818: warning: unused variable 'signature'
handshake.h: In function 'SHandShake':
handshake.h:683: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this
function)
handshake.h:776: warning: unused variable 'digestResp'
handshake.h:819: warning: unused variable 'digest'
handshake.h:818: warning: unused variable 'signature'
lipo: can't figure out the architecture type of:
/var/folders/AU/AUutmWu5EmWA2r8gzNeu7U+++TI/-Tmp-//ccmHwuMC.out
make[1]: *** [rtmp.o] Error 1
make: *** [osx] Error 2

I just searched on Google and found that I'm not the only one with this
problem. However I found no solution. Has anyone an idea what the problem
is?

Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20100208/42b3423d/attachment.htm>


More information about the rtmpdump mailing list