rtl_tcp no longer works on macos 10.15 via macports
rtl_tcp no longer works on MacOS 10.15 (catalina) installed via macports. I was able to install an old port in order to get it to work. It appears that the code which sets up the tcp server contains a bug. The other executables in the package appear to work correctly.
Output from running rtl_tcp with no arguments:
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Tuned to 100000000 Hz.
rtl_tcp bind error: Invalid argumentlistening...
Use the device argument 'rtl_tcp=127.0.0.1:1234' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
Output from dtruss of networking syscalls:
socket(0x2, 0x1, 0x6) = 5 0
setsockopt(0x5, 0xFFFF, 0x4) = 0 0
setsockopt(0x5, 0xFFFF, 0x80) = 0 0
bind(0x5, 0x7FFEEC5BAB20, 0x80) = -1 22
listen(0x5, 0x1, 0x0) = 0 0
I am not sure which commit introduced the bug but it is between be2e4f89 and d794155b.
Last known good commit: be2e4f89
Commit which contains issue: d794155b
This issue is caused by http://git.osmocom.org/rtl-sdr/commit/?id=8985b45e1fe1a5d50c5e1dc4c7c306705e602445
I was able to work around it by just reverting this change.