Compile fails when USE_GPSD line in the Makefile is enabled (running Debian Bullseye)
GPSD.cpp: In member function ‘void CGPSD::sendReport()’:
GPSD.cpp:104:17: error: ‘struct gps_data_t’ has no member named ‘status’
104 | if (m_gpsdData.status != STATUS_FIX)
| ^~~~~~
From what I can find on this particular error, this may be due to an API change with gpsd 3.21. Based on that, I changed
if (m_gpsdData.status != STATUS_FIX)
to
if (m_gpsdData.fix.status != STATUS_FIX)
now compiles without error although I doubt the actual fix is that simple, as while my MMDVMHost logfile shows connected go gpsd now, APRS isn't getting updated, so I presume its not actually getting a GPS fix, so APRSGateway has nothing to report, but hopefully this points you in the right direction...
Compile fails when USE_GPSD line in the Makefile is enabled (running Debian Bullseye)
From what I can find on this particular error, this may be due to an API change with gpsd 3.21. Based on that, I changed
if (m_gpsdData.status != STATUS_FIX)
to
if (m_gpsdData.fix.status != STATUS_FIX)
now compiles without error although I doubt the actual fix is that simple, as while my MMDVMHost logfile shows connected go gpsd now, APRS isn't getting updated, so I presume its not actually getting a GPS fix, so APRSGateway has nothing to report, but hopefully this points you in the right direction...