I can build and run the gpspipe example from the gpsd-3.7 library. However, the select( ) on the gps fd always times out. I assume it’s because the fd returned from gps_open is always 0 (stdin), which is odd because gps_open( ) does succeed when I pass it localhost:<validport>.
In comparison, just running the gpspipe binary included in the gpsd library does work ok. This happens on 2 ubuntu systems using gcc to compile. I’m looking for ways to further debug this but if gps_open( ) is returning a bad fd, I’m not sure why that would be or how I can work with that.
Thanks for any help.