Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building on up-to-date Archlinux #13

Closed
xvybihal opened this issue Jun 3, 2020 · 4 comments · Fixed by #14
Closed

Problem building on up-to-date Archlinux #13

xvybihal opened this issue Jun 3, 2020 · 4 comments · Fixed by #14

Comments

@xvybihal
Copy link

xvybihal commented Jun 3, 2020

Hey Dallen,
one of the archlinux users noticed, that archlinux packages gstm and gstm-git no longer build. (https://aur.archlinux.org/packages/gstm/)

I have in fact built and installed gstm-git 1.3.6.r0.g0638da1 locally for quite some month. So it did build fine in the past. But now it indeed does not build (with 'multiple definition of' messages - see below). I reproduced this on another clean box.

I suspect it might something to do with new versions of gtk3 on archlinux, or not. I have to admin I don't really understand gtk development :))

[root@arch-gstm-build gstm]# make
make  all-recursive
make[1]: Entering directory '/tmp/gstm'
Making all in src
make[2]: Entering directory '/tmp/gstm/src'
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo gstm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT gstm.o -MD -MP -MF $depbase.Tpo -c -o gstm.o gstm.c &&\
mv -f $depbase.Tpo $depbase.Po
gstm.c: In function 'gstm_init':
gstm.c:156:13: warning: Deprecated pre-processor symbol, replace with 
  156 |  object->priv = G_TYPE_INSTANCE_GET_PRIVATE (object, GSTM_TYPE_APPLICATION, GstmPrivate);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
depbase=`echo callbacks.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT callbacks.o -MD -MP -MF $depbase.Tpo -c -o callbacks.o callbacks.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo interface.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT interface.o -MD -MP -MF $depbase.Tpo -c -o interface.o interface.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo conffile.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT conffile.o -MD -MP -MF $depbase.Tpo -c -o conffile.o conffile.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fniface.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT fniface.o -MD -MP -MF $depbase.Tpo -c -o fniface.o fniface.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fnssht.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT fnssht.o -MD -MP -MF $depbase.Tpo -c -o fnssht.o fnssht.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo support.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT support.o -MD -MP -MF $depbase.Tpo -c -o support.o support.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo systray.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -MT systray.o -MD -MP -MF $depbase.Tpo -c -o systray.o systray.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""/tmp/gstm/src"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/gstm"\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -I/usr/include/libxml2  -g -O2 -Wl,--export-dynamic  -o gstm main.o gstm.o callbacks.o interface.o conffile.o fniface.o fnssht.o support.o systray.o -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lxml2  
libtool: link: gcc -Wall -g -Og -ggdb -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -DPACKAGE_SRC_DIR=\"/tmp/gstm/src\" -DPACKAGE_DATA_DIR=\"/usr/local/share/gstm\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/libxml2 -g -O2 -Wl,--export-dynamic -o gstm main.o gstm.o callbacks.o interface.o conffile.o fniface.o fnssht.o support.o systray.o  -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lxml2 -pthread
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/main.h:25: multiple definition of `app'; main.o:/tmp/gstm/src/main.h:25: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/main.h:28: multiple definition of `gstmui'; main.o:/tmp/gstm/src/main.h:28: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/main.h:26: multiple definition of `gstmdir'; main.o:/tmp/gstm/src/main.h:26: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/systray.h:24: multiple definition of `ci'; main.o:/tmp/gstm/src/systray.h:24: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/main.h:27: multiple definition of `gstmpixmaps'; main.o:/tmp/gstm/src/main.h:27: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: gstm.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/main.h:28: multiple definition of `gstmui'; main.o:/tmp/gstm/src/main.h:28: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/main.h:27: multiple definition of `gstmpixmaps'; main.o:/tmp/gstm/src/main.h:27: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/main.h:26: multiple definition of `gstmdir'; main.o:/tmp/gstm/src/main.h:26: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/main.h:25: multiple definition of `app'; main.o:/tmp/gstm/src/main.h:25: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: callbacks.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/main.h:28: multiple definition of `gstmui'; main.o:/tmp/gstm/src/main.h:28: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/main.h:27: multiple definition of `gstmpixmaps'; main.o:/tmp/gstm/src/main.h:27: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/main.h:26: multiple definition of `gstmdir'; main.o:/tmp/gstm/src/main.h:26: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/main.h:25: multiple definition of `app'; main.o:/tmp/gstm/src/main.h:25: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: interface.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/main.h:26: multiple definition of `gstmdir'; main.o:/tmp/gstm/src/main.h:26: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/main.h:28: multiple definition of `gstmui'; main.o:/tmp/gstm/src/main.h:28: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/main.h:27: multiple definition of `gstmpixmaps'; main.o:/tmp/gstm/src/main.h:27: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/main.h:25: multiple definition of `app'; main.o:/tmp/gstm/src/main.h:25: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: conffile.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: fniface.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: fnssht.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/main.h:27: multiple definition of `gstmpixmaps'; main.o:/tmp/gstm/src/main.h:27: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/main.h:28: multiple definition of `gstmui'; main.o:/tmp/gstm/src/main.h:28: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/main.h:26: multiple definition of `gstmdir'; main.o:/tmp/gstm/src/main.h:26: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/main.h:25: multiple definition of `app'; main.o:/tmp/gstm/src/main.h:25: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: support.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:57: multiple definition of `maindialog'; main.o:/tmp/gstm/src/gstm.h:57: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/systray.h:24: multiple definition of `ci'; main.o:/tmp/gstm/src/systray.h:24: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:66: multiple definition of `tunnellist_store'; main.o:/tmp/gstm/src/gstm.h:66: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:59: multiple definition of `gSTMtunnels'; main.o:/tmp/gstm/src/conffile.h:59: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/main.h:28: multiple definition of `gstmui'; main.o:/tmp/gstm/src/main.h:28: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/main.h:27: multiple definition of `gstmpixmaps'; main.o:/tmp/gstm/src/main.h:27: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/main.h:26: multiple definition of `gstmdir'; main.o:/tmp/gstm/src/main.h:26: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/main.h:25: multiple definition of `app'; main.o:/tmp/gstm/src/main.h:25: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:64: multiple definition of `tunlist'; main.o:/tmp/gstm/src/gstm.h:64: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:63: multiple definition of `statusbar'; main.o:/tmp/gstm/src/gstm.h:63: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:61: multiple definition of `propertiesdialog'; main.o:/tmp/gstm/src/gstm.h:61: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:60: multiple definition of `tundialog'; main.o:/tmp/gstm/src/gstm.h:60: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:59: multiple definition of `newdialog'; main.o:/tmp/gstm/src/gstm.h:59: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:58: multiple definition of `aboutdialog'; main.o:/tmp/gstm/src/gstm.h:58: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:56: multiple definition of `builder'; main.o:/tmp/gstm/src/gstm.h:56: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:54: multiple definition of `maindiag_height'; main.o:/tmp/gstm/src/gstm.h:54: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/gstm.h:53: multiple definition of `maindiag_width'; main.o:/tmp/gstm/src/gstm.h:53: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:62: multiple definition of `noerrors'; main.o:/tmp/gstm/src/conffile.h:62: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:61: multiple definition of `activeCount'; main.o:/tmp/gstm/src/conffile.h:61: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:60: multiple definition of `tunnelCount'; main.o:/tmp/gstm/src/conffile.h:60: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:57: multiple definition of `sshtunnelPtr'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:57: multiple definition of `stunnel'; main.o:/tmp/gstm/src/conffile.h:57: first defined here
/usr/bin/ld: systray.o:/tmp/gstm/src/conffile.h:39: multiple definition of `portredirPtr'; main.o:/tmp/gstm/src/conffile.h:39: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:484: gstm] Error 1
make[2]: Leaving directory '/tmp/gstm/src'
make[1]: *** [Makefile:536: all-recursive] Error 1
make[1]: Leaving directory '/tmp/gstm'
make: *** [Makefile:424: all] Error 2

Atatched config.log here https://gist.github.com/xvybihal/66e983d741c97563886e9f953eb1e092

@dallenwilson
Copy link
Owner

Looks like gcc is now enforcing proper declaration of global variables in header files as of version 10, which arch has upgraded to. That's good. gSTM is not declaring them properly, and never has. That's bad.

As a quick fix, you can try adding -fcommon to your linker flags. I'll make some time this week to fix it properly.

@dallenwilson
Copy link
Owner

Please try building from the new fno-common branch, and let me know if it works for you. It compiles on my end, but I did not do much testing beyond that.

@xvybihal
Copy link
Author

xvybihal commented Jun 4, 2020

Thanks for the quick response and also the explanation.

I have tested the fno-common branch, and it indeed compiled on two separate boxes, and seems to work fine. Thanks again! Great work.

@LaurentFough
Copy link

LaurentFough commented Jun 4, 2020

@dallenwilson,

  • this "As a quick fix, you can try adding -fcommon to your linker flags. I'll make some time this week to fix it properly.", works as expected.

  • the "fno-common" branch compiles as expected as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants