I tried to compile
rtmpdump on my OS X 10.5.
When compiling with
make SYS=darwin
I get
Quote:
gcc -o librtmp.0.dylib rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz -I/usr/local/include
Undefined symbols:
"_EVP_sha256", referenced from:
_InitRC4Encryption in rtmp.o
_InitRC4Encryption in rtmp.o
_HMACsha256 in rtmp.o
_RTMP_HashSWF in hashswf.o
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [librtmp.0.dylib] Error 1
make: *** [librtmp/librtmp.a] Error 2
|
Then I changed the "SYS=posix" lines in the 2 Makefile-s to read "SYS=darwin" and then it (seemed to) compile using just
make
But when I run rtmpdump I get
Quote:
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
dyld: lazy symbol binding failed: Symbol not found: _EVP_sha256
Referenced from: /usr/local/lib/librtmp.0.dylib
Expected in: flat namespace
dyld: Symbol not found: _EVP_sha256
Referenced from: /usr/local/lib/librtmp.0.dylib
Expected in: flat namespace
Trace/BPT trap
|
Additionally the rtmpsrv crashes with a bus error as soon as it receives traffic:
Quote:
(gdb) run
Starting program: /usr/local/sbin/rtmpsrv
Reading symbols for shared libraries ++++++. done
RTMP Server v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL
Streaming on rtmp://0.0.0.0:1935
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0xb0082000
[Switching to process 66187 thread 0x117]
0xffff068b in ?? ()
|
Can anyone pleas help me?