it works normally in windows. probably your compilation may have some problems. make sure you are linking it with correct version of librtmp.
Code:
RTMPDump v2.4 GIT-2011-08-11 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 3610.71
INFO: moovPosition 40.00
INFO: width 640.00
INFO: height 360.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 77.00
INFO: avclevel 40.00
INFO: aacaot 2.00
INFO: videoframerate 29.97
INFO: audiosamplerate 48000.00
INFO: audiochannels 2.00
INFO: trackinfo:
INFO: length 108321213.00
INFO: timescale 30000.00
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 173314048.00
INFO: timescale 48000.00
INFO: sampledescription:
INFO: sampletype mp4a
9096.689 kB / 105.07 sec (2.9%)