Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 569606 - x11-misc/easystroke-0.6.0-r1 fails to build with libsigc++-2.6
Summary: x11-misc/easystroke-0.6.0-r1 fails to build with libsigc++-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libsigc++-2.6
  Show dependency tree
 
Reported: 2015-12-24 09:33 UTC by Pacho Ramos
Modified: 2020-02-08 13:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
easystroke-0.6.0-r1:20151224-093140.log.gz (easystroke-0.6.0-r1:20151224-093140.log.gz,4.43 KB, application/gzip)
2015-12-24 09:33 UTC, Pacho Ramos
Details
build.log.gz without std=cxx11 (easystroke-0.6.0-r1:20151231-112342.log.gz,668.96 KB, application/gzip)
2015-12-31 11:24 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-12-24 09:33:58 UTC
Created attachment 420630 [details]
easystroke-0.6.0-r1:20151224-093140.log.gz

After adding append-cxxflags -std=c++11 it fails later with

/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -MT actions.o -MMD -MP -MF actions.Po -o actions.o -c actions.cc
x86_64-pc-linux-gnu-gcc -Wall -std=c99   -MT stroke.o -MMD -MP -MF stroke.Po -o stroke.o -c stroke.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-stack-protector -Wall  -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGETTEXT_PACKAGE='"easystroke"'  -MT cellrenderertextish.o -MMD -MP -MF cellrenderertextish.Po -o cellrenderertextish.o -c cellrenderertextish.c
cellrenderertextish.c: In function 'cell_renderer_textish_class_init':
cellrenderertextish.c:422:132: warning: assignment from incompatible pointer type
  GTK_CELL_RENDERER_CLASS (klass)->start_editing = cell_renderer_textish_real_start_editing;
                                                                                                                                    ^
cellrenderertextish.c: In function 'cell_editable_dummy_finalize':
cellrenderertextish.c:521:22: warning: variable 'self' set but not used [-Wunused-but-set-variable]
  CellEditableDummy * self;
                      ^
cellrenderertextish.c: In function 'cell_editable_accel_construct':
cellrenderertextish.c:606:2: warning: 'gtk_misc_set_alignment' is deprecated (declared at /usr/include/gtk-3.0/gtk/deprecated/gtkmisc.h:72) [-Wdeprecated-declarations]
  gtk_misc_set_alignment ((GtkMisc*) label, 0.0f, 0.5f);
  ^
cellrenderertextish.c:610:2: warning: 'gtk_style_context_get_background_color' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkstylecontext.h:1160): Use 'gtk_render_background' instead [-Wdeprecated-declarations]
  gtk_style_context_get_background_color (_tmp7_, GTK_STATE_FLAG_SELECTED, &_tmp8_);
  ^
cellrenderertextish.c:611:2: warning: 'gtk_widget_override_background_color' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkwidget.h:1137) [-Wdeprecated-declarations]
  gtk_widget_override_background_color ((GtkWidget*) self, GTK_STATE_FLAG_NORMAL, &_tmp8_);
  ^
cellrenderertextish.c:615:2: warning: 'gtk_widget_override_color' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkwidget.h:1133) [-Wdeprecated-declarations]
  gtk_widget_override_color ((GtkWidget*) label, GTK_STATE_FLAG_NORMAL, &_tmp11_);
  ^
cellrenderertextish.c: In function 'cell_editable_accel_real_start_editing':
cellrenderertextish.c:652:2: warning: 'gdk_keyboard_grab' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:93): Use 'gdk_device_grab' instead [-Wdeprecated-declarations]
  gdk_keyboard_grab (_tmp4_, FALSE, _tmp5_);
  ^
cellrenderertextish.c: In function 'cell_editable_accel_on_editing_done':
cellrenderertextish.c:720:2: warning: 'gdk_keyboard_ungrab' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkmain.h:102): Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations]
  gdk_keyboard_ungrab ((guint32) GDK_CURRENT_TIME);
  ^
cellrenderertextish.c: In function 'cell_editable_combo_construct':
cellrenderertextish.c:897:8: warning: unused variable '_item_collection_size_' [-Wunused-variable]
   gint _item_collection_size_ = 0;
        ^
cellrenderertextish.c:896:8: warning: variable 'item_collection_length1' set but not used [-Wunused-but-set-variable]
   gint item_collection_length1 = 0;
        ^
echo "const char *gui_buffer = \"\\" > gui.c
sed 's/"GtkWindow"/"GtkApplicationWindow"/' gui.glade | sed 's/"/\\"/g' | sed 's/ *\(.*\)/\1\\n\\/' >> gui.c
echo "\";" >> gui.c
mkdir -p po/es/LC_MESSAGES
make: Circular version <- version.o dependency dropped.
msgfmt -c po/es.po -o po/es/LC_MESSAGES/easystroke.mo
po/es.po:7: warning: header field 'Language' missing in header
echo 'const char *version_string = "0.6.0";' | x86_64-pc-linux-gnu-g++ -o version.o -c -xc++ -
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-stack-protector -Wall  -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGETTEXT_PACKAGE='"easystroke"'  -MT gui.o -MMD -MP -MF gui.Po -o gui.o -c gui.c
intltool-merge po/ -d -u easystroke.desktop.in easystroke.desktop
Merging translations into easystroke.desktop.
echo "const char *desktop_file = \"\\" > desktop.c
sed 's/Exec=easystroke/Exec=%1$s/' easystroke.desktop | sed 's/"/\\"/g' | sed 's/.*/&\\n\\/' >> desktop.c
echo "\";" >> desktop.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-stack-protector -Wall  -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGETTEXT_PACKAGE='"easystroke"'  -MT desktop.o -MMD -MP -MF desktop.Po -o desktop.o -c desktop.c
actions.cc: In constructor 'TreeViewMulti::TreeViewMulti()':
actions.cc:57:39: error: 'group' is not a member of 'sigc'
  get_selection()->set_select_function(sigc::group(&negate, sigc::ref(pending)));
                                       ^
Makefile:72: recipe for target 'actions.o' failed
make: *** [actions.o] Error 1
make: *** Waiting for unfinished jobs....
Comment 1 Pacho Ramos gentoo-dev 2015-12-24 09:35:50 UTC
I see fedora is using std=c99
http://pkgs.fedoraproject.org/cgit/easystroke.git/tree/easystroke.spec
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-24 12:39:45 UTC
(In reply to Pacho Ramos from comment #0)
> Created attachment 420630 [details]
> easystroke-0.6.0-r1:20151224-093140.log.gz
> 
> After adding append-cxxflags -std=c++11 it fails later with

What happens when you DON'T add that?
Comment 3 Pacho Ramos gentoo-dev 2015-12-24 13:11:55 UTC
It fails with the usual error message about 
#error This file requires compiler and library support for the ISO C++ 2011 standard
Comment 4 Pacho Ramos gentoo-dev 2015-12-29 11:20:44 UTC
Maybe this upstream commit (or a newer snapshot) would help:
https://github.com/thjaeger/easystroke/commit/30a879fc81c4093c0a0c66116042079f11d246ab
Comment 5 Pacho Ramos gentoo-dev 2015-12-31 11:24:39 UTC
Created attachment 421308 [details]
build.log.gz without std=cxx11
Comment 6 Pacho Ramos gentoo-dev 2015-12-31 11:33:55 UTC
[master 0f8cac5] x11-misc/easystroke: Fix building with latest glibmm/libsigc++ with ArchLinux patch (#569606)
 2 files changed, 83 insertions(+)
 create mode 100644 x11-misc/easystroke/easystroke-0.6.0-r2.ebuild
 create mode 100644 x11-misc/easystroke/files/easystroke-0.6.0-cxx11.patch