[rtmpdump] error compiling

Riccardo bricula at katamail.com
Fri May 14 10:14:25 CEST 2010


Hello All

I am going mad! I spent 3 days compiling this software  
unsuccessfully....
I am not an expert on compiling software or with libraries so maybe I  
miss a very obvious passage that no-one stated anywhere...
Here's exactly what I have done
I have osx 10.5 intel and I have installed the xcode from the cd.
I downloaded the tar.gx archive for and I am trying to built rtmpdump  
2.2d and I tried make posix.
I got this

rtmpdump-2.2d user$ make posix
make[2]: Nothing to be done for `all'.
gcc -Wall  rtmpdump.o librtmp/librtmp.a  -o rtmpdump -lssl -lcrypto -lz
Undefined symbols:
   "_mpi_init", referenced from:
       _DHInit in librtmp.a(rtmp.o)
       _DHInit in librtmp.a(rtmp.o)
       _isValidPublicKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
   "_sha2_hmac_update", referenced from:
       _HMACsha256 in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _swfcrunch in librtmp.a(hashswf.o)
       _swfcrunch in librtmp.a(hashswf.o)
       _swfcrunch in librtmp.a(hashswf.o)
   "_mpi_write_binary", referenced from:
       _DHGetPublicKey in librtmp.a(rtmp.o)
   "_ssl_free", referenced from:
       _RTMPSockBuf_Close in librtmp.a(rtmp.o)
   "_havege_init", referenced from:
       _RTMP_TLS_Init in librtmp.a(rtmp.o)
   "_ssl_set_ciphers", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_net_recv", referenced from:
       _net_recv$non_lazy_ptr in librtmp.a(rtmp.o)
       _net_recv$non_lazy_ptr in librtmp.a(hashswf.o)
   "_dhm_calc_secret", referenced from:
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
   "_ssl_handshake", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_ssl_set_session", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_ssl_set_rng", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_net_send", referenced from:
       _net_send$non_lazy_ptr in librtmp.a(rtmp.o)
       _net_send$non_lazy_ptr in librtmp.a(hashswf.o)
   "_dhm_free", referenced from:
       _DHInit in librtmp.a(rtmp.o)
       _RTMP_Close in librtmp.a(rtmp.o)
   "_ssl_init", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_mpi_read_binary", referenced from:
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
   "_mpi_lset", referenced from:
       _DHInit in librtmp.a(rtmp.o)
       _isValidPublicKey in librtmp.a(rtmp.o)
   "_dhm_make_public", referenced from:
       _DHGenerateKey in librtmp.a(rtmp.o)
   "_ssl_set_authmode", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_ssl_write", referenced from:
       _RTMPSockBuf_Send in librtmp.a(rtmp.o)
   "_mpi_sub_int", referenced from:
       _isValidPublicKey in librtmp.a(rtmp.o)
   "_mpi_exp_mod", referenced from:
       _isValidPublicKey in librtmp.a(rtmp.o)
   "_arc4_crypt", referenced from:
       _WriteN in librtmp.a(rtmp.o)
       _ReadN in librtmp.a(rtmp.o)
       _RTMP_Serve in librtmp.a(rtmp.o)
       _RTMP_Serve in librtmp.a(rtmp.o)
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _RTMP_Connect1 in librtmp.a(rtmp.o)
   "_ssl_close_notify", referenced from:
       _RTMPSockBuf_Close in librtmp.a(rtmp.o)
   "_fopen$UNIX2003", referenced from:
       _OpenResumeFile in rtmpdump.o
       _main in rtmpdump.o
       _RTMP_HashSWF in librtmp.a(hashswf.o)
       _RTMP_HashSWF in librtmp.a(hashswf.o)
   "_mpi_copy", referenced from:
       _isValidPublicKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
   "_havege_rand", referenced from:
       _havege_rand$non_lazy_ptr in librtmp.a(rtmp.o)
       _havege_rand$non_lazy_ptr in librtmp.a(hashswf.o)
   "_mpi_read_string", referenced from:
       _DHInit in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
   "_sha2_hmac_starts", referenced from:
       _HMACsha256 in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _RTMP_HashSWF in librtmp.a(hashswf.o)
   "_sha2_hmac_finish", referenced from:
       _HMACsha256 in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _RTMP_HashSWF in librtmp.a(hashswf.o)
   "_arc4_setup", referenced from:
       _InitRC4Encryption in librtmp.a(rtmp.o)
       _InitRC4Encryption in librtmp.a(rtmp.o)
   "_mpi_size", referenced from:
       _DHGetPublicKey in librtmp.a(rtmp.o)
   "_ssl_read", referenced from:
       _RTMPSockBuf_Fill in librtmp.a(rtmp.o)
   "_mpi_free", referenced from:
       _DHInit in librtmp.a(rtmp.o)
       _DHInit in librtmp.a(rtmp.o)
       _DHInit in librtmp.a(rtmp.o)
       _DHInit in librtmp.a(rtmp.o)
       _isValidPublicKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHGenerateKey in librtmp.a(rtmp.o)
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
       _DHComputeSharedSecretKey in librtmp.a(rtmp.o)
       _RTMP_Close in librtmp.a(rtmp.o)
       _RTMP_Close in librtmp.a(rtmp.o)
       _RTMP_Close in librtmp.a(rtmp.o)
       _RTMP_Close in librtmp.a(rtmp.o)
   "_mpi_cmp_int", referenced from:
       _isValidPublicKey in librtmp.a(rtmp.o)
   "_ssl_default_ciphers", referenced from:
       _ssl_default_ciphers$non_lazy_ptr in librtmp.a(rtmp.o)
       _ssl_default_ciphers$non_lazy_ptr in librtmp.a(hashswf.o)
   "_mpi_cmp_mpi", referenced from:
       _isValidPublicKey in librtmp.a(rtmp.o)
       _isValidPublicKey in librtmp.a(rtmp.o)
   "_ssl_set_bio", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
   "_ssl_set_endpoint", referenced from:
       _RTMP_Connect1 in librtmp.a(rtmp.o)
       _HTTP_get in librtmp.a(hashswf.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [rtmpdump] Error 1
make: *** [posix] Error 2

I tried to download other version of the software (the 1.9, 1.4, 2.1,  
2.2c and 2.2d), same result. Now I am working with the 2.2d.
I installed the zlib 1.2.5 and the openssl-1.0.0... this one gave me a  
couple of problems but eventually I managed to resolve it... well, I  
had no more "error" stated in the end but I don't know if the  
installation was really ok.... I suppose so...
the rtmpdump, however, give me the same message error...
please I need help...
I really don't know anymore what to do! I even tried other software  
(flvstreamer, videothief and many others, with no result)
any help would be VERY appreciated
thanks in advance





More information about the rtmpdump mailing list