Package: libgps-dev
Version: 2.34.dfsg-3

With gpsd version 2.33-4, the <gps.h> header file was self-contained
and worked out of the box.  This is no longer the case:

  % cat > x.c
  #include <gps.h>
  % gcc -c x.c
  In file included from x.c:1:
  /usr/include/gps.h:105: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'isgps30bits_t'
  /usr/include/gps.h:170: error: 'isgps30bits_t' undeclared here (not in a 
function)
  /usr/include/gps.h:172: error: expected specifier-qualifier-list before 
'isgps30bits_t'
  %

I believe this is a bug with the <gps.h> header file.  Headers in
/usr/include/ should work directly.

Bernd Zeimetz told me on IRC that the workaround for this problem is
to add "#include <gpsd_config.h>" in front of "#include <gps.h>", and
this work.  But I believe this is changing the API for the gpsd
library, and that the correct fix is to change the <gps.h> header to
work out of the box, either by making it include <gpsd_config.h> or by
generating it when the package is build to include the required
defines.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to