Bug #4758
openrtl_tcp no longer works on macos 10.15 via macports
0%
Description
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
Updated by robinld over 3 years ago
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.
Updated by mores about 1 year ago
Checked out tag 0.6.0 - built on macos - correctly binds to port.
Updated by rhymepays about 1 year ago
The latest macport pulls from master at 5e73f90f where rtl_tcp is still broken. I will ask macports to use the 0.6.0 tag which is what homebrew does.