2011-06-06, 16:44
I am running the latest Live installed on the hard drive and when I try compiling I get:
Can you tell me if you used a different make command, or if you have any ideas why it wont compile?
Code:
oneadvent@oneadvent-laptop:~/source/rtmpdump$ make SYS=darwin
make[1]: Entering directory `/home/oneadvent/source/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
rtmp.c:40:25: error: openssl/ssl.h: No such file or directory
rtmp.c:41:25: error: openssl/rc4.h: No such file or directory
rtmp.c:43: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
In file included from rtmp.c:126:
handshake.h:63:25: error: openssl/sha.h: No such file or directory
handshake.h:64:26: error: openssl/hmac.h: No such file or directory
handshake.h:67:2: error: #error Your OpenSSL is too old, need 0.9.8 or newer with SHA256
In file included from rtmp.c:126:
handshake.h:73: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
In file included from handshake.h:83,
from rtmp.c:126:
dh.h:125:24: error: openssl/bn.h: No such file or directory
dh.h:126:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:83,
from rtmp.c:126:
dh.h:128: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
In file included from handshake.h:83,
from rtmp.c:126:
dh.h:155: error: expected â)â before âyâ
dh.h:205: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
dh.h:238: error: expected â)â before â*â token
dh.h:272: error: expected â)â before â*â token
dh.h:308: error: expected â)â before â*â token
In file included from rtmp.c:126:
handshake.h:113: error: expected declaration specifiers or â...â before âRC4_handleâ
handshake.h:113: error: expected declaration specifiers or â...â before âRC4_handleâ
handshake.h: In function âInitRC4Encryptionâ:
handshake.h:115: error: âSHA256_DIGEST_LENGTHâ undeclared (first use in this function)
handshake.h:115: error: (Each undeclared identifier is reported only once
handshake.h:115: error: for each function it appears in.)
handshake.h:117: error: âHMAC_CTXâ undeclared (first use in this function)
handshake.h:117: error: expected â;â before âctxâ
handshake.h:119: error: ârc4keyInâ undeclared (first use in this function)
handshake.h:119: error: âRC4_KEYâ undeclared (first use in this function)
handshake.h:120: error: ârc4keyOutâ undeclared (first use in this function)
handshake.h:122: warning: implicit declaration of function âHMAC_CTX_initâ
handshake.h:122: error: âctxâ undeclared (first use in this function)
handshake.h:122: warning: implicit declaration of function âHMAC_Init_exâ
handshake.h:122: warning: implicit declaration of function âEVP_sha256â
handshake.h:123: warning: implicit declaration of function âHMAC_Updateâ
handshake.h:124: warning: implicit declaration of function âHMAC_Finalâ
handshake.h:124: warning: implicit declaration of function âHMAC_CTX_cleanupâ
handshake.h:129: warning: implicit declaration of function âRC4_set_keyâ
handshake.h:115: warning: unused variable âdigestâ
handshake.h: In function âHMACsha256â:
handshake.h:266: error: âHMAC_CTXâ undeclared (first use in this function)
handshake.h:266: error: expected â;â before âctxâ
handshake.h:268: error: âctxâ undeclared (first use in this function)
handshake.h: In function âCalculateDigestâ:
handshake.h:279: error: âSHA256_DIGEST_LENGTHâ undeclared (first use in this function)
handshake.h:280: warning: unused variable âmessageâ
handshake.h: In function âVerifyDigestâ:
handshake.h:294: error: âSHA256_DIGEST_LENGTHâ undeclared (first use in this function)
handshake.h:294: warning: unused variable âcalcDigestâ
handshake.h: In function âHandShakeâ:
handshake.h:369: error: âRC4_handleâ undeclared (first use in this function)
handshake.h:369: error: expected â;â before âkeyInâ
handshake.h:370: error: expected â;â before âkeyOutâ
handshake.h:440: warning: implicit declaration of function âDHInitâ
handshake.h:440: warning: assignment makes pointer from integer without a cast
handshake.h:451: warning: implicit declaration of function âDHGenerateKeyâ
handshake.h:458: warning: implicit declaration of function âDHGetPublicKeyâ
handshake.h:474: error: âSHA256_DIGEST_LENGTHâ undeclared (first use in this function)
In file included from rtmp.c:126:
handshake.h:561: warning: implicit declaration of function âDHComputeSharedSecretKeyâ
handshake.h:575: error: âkeyInâ undeclared (first use in this function)
handshake.h:575: error: âkeyOutâ undeclared (first use in this function)
handshake.h:575: error: too many arguments to function âInitRC4Encryptionâ
handshake.h:515: warning: unused variable âdigestRespâ
handshake.h:721: warning: implicit declaration of function âRC4â
handshake.h:653: warning: unused variable âdigestâ
handshake.h:652: warning: unused variable âsignatureâ
handshake.h: In function âSHandShakeâ:
handshake.h:749: error: âRC4_handleâ undeclared (first use in this function)
handshake.h:749: error: expected â;â before âkeyInâ
handshake.h:750: error: expected â;â before âkeyOutâ
handshake.h:832: warning: assignment makes pointer from integer without a cast
handshake.h:867: error: âSHA256_DIGEST_LENGTHâ undeclared (first use in this function)
handshake.h:949: error: âkeyInâ undeclared (first use in this function)
handshake.h:949: error: âkeyOutâ undeclared (first use in this function)
handshake.h:949: error: too many arguments to function âInitRC4Encryptionâ
handshake.h:886: warning: unused variable âdigestRespâ
handshake.h:1015: warning: unused variable âdigestâ
handshake.h:1014: warning: unused variable âsignatureâ
rtmp.c: In function âRTMP_TLS_Initâ:
rtmp.c:219: warning: implicit declaration of function âSSL_load_error_stringsâ
rtmp.c:220: warning: implicit declaration of function âSSL_library_initâ
rtmp.c:221: warning: implicit declaration of function âOpenSSL_add_all_digestsâ
rtmp.c:222: error: âRTMP_TLS_ctxâ undeclared (first use in this function)
rtmp.c:222: warning: implicit declaration of function âSSL_CTX_newâ
rtmp.c:222: warning: implicit declaration of function âSSLv23_methodâ
rtmp.c:223: warning: implicit declaration of function âSSL_CTX_set_optionsâ
rtmp.c:223: error: âSSL_OP_ALLâ undeclared (first use in this function)
rtmp.c:224: warning: implicit declaration of function âSSL_CTX_set_default_verify_pathsâ
rtmp.c: In function âRTMP_Initâ:
rtmp.c:245: error: âRTMP_TLS_ctxâ undeclared (first use in this function)
rtmp.c: In function âRTMP_Connect1â:
rtmp.c:859: warning: implicit declaration of function âSSL_newâ
rtmp.c:859: error: âRTMP_TLS_ctxâ undeclared (first use in this function)
rtmp.c:860: warning: implicit declaration of function âSSL_set_fdâ
rtmp.c:861: warning: implicit declaration of function âSSL_connectâ
rtmp.c: In function âRTMP_Closeâ:
rtmp.c:3490: warning: implicit declaration of function âDH_freeâ
rtmp.c: In function âRTMPSockBuf_Fillâ:
rtmp.c:3520: warning: implicit declaration of function âSSL_readâ
rtmp.c: In function âRTMPSockBuf_Sendâ:
rtmp.c:3563: warning: implicit declaration of function âSSL_writeâ
rtmp.c: In function âRTMPSockBuf_Closeâ:
rtmp.c:3579: warning: implicit declaration of function âSSL_shutdownâ
rtmp.c:3580: warning: implicit declaration of function âSSL_freeâ
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/home/oneadvent/source/rtmpdump/librtmp'
make: *** [librtmp/librtmp.a] Error 2
Can you tell me if you used a different make command, or if you have any ideas why it wont compile?