compilation error

Bug #1918124 reported by gariac
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FoxtrotGPS
Fix Committed
Undecided
Unassigned

Bug Description

Configuration work. Make has compilation errors as follows:

s
mrg@linux-yxjo:/usr/local/src/foxtrotgps/foxtrotgps-1.2.2> make
make all-recursive
make[1]: Entering directory '/usr/local/src/foxtrotgps/foxtrotgps-1.2.2'
Making all in po
make[2]: Entering directory '/usr/local/src/foxtrotgps/foxtrotgps-1.2.2/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/usr/local/src/foxtrotgps/foxtrotgps-1.2.2/po'
Making all in src
make[2]: Entering directory '/usr/local/src/foxtrotgps/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/lib/foxtrotgps\"" -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/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/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/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/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libxml2 -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:23,
                 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:551:8: note: declared here
  551 | 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[2]: *** [Makefile:537: gps_functions.o] Error 1
make[2]: Leaving directory '/usr/local/src/foxtrotgps/foxtrotgps-1.2.2/src'
make[1]: *** [Makefile:506: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/foxtrotgps/foxtrotgps-1.2.2'
make: *** [Makefile:417: all] Error 2

Revision history for this message
gariac (lists-4) wrote :

Appologies. I am using Opensuse 15.2
5.3.18-lp152.66-default #1 SMP Tue Mar 2 13:18:19 UTC 2021 (73933a3) x86_64 x86_64 x86_64 GNU/Linux

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

These issues are fixed in bzr, please upgrade to the latest commit.
Unfortunately I don't have the access needed to make releases and
I am unable to contact any of the people who have the access needed.

PS: unless someone finishes the port of foxtrotgps to GTK 3, it will
become unbuildable once all the distros remove their GTK 2 packages.

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

 status fixcommitted

--
bye,
pabs

https://wiki.debian.org/PaulWise

Changed in foxtrotgps:
status: New → Fix Committed
Revision history for this message
gariac (lists-4) wrote :
Download full text (15.4 KiB)

bzr is in the opensuse repo fortunately.

Well I figured I would use the gtk3 version. However it still doesn't compile. Perhaps an issue with the rev of gtk3? Here is my output:

bzr branch https://code.launchpad.net/~pabs/foxtrotgps/gtk3
Branched 315 revisions.
sh-4.4# ls
gtk3
sh-4.4# cd gtk3
sh-4.4# ls
acinclude.m4 AUTHORS autogen.sh configure.ac contrib COPYING data doc HACKING Makefile.am NEWS pixmaps po README src TODO
sh-4.4# ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:9: installing './compile'
configure.ac:22: installing './config.guess'
configure.ac:22: installing './config.sub'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
Makefile.am: installing './INSTALL'
doc/Makefile.am:7: installing 'doc/mdate-sh'
doc/Makefile.am:7: installing 'doc/texinfo.tex'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
sh-4.4# ls
acinclude.m4 AUTHORS autom4te.cache config.guess config.sub configure.ac COPYING depcomp HACKING install-sh Makefile.am missing pixmaps README TODO
aclocal.m4 autogen.sh compile config.h.in configure contrib data doc INSTALL ltmain.sh Makefile.in NEWS po src
sh-4.4# ./cofigure
sh: ./cofigure: No such file or directory
sh-4.4# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking f...

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

The gtk3 port isn't yet completed, please use the trunk version.

https://code.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk

--
bye,
pabs

https://wiki.debian.org/PaulWise

Revision history for this message
gariac (lists-4) wrote :

Works*. Thanks for your help.

*Well the program runs but gpsd doesn't start. But that isn't the problem of Foxtrotgps. Now to figure it out. ;-) So this bug is closed.

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

Other bug subscribers