Skip to content

Fails to compile with USE_GPSD #121

@mytechguyri

Description

@mytechguyri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions