geoclue-gpsd.c:43:27: error: ‘gps_data’ redeclared as different kind of symbol
/usr/include/gps.h:1713:35: note: previous declaration of ‘gps_data’ was here
geoclue-gpsd.c: In function ‘geoclue_gpsd_start_gpsd’:
geoclue-gpsd.c:400:2: error: too few arguments to function ‘gps_open’
/usr/include/gps.h:1705:12: note: declared here
geoclue-gpsd.c:402:57: error: ‘POLL_NONBLOCK’ undeclared (first use in this function)
geoclue-gpsd.c:402:57: note: each undeclared identifier is reported only once for each function it appears in
geoclue-gpsd.c:403:3: error: implicit declaration of function ‘gps_set_raw_hook’ [-Werror=implicit-function-declaratio
geoclue-gpsd.c: In function ‘gpsd_poll’:
geoclue-gpsd.c:416:3: error: implicit declaration of function ‘gps_poll’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
packages:
gcc 4.6.1
gpsd 3.1.1
geoclue-git
Linux 3.0-ARCH i686
other:
I spoke to <email address hidden>/gpsd who suggested the implementation http://lindi.iki.fi/lindi/gpsd/gpsd-test3.c might be better than parsing nmea strings (though there might be a reason to insist on nmea)
... (geoclue-gpsd.c)
gps_stream(self->gpsdata, WATCH_ENABLE | WATCH_NMEA | POLL_NONBLOCK, NULL);
gps_set_raw_hook (self->gpsdata, gpsd_raw_hook);
...
Whatever the case, fixing this is probably more complex than drop-in replacements, so filing here.
log:
geoclue- gpsd.c: 43:27: error: ‘gps_data’ redeclared as different kind of symbol gps.h:1713: 35: note: previous declaration of ‘gps_data’ was here gpsd_start_ gpsd’: gpsd.c: 400:2: error: too few arguments to function ‘gps_open’ gps.h:1705: 12: note: declared here gpsd.c: 402:57: error: ‘POLL_NONBLOCK’ undeclared (first use in this function) gpsd.c: 402:57: note: each undeclared identifier is reported only once for each function it appears in gpsd.c: 403:3: error: implicit declaration of function ‘gps_set_raw_hook’ [-Werror= implicit- function- declaratio gpsd.c: 416:3: error: implicit declaration of function ‘gps_poll’ [-Werror= implicit- function- declaration]
/usr/include/
geoclue-gpsd.c: In function ‘geoclue_
geoclue-
/usr/include/
geoclue-
geoclue-
geoclue-
geoclue-gpsd.c: In function ‘gpsd_poll’:
geoclue-
cc1: all warnings being treated as errors
packages:
gcc 4.6.1
gpsd 3.1.1
geoclue-git
Linux 3.0-ARCH i686
other:
I spoke to <email address hidden>/gpsd who suggested the implementation http:// lindi.iki. fi/lindi/ gpsd/gpsd- test3.c might be better than parsing nmea strings (though there might be a reason to insist on nmea) self->gpsdata, WATCH_ENABLE | WATCH_NMEA | POLL_NONBLOCK, NULL);
... (geoclue-gpsd.c)
gps_stream(
gps_set_raw_hook (self->gpsdata, gpsd_raw_hook);
...
Whatever the case, fixing this is probably more complex than drop-in replacements, so filing here.