Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile with USE_GPSD #121

Open
mytechguyri opened this issue Feb 11, 2023 · 0 comments
Open

Fails to compile with USE_GPSD #121

mytechguyri opened this issue Feb 11, 2023 · 0 comments

Comments

@mytechguyri
Copy link

mytechguyri commented Feb 11, 2023

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant