Bug#666868: libatk1.0-dev: FTBFS when building emacs23 due to atk: error related to G_DEPRECATED_FOR

Vincent Lefevre vincent at vinc17.net
Sun Apr 1 23:36:28 UTC 2012


Package: libatk1.0-dev
Version: 2.4.0-1
Severity: serious
Justification: FTBFS

When building emacs23 from source, I get an error on:

gcc -c -D_FORTIFY_SOURCE=2 -Demacs -DHAVE_CONFIG_H  -I. -I/home/vinc17/software/emacs23-23.4+1/debian/build-x/src -D_BSD_SOURCE -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/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/alsa -pthread -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -DDEBIAN -O2 -I/usr/include/freetype2 -I/usr/include/freetype2 -MMD -MF deps/dispnew.d dispnew.c
In file included from /usr/include/atk-1.0/atk/atk.h:25:0,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:40,
                 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 xterm.h:44,
                 from dispnew.c:56:
/usr/include/atk-1.0/atk/atkobject.h:573:1: warning: return type defaults to ‘int’ [-Wreturn-type]
/usr/include/atk-1.0/atk/atkobject.h: In function ‘G_DEPRECATED_FOR’:
/usr/include/atk-1.0/atk/atkobject.h:575:1: error: expected declaration specifiers before ‘G_DEPRECATED_FOR’
In file included from /usr/include/atk-1.0/atk/atk.h:26:0,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:40,
                 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 xterm.h:44,
                 from dispnew.c:56:
/usr/include/atk-1.0/atk/atkaction.h:47:27: error: storage class specified for parameter ‘AtkAction’
/usr/include/atk-1.0/atk/atkaction.h:49:32: error: storage class specified for parameter ‘AtkActionIface’
/usr/include/atk-1.0/atk/atkaction.h:55:49: error: expected declaration specifiers or ‘...’ before ‘AtkAction’
[...]

The corresponding code in /usr/include/atk-1.0/atk/atkobject.h is:

#ifndef ATK_DISABLE_DEPRECATED
G_DEPRECATED_FOR(atk_component_get_layer)
AtkLayer                atk_object_get_layer                      (AtkObject *accessible);
G_DEPRECATED_FOR(atk_component_get_mdi_zorder)
gint                    atk_object_get_mdi_zorder                 (AtkObject *accessible);
#endif /* ATK_DISABLE_DEPRECATED */

The problem seems to be that neither ATK_DISABLE_DEPRECATED nor
G_DEPRECATED_FOR is defined...

After a search on Google, I've found:

  http://mail.gnome.org/archives/orca-list/2012-March/msg00147.html

which says (if I understand correctly) that atk need a recent glib
version. This would mean that some versioned dependency is missing.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libatk1.0-dev depends on:
ii  gir1.2-atk-1.0  2.4.0-1
ii  libatk1.0-0     2.4.0-1
ii  libglib2.0-dev  2.30.2-6
ii  pkg-config      0.26-1

libatk1.0-dev recommends no packages.

libatk1.0-dev suggests no packages.

-- no debconf information





More information about the pkg-gnome-maintainers mailing list