Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 323991

Summary: gnome-extra/evolution-exchange-2.30.1 fails with error "Only <gtk/gtk.h> can be included directly."
Product: Gentoo Linux Reporter: Dan Coats <admin>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: timbers2k
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.gnome.org/show_bug.cgi?id=621617
Whiteboard:
Package list:
Runtime testing required: ---

Description Dan Coats 2010-06-14 19:49:08 UTC
evolution-exchange-2.30.1 fails with error "Only <gtk/gtk.h> can be included directly."

Reproducible: Always

Steps to Reproduce:
1.emerge -1av =gnome-extra/evolution-exchange-2.30.1

Actual Results:  
 .deps/liborg_gnome_exchange_operations_la-exchange-delegates-user.Tpo -c -o liborg_gnome_exchange_operations_la-exchange-delegates-user.lo `test -f 'exchange-delegates-user.c' || echo './'`exchange-delegates-user.c
In file included from /usr/include/unique-1.0/unique/uniqueapp.h:27,
                 from /usr/include/unique-1.0/unique/unique.h:24,
                 from /usr/include/evolution-2.30/shell/e-shell.h:31,
                 from exchange-operations.c:30:
/usr/include/gtk-2.0/gtk/gtkwindow.h:28:2: error: #error "Only <gtk/gtk.h> can be included directly."
In file included from /usr/include/unique-1.0/unique/uniquebackend.h:26,
                 from /usr/include/unique-1.0/unique/unique.h:25,
                 from /usr/include/evolution-2.30/shell/e-shell.h:31,
                 from exchange-operations.c:30:
/usr/include/gtk-2.0/gdk/gdkscreen.h:25:2: error: #error "Only <gdk/gdk.h> can be included directly."
In file included from /usr/include/unique-1.0/unique/uniqueapp.h:27,
                 from /usr/include/unique-1.0/unique/unique.h:24,
                 from /usr/include/evolution-2.30/shell/e-shell.h:31,
                 from exchange-config-listener.c:42:
/usr/include/gtk-2.0/gtk/gtkwindow.h:28:2: error: #error "Only <gtk/gtk.h> can be included directly."
In file included from /usr/include/unique-1.0/unique/uniquebackend.h:26,
                 from /usr/include/unique-1.0/unique/unique.h:25,
                 from /usr/include/evolution-2.30/shell/e-shell.h:31,
                 from exchange-config-listener.c:42:
/usr/include/gtk-2.0/gdk/gdkscreen.h:25:2: error: #error "Only <gdk/gdk.h> can be included directly."
make[3]: *** [liborg_gnome_exchange_operations_la-exchange-operations.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -fno-strict-aliasing -I../server/lib -I../server/storage -I../server/lib -DORBIT2=1 -pthread -I/usr/include/evolution-data-server-2.30 -I/usr/include/dbus-1.0 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/libsoup-2.4 -I/usr/include/orbit-2.0 -I/usr/lib/dbus-1.0/include -I/usr/include/ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/evolution-data-server-2.30/groupwise -DORBIT2=1 -pthread -I/usr/include/evolution-2.30 -I/usr/include/evolution-data-server-2.30 -I/usr/include/libxml2 -I/usr/include/unique-1.0 -I/usr/include/libgtkhtml-3.14 -I/usr/include/libgtkhtml-3.14/editor -I/usr/include/libgnomecanvas-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/gconf/2 -I/usr/include/libsoup-2.4 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/enchant -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -DORBIT2=1 -pthread -I/usr/include/evolution-2.30 -I/usr/include/gconf/2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/gtk-2.0 -I/usr/include/evolution-data-server-2.30 -I/usr/include/unique-1.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/startup-notification-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -DORBIT2=1 -pthread -I/usr/include/evolution-2.30 -I/usr/include/evolution-data-server-2.30 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/gtk-2.0 -I/usr/include/unique-1.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/startup-notification-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/nss -I/usr/include/nspr -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -DLDAP_DEPRECATED -march=native -O2 -pipe -fomit-frame-pointer -MT liborg_gnome_exchange_operations_la-exchange-change-password.lo -MD -MP -MF .deps/liborg_gnome_exchange_operations_la-exchange-change-password.Tpo -c exchange-change-password.c  -fPIC -DPIC -o .libs/liborg_gnome_exchange_operations_la-exchange-change-password.o
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -fno-strict-aliasing -I../server/lib -I../server/storage -I../server/lib -DORBIT2=1 -pthread -I/usr/include/evolution-data-server-2.30 -I/usr/include/dbus-1.0 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/libsoup-2.4 -I/usr/include/orbit-2.0 -I/usr/lib/dbus-1.0/include -I/usr/include/ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/evolution-data-server-2.30/groupwise -DORBIT2=1 -pthread -I/usr/include/evolution-2.30 -I/usr/include/evolution-data-server-2.30 -I/usr/include/libxml2 -I/usr/include/unique-1.0 -I/usr/include/libgtkhtml-3.14 -I/usr/include/libgtkhtml-3.14/editor -I/usr/include/libgnomecanvas-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/gconf/2 -I/usr/include/libsoup-2.4 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/enchant -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -DORBIT2=1 -pthread -I/usr/include/evolution-2.30 -I/usr/include/gconf/2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/gtk-2.0 -I/usr/include/evolution-data-server-2.30 -I/usr/include/unique-1.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/startup-notification-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -DORBIT2=1 -pthread -I/usr/include/evolution-2.30 -I/usr/include/evolution-data-server-2.30 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-desktop-2.0 -I/usr/include/gtk-2.0 -I/usr/include/unique-1.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/startup-notification-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/nss -I/usr/include/nspr -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -DLDAP_DEPRECATED -march=native -O2 -pipe -fomit-frame-pointer -MT liborg_gnome_exchange_operations_la-exchange-delegates-user.lo -MD -MP -MF .deps/liborg_gnome_exchange_operations_la-exchange-delegates-user.Tpo -c exchange-delegates-user.c  -fPIC -DPIC -o .libs/liborg_gnome_exchange_operations_la-exchange-delegates-user.o
make[3]: *** [liborg_gnome_exchange_operations_la-exchange-config-listener.lo] Error 1
mv -f .deps/liborg_gnome_exchange_operations_la-exchange-change-password.Tpo .deps/liborg_gnome_exchange_operations_la-exchange-change-password.Plo
mv -f .deps/liborg_gnome_exchange_operations_la-exchange-delegates-user.Tpo .deps/liborg_gnome_exchange_operations_la-exchange-delegates-user.Plo
make[3]: Leaving directory `/var/tmp/portage/gnome-extra/evolution-exchange-2.30.1/work/evolution-exchange-2.30.1/eplugin'
make[2]: *** [all] Error 2
rm org-gnome-exchange-operations.eplug.in
make[2]: Leaving directory `/var/tmp/portage/gnome-extra/evolution-exchange-2.30.1/work/evolution-exchange-2.30.1/eplugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/evolution-exchange-2.30.1/work/evolution-exchange-2.30.1'
make: *** [all] Error 2
 * ERROR: gnome-extra/evolution-exchange-2.30.1 failed:
 *   compile failure
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 3106:  Called gnome2_src_compile
 *   environment, line 2452:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *
 * If you need support, post the output of 'emerge --info =gnome-extra/evolution-exchange-2.30.1',
 * the complete build log and the output of 'emerge -pqv =gnome-extra/evolution-exchange-2.30.1'.
 * The complete build log is located at '/var/log/portage/gnome-extra:evolution-exchange-2.30.1:20100614-193513.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/evolution-exchange-2.30.1/temp/environment'.
 * S: '/var/tmp/portage/gnome-extra/evolution-exchange-2.30.1/work/evolution-exchange-2.30.1'

>>> Failed to emerge gnome-extra/evolution-exchange-2.30.1, Log file:

>>>  '/var/log/portage/gnome-extra:evolution-exchange-2.30.1:20100614-193513.log'

Expected Results:  
compile successfully

# emerge --info =gnome-extra/evolution-exchange-2.30.1
Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Xeon-R-_CPU_3050_@_2.13GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Jun 2010 10:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/openv/netbackup/bp.conf /usr/openv/netbackup/exclude_list /usr/openv/netbackup/nblog.conf /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi adns aiglx aim alsa apache2 arts audiofile avahi bash-completion bcmath berkdb bidi bindinst branding browserplugin bzip2 cairo calendar caps cdr cli clucene consolekit cracklib crypt cups curlwrappers cxx dbus dedicated dga dio divx divx4linux dlloader dri dts dvd dvdr emacs emacs-w3 emboss emerald encode erandom escreen ethereal etwin examples exchange exif exiv2 expat fam fastcgi fbcon fbcondecor ffmpeg firefox firefox3 flac font fortran ftp gd gdbm gif glitz glut gnusetup gnutls gpm gs gtk gtkhtml hal hardened iconv imap immqt-bc inifile innodb ipod ipv6 ithreads java javascript jp2 jpeg jpeg2k kde kde4 kerberos lcms ldap libcaca libclamv libffi libnotify live lm_sensors lzo mad maildir mailwrapper mikmod milter mime ming mmap mmx mng modplug modules mono motif mozbranding mozilla mp3 mp4 mpeg mpi msn mudflap musicbrainz mysql ncurses nepomuk nls nptl nptlonly nsplugin nvidia oav objc ogg opengl openmp oracle oscar oss pam pango pcre pdf perl php pic png portaudio posix ppds pppd python qt3support qt4 raptor readline realmedia redland reflection samba sdl semantic-desktop session shared spell spl sqlite sse ssl startup-notification svg symlink sysfs tcltktcpd tcpd test threads tiff truetype type1 unicode urandom usb usepackagedmakefiles userlocales vcd vhosts videos vorbis webkit win32codecs wma wmf wxwindows x264 x86 xcb xcomposite xinerama xml xorg xpm xprint xrandr xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="au8830" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tim Ryan 2010-06-14 19:57:38 UTC
I'm on ~amd64 with the same error. I'll post --info if you want it, but I didn't want to waste the space.
Comment 2 Rafał Mużyło 2010-06-14 20:17:26 UTC
Well, while the error lies on upstream side,
as released tarballs shouldn't include 
'-DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES'
(that should be only in maintainer mode),
the solution would probably be an update of libunique.


Comment 3 Dan Coats 2010-06-14 20:25:14 UTC
I did see where libunique had solved this for other apps in the past, libunique-1.0.8 does not work in this case.;
Comment 4 Rafał Mużyło 2010-06-14 21:30:46 UTC
Try something more recent - 1.1.6 is latest, but 1.1.2
should suffice.
Comment 5 Pacho Ramos gentoo-dev 2010-06-15 08:20:24 UTC
+  15 Jun 2010; Pacho Ramos <pacho@gentoo.org>
+  evolution-exchange-2.30.1.ebuild:
+  Stop passing DISABLE_DEPRECATED and DISABLE_SINGLE_INCLUDES (bug #323991
+  reported by Dan Coats).