[rtmpdump] Build rtmpdump on Mac OS X 10.7

Christoph Roland Murauer christoph_murauer at mac.com
Thu Sep 29 17:35:50 CEST 2011


Hello !

I have tried to build rtmpdump (for Mac OS X 10.7.1) as described in the README.
After I run make (if I run make SYS=posix it is the same) I get the following output : 

-----------
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c
In file included from handshake.h:83,
                 from rtmp.c:126:
dh.h: In function ‘isValidPublicKey’:
dh.h:161: warning: ‘BN_new’ is deprecated (declared at /usr/include/openssl/bn.h:417)
dh.h:165: warning: ‘BN_set_word’ is deprecated (declared at /usr/include/openssl/bn.h:464)
dh.h:166: warning: ‘BN_cmp’ is deprecated (declared at /usr/include/openssl/bn.h:467)
dh.h:174: warning: ‘BN_copy’ is deprecated (declared at /usr/include/openssl/bn.h:420)
dh.h:175: warning: ‘BN_sub_word’ is deprecated (declared at /usr/include/openssl/bn.h:463)
dh.h:176: warning: ‘BN_cmp’ is deprecated (declared at /usr/include/openssl/bn.h:467)
dh.h:192: warning: ‘BN_CTX_new’ is deprecated (declared at /usr/include/openssl/bn.h:403)
dh.h:192: warning: ‘BN_mod_exp’ is deprecated (declared at /usr/include/openssl/bn.h:475)
dh.h:192: warning: ‘BN_CTX_free’ is deprecated (declared at /usr/include/openssl/bn.h:407)
dh.h:194: warning: ‘BN_cmp’ is deprecated (declared at /usr/include/openssl/bn.h:467)
dh.h:194: warning: ‘BN_value_one’ is deprecated (declared at /usr/include/openssl/bn.h:401)
dh.h:201: warning: ‘BN_free’ is deprecated (declared at /usr/include/openssl/bn.h:468)
dh.h: In function ‘DHInit’:
dh.h:209: warning: ‘DH_new’ is deprecated (declared at /usr/include/openssl/dh.h:184)
dh.h:214: warning: ‘BN_new’ is deprecated (declared at /usr/include/openssl/bn.h:417)
dh.h:219: warning: ‘BN_hex2bn’ is deprecated (declared at /usr/include/openssl/bn.h:507)
dh.h:225: warning: ‘BN_set_word’ is deprecated (declared at /usr/include/openssl/bn.h:464)
dh.h:232: warning: ‘DH_free’ is deprecated (declared at /usr/include/openssl/dh.h:185)
dh.h: In function ‘DHGenerateKey’:
dh.h:248: warning: ‘DH_generate_key’ is deprecated (declared at /usr/include/openssl/dh.h:204)
dh.h:251: warning: ‘BN_hex2bn’ is deprecated (declared at /usr/include/openssl/bn.h:507)
dh.h:257: warning: ‘BN_free’ is deprecated (declared at /usr/include/openssl/bn.h:468)
dh.h:258: warning: ‘BN_free’ is deprecated (declared at /usr/include/openssl/bn.h:468)
dh.h:262: warning: ‘BN_free’ is deprecated (declared at /usr/include/openssl/bn.h:468)
dh.h: In function ‘DHGetPublicKey’:
dh.h:278: warning: ‘BN_num_bits’ is deprecated (declared at /usr/include/openssl/bn.h:415)
dh.h:283: warning: ‘BN_bn2bin’ is deprecated (declared at /usr/include/openssl/bn.h:423)
dh.h: In function ‘DHComputeSharedSecretKey’:
dh.h:318: warning: ‘BN_bin2bn’ is deprecated (declared at /usr/include/openssl/bn.h:422)
dh.h:322: warning: ‘BN_hex2bn’ is deprecated (declared at /usr/include/openssl/bn.h:507)
dh.h:326: warning: ‘DH_compute_key’ is deprecated (declared at /usr/include/openssl/dh.h:205)
dh.h:330: warning: ‘BN_free’ is deprecated (declared at /usr/include/openssl/bn.h:468)
dh.h:331: warning: ‘BN_free’ is deprecated (declared at /usr/include/openssl/bn.h:468)
In file included from rtmp.c:126:
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:122: warning: ‘HMAC_CTX_init’ is deprecated (declared at /usr/include/openssl/hmac.h:90)
handshake.h:122: warning: ‘HMAC_Init_ex’ is deprecated (declared at /usr/include/openssl/hmac.h:98)
handshake.h:122: warning: ‘EVP_sha256’ is deprecated (declared at /usr/include/openssl/evp.h:673)
handshake.h:123: warning: ‘HMAC_Update’ is deprecated (declared at /usr/include/openssl/hmac.h:99)
handshake.h:124: warning: ‘HMAC_Final’ is deprecated (declared at /usr/include/openssl/hmac.h:100)
handshake.h:124: warning: ‘HMAC_CTX_cleanup’ is deprecated (declared at /usr/include/openssl/hmac.h:91)
handshake.h:129: warning: ‘RC4_set_key’ is deprecated (declared at /usr/include/openssl/rc4.h:84)
handshake.h:131: warning: ‘HMAC_CTX_init’ is deprecated (declared at /usr/include/openssl/hmac.h:90)
handshake.h:131: warning: ‘HMAC_Init_ex’ is deprecated (declared at /usr/include/openssl/hmac.h:98)
handshake.h:131: warning: ‘EVP_sha256’ is deprecated (declared at /usr/include/openssl/evp.h:673)
handshake.h:132: warning: ‘HMAC_Update’ is deprecated (declared at /usr/include/openssl/hmac.h:99)
handshake.h:133: warning: ‘HMAC_Final’ is deprecated (declared at /usr/include/openssl/hmac.h:100)
handshake.h:133: warning: ‘HMAC_CTX_cleanup’ is deprecated (declared at /usr/include/openssl/hmac.h:91)
handshake.h:138: warning: ‘RC4_set_key’ is deprecated (declared at /usr/include/openssl/rc4.h:84)
handshake.h: In function ‘HMACsha256’:
handshake.h:268: warning: ‘HMAC_CTX_init’ is deprecated (declared at /usr/include/openssl/hmac.h:90)
handshake.h:268: warning: ‘HMAC_Init_ex’ is deprecated (declared at /usr/include/openssl/hmac.h:98)
handshake.h:268: warning: ‘EVP_sha256’ is deprecated (declared at /usr/include/openssl/evp.h:673)
handshake.h:269: warning: ‘HMAC_Update’ is deprecated (declared at /usr/include/openssl/hmac.h:99)
handshake.h:270: warning: ‘HMAC_Final’ is deprecated (declared at /usr/include/openssl/hmac.h:100)
handshake.h:270: warning: ‘HMAC_CTX_cleanup’ is deprecated (declared at /usr/include/openssl/hmac.h:91)
handshake.h: In function ‘HandShake’:
handshake.h:719: warning: ‘RC4’ is deprecated (declared at /usr/include/openssl/rc4.h:86)
handshake.h:724: warning: ‘RC4’ is deprecated (declared at /usr/include/openssl/rc4.h:86)
handshake.h: In function ‘SHandShake’:
handshake.h:1073: warning: ‘RC4’ is deprecated (declared at /usr/include/openssl/rc4.h:86)
handshake.h:1078: warning: ‘RC4’ is deprecated (declared at /usr/include/openssl/rc4.h:86)
rtmp.c: In function ‘RTMP_TLS_Init’:
rtmp.c:219: warning: ‘SSL_load_error_strings’ is deprecated (declared at /usr/include/openssl/ssl.h:1416)
rtmp.c:220: warning: ‘SSL_library_init’ is deprecated (declared at /usr/include/openssl/ssl.h:1553)
rtmp.c:221: warning: ‘OpenSSL_add_all_digests’ is deprecated (declared at /usr/include/openssl/evp.h:840)
rtmp.c:222: warning: ‘SSL_CTX_new’ is deprecated (declared at /usr/include/openssl/ssl.h:1346)
rtmp.c:222: warning: ‘SSLv23_method’ is deprecated (declared at /usr/include/openssl/ssl.h:1515)
rtmp.c:223: warning: ‘SSL_CTX_ctrl’ is deprecated (declared at /usr/include/openssl/ssl.h:1498)
rtmp.c:224: warning: ‘SSL_CTX_set_default_verify_paths’ is deprecated (declared at /usr/include/openssl/ssl.h:1570)
rtmp.c: In function ‘RTMP_Connect1’:
rtmp.c:859: warning: ‘SSL_new’ is deprecated (declared at /usr/include/openssl/ssl.h:1481)
rtmp.c:860: warning: ‘SSL_set_fd’ is deprecated (declared at /usr/include/openssl/ssl.h:1370)
rtmp.c:861: warning: ‘SSL_connect’ is deprecated (declared at /usr/include/openssl/ssl.h:1492)
rtmp.c: In function ‘ReadN’:
rtmp.c:1337: warning: ‘RC4’ is deprecated (declared at /usr/include/openssl/rc4.h:86)
rtmp.c: In function ‘WriteN’:
rtmp.c:1363: warning: ‘RC4’ is deprecated (declared at /usr/include/openssl/rc4.h:86)
rtmp.c: In function ‘RTMP_Close’:
rtmp.c:3464: warning: ‘DH_free’ is deprecated (declared at /usr/include/openssl/dh.h:185)
rtmp.c: In function ‘RTMPSockBuf_Fill’:
rtmp.c:3494: warning: ‘SSL_read’ is deprecated (declared at /usr/include/openssl/ssl.h:1493)
rtmp.c: In function ‘RTMPSockBuf_Send’:
rtmp.c:3537: warning: ‘SSL_write’ is deprecated (declared at /usr/include/openssl/ssl.h:1495)
rtmp.c: In function ‘RTMPSockBuf_Close’:
rtmp.c:3553: warning: ‘SSL_shutdown’ is deprecated (declared at /usr/include/openssl/ssl.h:1532)
rtmp.c:3554: warning: ‘SSL_free’ is deprecated (declared at /usr/include/openssl/ssl.h:1490)
gcc -Wall   -DRTMPDUMP_VERSION=\"v23\" -DUSE_OPENSSL  -O2 -fPIC   -c -o log.o log.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o amf.o amf.c
In file included from amf.c:33:
bytes.h:74:2: warning: #warning "Float word order not defined, assuming the same as byte order!"
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o hashswf.o hashswf.c
hashswf.c: In function ‘HTTP_get’:
hashswf.c:164: warning: ‘SSL_new’ is deprecated (declared at /usr/include/openssl/ssl.h:1481)
hashswf.c:165: warning: ‘SSL_set_fd’ is deprecated (declared at /usr/include/openssl/ssl.h:1370)
hashswf.c:166: warning: ‘SSL_connect’ is deprecated (declared at /usr/include/openssl/ssl.h:1492)
hashswf.c: In function ‘swfcrunch’:
hashswf.c:314: warning: ‘HMAC_Update’ is deprecated (declared at /usr/include/openssl/hmac.h:99)
hashswf.c:332: warning: ‘HMAC_Update’ is deprecated (declared at /usr/include/openssl/hmac.h:99)
hashswf.c:339: warning: ‘HMAC_Update’ is deprecated (declared at /usr/include/openssl/hmac.h:99)
hashswf.c: In function ‘RTMP_HashSWF’:
hashswf.c:585: warning: ‘HMAC_CTX_init’ is deprecated (declared at /usr/include/openssl/hmac.h:90)
hashswf.c:585: warning: ‘HMAC_Init_ex’ is deprecated (declared at /usr/include/openssl/hmac.h:98)
hashswf.c:585: warning: ‘EVP_sha256’ is deprecated (declared at /usr/include/openssl/evp.h:673)
hashswf.c:640: warning: ‘HMAC_Final’ is deprecated (declared at /usr/include/openssl/hmac.h:100)
hashswf.c:651: warning: ‘HMAC_CTX_cleanup’ is deprecated (declared at /usr/include/openssl/hmac.h:91)
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creating archive librtmp.a
gcc -shared -Wl,-soname,librtmp.so.0  -o librtmp.so.0 rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz 
ld: unknown option: -soname
collect2: ld returned 1 exit status
make[1]: *** [librtmp.so.0] Error 1
make: *** [librtmp/librtmp.a] Error 2
----------

A ld -v brings the following output : 
----------
@(#)PROGRAM:ld  PROJECT:ld64-123.2.1
llvm version 3.0svn, from Apple Clang 2.1 (build 163.7.1)
----------
 
Does anyone know how to fix this (man ld brings no help for me) ?
Thanks for your answer.

Regards,

Murauer Christoph
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20110929/9b523e60/attachment-0001.html>


More information about the rtmpdump mailing list