geoclue: will fail to build against gpsd 3.3
Bug #893310 reported by
Bernd Zeimetz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GeoClue |
Won't Fix
|
High
|
|||
geoclue (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
As the freedesktop.org upstream is kinda dead, but geoclue seems to be ina bit of development in Ubuntu I'm filing the bug here, too.
gpsd 3.3 (currently in Debian experimental) comes with a new API (v5) and geoclue will fail to build against it. IMHO the whole gpsd provider should be rewritten - parsing NMEA is not really the best way to handle gps data. Enough examples should be shipped with gpsd's source code.
don't hesitate to ask if you have questions :)
Changed in geoclue (Ubuntu): | |
status: | New → Confirmed |
Changed in geoclue: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in geoclue: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
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.