AW: AW: Fwd: gpsd support

Andreas.Eversberg Andreas.Eversberg at
Tue Feb 22 11:10:50 UTC 2011

hi dario,

i just tried to compile master and your patch. (heaving gpsd installed)
here are some problems:

  CC     gps.o
gps.c:41: error: 'gps' redeclared as different kind of symbol
/usr/include/gps.h:127: error: previous definition of 'gps' was here
gps.c: In function 'osmo_gpsd_cb':
gps.c:73: warning: implicit declaration of function 'gps_waiting'
gps.c: In function 'osmo_gpsd_open':
gps.c:123: warning: implicit declaration of function 'gps_stream'
gps.c:123: error: 'WATCH_ENABLE' undeclared (first use in this function)
gps.c:123: error: (Each undeclared identifier is reported only once
gps.c:123: error: for each function it appears in.)

1. the symbol "gps" is used as structure instance for struct osmo_gps.
it is also used in an enum declaration at /usr/include/gps.h:

            enum {gps, glonass, unknown} system;

2. the declarations 'gps_waiting', 'gps_stream', 'WATCH_ENABLE' are not
defined at gps.h

this is maybe one reason why i failed to write gpsd support. symbols in
the howtos and examples were missing. here is the latest version i got
from the gentoo repository:

*  sci-geosciences/gpsd
      Latest version available: 2.32
      Latest version installed: 2.32
      Size of files: 603 kB
      Description:   GPS daemon and library to support USB/serial GPS
devices and various GPS/mapping clients.
      License:       BSD

any ideas?


More information about the baseband-devel mailing list