FTBFS: error: 'GTK_STOCK_OK' undeclared (first use in this function)

Bug #1277714 reported by Andreas Moog on 2014-02-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcin (Ubuntu)
High
Unassigned

Bug Description

gcc -x c -DUNIX=1 -g -O -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12 -I./IMdkit/include -I./im-client -DDEBUG="0" -DGCIN_TABLE_DIR=\"/usr/share/gcin/table\" -DGCIN_OGG_DIR=\"/usr/share/gcin/ogg\" -DDOC_DIR=\"/usr/share/doc/gcin-2.7.6.1\" -DGCIN_ICON_DIR=\"/usr/share/icons/gcin\" -DGCIN_SCRIPT_DIR=\"/usr/share/gcin/script\" -DGCIN_BIN_DIR=\"/usr/bin\" -DSYS_ICON_DIR=\"/usr/share/icons\" -DFREEBSD=0 -DMAC_OS=0 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DUSE_XIM=1 -DTRAY_ENABLED=1 -DUSE_TSIN=1 -DUSE_GCB=1 -c win-save-phrase.cpp
win-save-phrase.cpp: In function 'create_win_save_phrase':
win-save-phrase.cpp:176:3: warning: 'gtk_button_new_from_stock' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
   GtkWidget *button_ok = gtk_button_new_from_stock (GTK_STOCK_OK);
   ^
win-save-phrase.cpp:176:53: error: 'GTK_STOCK_OK' undeclared (first use in this function)
   GtkWidget *button_ok = gtk_button_new_from_stock (GTK_STOCK_OK);
                                                     ^
win-save-phrase.cpp:176:53: note: each undeclared identifier is reported only once for each function it appears in
win-save-phrase.cpp:179:3: warning: 'gtk_button_new_from_stock' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
   GtkWidget *button_cancel = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
   ^
win-save-phrase.cpp:179:57: error: 'GTK_STOCK_CANCEL' undeclared (first use in this function)
   GtkWidget *button_cancel = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
                                                         ^
make[1]: *** [win-save-phrase.o] Error 1
make[1]: Leaving directory `/build/buildd/gcin-2.7.6.1+dfsg'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20140201-0154
FAILED [dpkg-buildpackage died]

Full log at https://launchpadlibrarian.net/164503691/buildlog_ubuntu-trusty-i386.gcin_2.7.6.1%2Bdfsg-1ubuntu1_FAILEDTOBUILD.txt.gz

Andreas Moog (ampelbein) wrote :

This is fixed in the current Ubuntu development release.

Changed in gcin (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers