Hi,<br><br>I tried to compile rtmpdump 2.1c on Mac OS X 10.5.8 but I received this:<br><br>gcc -Wall -arch ppc -arch i386 -DRTMPDUMP_VERSION=\"v2.1c\" -O2 -c -o log.o log.c<br>gcc -Wall -arch ppc -arch i386 -DRTMPDUMP_VERSION=\"v2.1c\" -O2 -c -o rtmp.o rtmp.c<br>
In file included from rtmp.c:2048:<br>handshake.h: In function 'InitRC4Encryption':<br>handshake.h:60: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h:60: error: (Each undeclared identifier is reported only once<br>
handshake.h:60: error: for each function it appears in.)<br>handshake.h:68: warning: implicit declaration of function 'EVP_sha256'<br>handshake.h:68: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer from integer without a cast<br>
handshake.h:79: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer from integer without a cast<br>handshake.h:60: warning: unused variable 'digest'<br>In file included from rtmp.c:2048:<br>handshake.h: In function 'InitRC4Encryption':<br>
handshake.h:60: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h:60: error: (Each undeclared identifier is reported only once<br>handshake.h:60: error: for each function it appears in.)<br>
handshake.h:68: warning: implicit declaration of function 'EVP_sha256'<br>handshake.h: In function 'HMACsha256':<br>handshake.h:209: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer from integer without a cast<br>
handshake.h:68: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer from integer without a cast<br>handshake.h:79: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer from integer without a cast<br>
handshake.h: In function 'CalculateDigest':<br>handshake.h:221: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h:60: warning: unused variable 'digest'<br>handshake.h: In function 'VerifyDigest':<br>
handshake.h:236: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h:236: warning: unused variable 'calcDigest'<br>handshake.h: In function 'HandShake':<br>handshake.h:353: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>
handshake.h:457: warning: unused variable 'digestResp'<br>handshake.h: In function 'HMACsha256':<br>handshake.h:209: warning: passing argument 4 of 'HMAC_Init_ex' makes pointer from integer without a cast<br>
handshake.h: In function 'CalculateDigest':<br>handshake.h:221: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h:500: warning: unused variable 'digest'<br>handshake.h:499: warning: unused variable 'signature'<br>
handshake.h: In function 'VerifyDigest':<br>handshake.h:236: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h:236: warning: unused variable 'calcDigest'<br>handshake.h: In function 'HandShake':<br>
handshake.h:353: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>handshake.h: In function 'SHandShake':<br>handshake.h:683: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>
handshake.h:457: warning: unused variable 'digestResp'<br>handshake.h:776: warning: unused variable 'digestResp'<br>handshake.h:500: warning: unused variable 'digest'<br>handshake.h:499: warning: unused variable 'signature'<br>
handshake.h:819: warning: unused variable 'digest'<br>handshake.h:818: warning: unused variable 'signature'<br>handshake.h: In function 'SHandShake':<br>handshake.h:683: error: 'SHA256_DIGEST_LENGTH' undeclared (first use in this function)<br>
handshake.h:776: warning: unused variable 'digestResp'<br>handshake.h:819: warning: unused variable 'digest'<br>handshake.h:818: warning: unused variable 'signature'<br>lipo: can't figure out the architecture type of: /var/folders/AU/AUutmWu5EmWA2r8gzNeu7U+++TI/-Tmp-//ccmHwuMC.out<br>
make[1]: *** [rtmp.o] Error 1<br>make: *** [osx] Error 2<br><br>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?<br>
<br>Thanks,<br>John<br>