[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] gps_read parameters

From: Charles Curley
Subject: [gpsd-users] gps_read parameters
Date: Sat, 1 Sep 2018 15:58:32 -0600

I have had some interesting problems with two gpsd client programs,
navit and my own brainless client, gnome-gps.

Apparently in commit 6bba8b329fc7687b15863d30471d5af402467802 Gary
Miller changed the parameters for gps_read. Fine. But that changes the
API. Which breaks my program:

address@hidden:~/versioned/gnome-gps$ make
cd src && make production
make[1]: Entering directory '/home/charles/versioned/gnome-gps/src'
gcc -O2 -o gnome-gps.o -Wall -c -Wno-deprecated-declarations gnome-gps.c 
`pkg-config --cflags --libs gtk+-2.0 libgps`
gnome-gps.c:32:2: warning: #warning Setting up for version 7.0 [-Wcpp]
 #warning Setting up for version 7.0
gnome-gps.c: In function ‘gpsPoll’:
gnome-gps.c:1103:13: error: too few arguments to function ‘gps_read’
         if (gps_read (&gpsdata) == -1) {
In file included from gnome-gps.c:13:0:
/usr/local/include/gps.h:2096:12: note: declared here
 extern int gps_read(struct gps_data_t *, char *message, int message_len);
Makefile:26: recipe for target 'gnome-gps.o' failed
make[1]: *** [gnome-gps.o] Error 1
make[1]: Leaving directory '/home/charles/versioned/gnome-gps/src'
Makefile:5: recipe for target 'production' failed
make: *** [production] Error 2

Could you please bump the API version number so we mere C programmers can add 
an appropriate #IFDEF? Thanks

"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]