compilation error

Bug #1968050 reported by muhe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FoxtrotGPS
New
Undecided
Unassigned

Bug Description

OS : debian bullseye

je suis pas informaticien, j'ai trouvé la procédure d'install ici : https://www.framboise314.fr/un-gps-usb-pour-le-raspberry-pi/
et je l'ai suivie..

sommand :

sudo apt-get install build-essential autoconf automake pkg-config gconf2 libcurl4-gnutls-dev libexif-dev libsqlite3-dev libgconf2-dev libtool libgtk2.0-dev libglade2-dev libxml2 libxml2-dev libgps-dev intltool help2man imagemagick : OK

.configure : OK

make -j4 : OK

sudo make install NOK :

Making install in po
make[1] : on entre dans le répertoire « /home/bruno/temp/foxtrotgps-1.2.2/po »
linguas="bg cs de es fi fr hu ru sk nl ja sr pt_BR pl it "; \
for lang in $linguas; do \
  dir=/usr/local/share/locale/$lang/LC_MESSAGES; \
  /bin/bash /home/bruno/temp/foxtrotgps-1.2.2/install-sh -d $dir; \
  if test -r $lang.gmo; then \
    /usr/bin/install -c -m 644 $lang.gmo $dir/foxtrotgps.mo; \
    echo "installing $lang.gmo as $dir/foxtrotgps.mo"; \
  else \
    /usr/bin/install -c -m 644 ./$lang.gmo $dir/foxtrotgps.mo; \
    echo "installing ./$lang.gmo as" \
  "$dir/foxtrotgps.mo"; \
  fi; \
  if test -r $lang.gmo.m; then \
    /usr/bin/install -c -m 644 $lang.gmo.m $dir/foxtrotgps.mo.m; \
    echo "installing $lang.gmo.m as $dir/foxtrotgps.mo.m"; \
  else \
    if test -r ./$lang.gmo.m ; then \
      /usr/bin/install -c -m 644 ./$lang.gmo.m \
 $dir/foxtrotgps.mo.m; \
      echo "installing ./$lang.gmo.m as" \
    "$dir/foxtrotgps.mo.m"; \
    else \
      true; \
    fi; \
  fi; \
done
installing bg.gmo as /usr/local/share/locale/bg/LC_MESSAGES/foxtrotgps.mo
installing cs.gmo as /usr/local/share/locale/cs/LC_MESSAGES/foxtrotgps.mo
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/foxtrotgps.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/foxtrotgps.mo
installing fi.gmo as /usr/local/share/locale/fi/LC_MESSAGES/foxtrotgps.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/foxtrotgps.mo
installing hu.gmo as /usr/local/share/locale/hu/LC_MESSAGES/foxtrotgps.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/foxtrotgps.mo
installing sk.gmo as /usr/local/share/locale/sk/LC_MESSAGES/foxtrotgps.mo
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/foxtrotgps.mo
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/foxtrotgps.mo
installing sr.gmo as /usr/local/share/locale/sr/LC_MESSAGES/foxtrotgps.mo
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/foxtrotgps.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/foxtrotgps.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/foxtrotgps.mo
make[1] : on quitte le répertoire « /home/bruno/temp/foxtrotgps-1.2.2/po »
Making install in src
make[1] : on entre dans le répertoire « /home/bruno/temp/foxtrotgps-1.2.2/src »
gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR="\"/usr/local/share\"" -DPACKAGE_PIXMAPS_DIR="\"/usr/local/share/pixmaps\"" -DPACKAGE_LOCALE_DIR="\"/usr/local/share/locale\"" -DPACKAGE_HTML_DIR="\"/usr/local/share/doc/foxtrotgps\"" -DPACKAGE_LIBEXEC_DIR="\"/usr/local/libexec/foxtrotgps\"" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -g -O2 -MT gps_functions.o -MD -MP -MF .deps/gps_functions.Tpo -c -o gps_functions.o gps_functions.c
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from globals.h:6,
                 from gps_functions.c:20:
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
  236 | void gtk_type_init (GTypeDebugFlags debug_flags);
      | ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from globals.h:6,
                 from gps_functions.c:20:
/usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here
  679 | {
      | ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
                 from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:126,
                 from globals.h:6,
                 from gps_functions.c:20:
/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 | GTimeVal last_popdown;
      | ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from gps_functions.c:7:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
  547 | struct _GTimeVal
      | ^~~~~~~~~
gps_functions.c: In function ‘cb_gpsd_data’:
gps_functions.c:756:23: error: incompatible types when assigning to type ‘double’ from type ‘timespec_t’ {aka ‘struct timespec’}
  756 | gpsdata->fix.time = libgps_gpsdata.fix.time;
      | ^~~~~~~~~~~~~~
gps_functions.c:761:35: error: ‘struct gps_data_t’ has no member named ‘status’
  761 | gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX);
      | ^
make[1]: *** [Makefile:537 : gps_functions.o] Erreur 1
make[1] : on quitte le répertoire « /home/bruno/temp/foxtrotgps-1.2.2/src »
make: *** [Makefile:506 : install-recursive] Erreur 1

Revision history for this message
Paul Wise (Debian) (pabs) wrote : Re: [Bug 1968050] [NEW] compilation error

I think this is fixed in the latest bzr revision, please update.

BTW, FoxtrotGPS isn't really maintained, and is likely to go away once
distros remove GTK2.

There is an incomplete GTK3 port here but there currently isn't anyone
with time/interest to complete it:

https://code.launchpad.net/~pabs/foxtrotgps/gtk3

If you would like to complete it you would be most welcome.

--
bye,
pabs

https://wiki.debian.org/PaulWise

Revision history for this message
muhe (muhe) wrote :

thank you for your answer, to be tested next WE...

unfortunately,  I don't have enough skill to do this sort of thing.

best regards...

Le 07/04/2022 à 03:37, Paul Wise (Debian) a écrit :
> I think this is fixed in the latest bzr revision, please update.
>
> BTW, FoxtrotGPS isn't really maintained, and is likely to go away once
> distros remove GTK2.
>
> There is an incomplete GTK3 port here but there currently isn't anyone
> with time/interest to complete it:
>
> https://code.launchpad.net/~pabs/foxtrotgps/gtk3
>
> If you would like to complete it you would be most welcome.
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.