building against gpsd fails
Greg Troxel
gdt at ir.bbn.com
Thu Mar 11 10:01:35 PST 2010
(I'm not on the geoclue list.)
I pulled from your public git repo at
Thu Mar 11 17:50:32 UTC 2010
and tried to build on NetBSD 5.0_STABLE (i386) with gpsd svn trunk.
I needed the following patch to configure.ac to allow --enable-gpsd to
succeed. Then, I got a build failure because of using gps_set_callback,
which I believe to be a withdrawn interface.
gdt 104 ~/SOFTWARE/GPSD/geoclue/providers/gpsd > gmake
gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/y0/include -I/usr/pkg/include -I../.. -I../.. -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include -I/usr/pkg/include/libxml2 -g -O2 -g -Wall -Werror -Wno-format -MT geoclue_gpsd-geoclue-gpsd.o -MD -MP -MF .deps/geoclue_gpsd-geoclue-gpsd.Tpo -c -o geoclue_gpsd-geoclue-gpsd.o `test -f 'geoclue-gpsd.c' || echo './'`geoclue-gpsd.c
cc1: warnings being treated as errors
geoclue-gpsd.c: In function 'geoclue_gpsd_start_gpsd':
geoclue-gpsd.c:401: warning: implicit declaration of function 'gps_set_callback'
gmake: *** [geoclue_gpsd-geoclue-gpsd.o] Error 1
commit efc96ff963f0577ae89f5023ba6b987411c51c01
Author: Greg Troxel <gdt at ir.bbn.com>
Date: Thu Mar 11 12:38:44 2010 -0500
configure.ac: Use a consistent variable to indicate presence/absence of gpsd.
diff --git a/configure.ac b/configure.ac
index 1878f0b..c06ba89 100644
--- a/configure.ac
+++ b/configure.ac
@@ -181,7 +181,7 @@ AC_ARG_ENABLE(gpsd,
enable_gpsd=auto)
if test "x$enable_gpsd" != "xno"; then
- AC_CHECK_LIB(gps, gps_open,[libgps=yes] )
+ AC_CHECK_LIB(gps, gps_open,[have_gpsd=yes] )
if test "x$have_gpsd" = "xyes"; then
PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS gpsd"
GPSD_LIBS="-lgps"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/geoclue/attachments/20100311/f1025ccb/attachment.pgp>
More information about the GeoClue
mailing list