Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410455 - x11-themes/gtk-engines-2.20.2 - In file included from ./src/animation.c:31:0: /usr/include/glib-2.0/glib/gtimer.h:28:2: Fehler: #error "Only <glib.h> can be included directly."
Summary: x11-themes/gtk-engines-2.20.2 - In file included from ./src/animation.c:31:0:...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Keywords: PATCH
Depends on:
Blocks: glib-2.32
  Show dependency tree
Reported: 2012-04-01 18:00 UTC by Tom-Steve Watzke
Modified: 2012-04-02 04:34 UTC (History)
0 users

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

gtk-engines-2.20.2 patch for fixing the incorrect include (gtk-engines-2.20.2_clearlooks.patch,472 bytes, text/plain)
2012-04-01 18:03 UTC, Tom-Steve Watzke

Note You need to log in before you can comment on or make changes to this bug.
Description Tom-Steve Watzke 2012-04-01 18:00:18 UTC
I am not exactly sure which dependency is causing this error or whether it is caused by a deeper check of the current glib version 2.32.0. Today I was updating to the new GNOME version and was searching for a bug of the window borders.

I first unmasked the base GNOME ebuilds and after clutter compile errors, I masked clutter based ebuilds again. While searching for the windows border error, not displaying the icons, I was emerging gtk-engines ...

Reproducible: Always

Steps to Reproduce:
(1. unmask gnome builds except of clutter)
(2. emerge -uDN world)
3. emerge gtk-engines
Actual Results:  
>>> Compiling source in /var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2 ...
make -j9 
Making all in engines
make[1]: Entering directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines'
Making all in support
make[2]: Entering directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/support'
make  all-am
make[3]: Entering directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/support'
  CC     cairo-support.lo
  CC     widget-information.lo
make[3]: Leaving directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/support'
make[2]: Leaving directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/support'
Making all in clearlooks
make[2]: Entering directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/clearlooks'
  CC     clearlooks_rc_style.lo
  CC     clearlooks_style.lo
  CC     support.lo
  CC     clearlooks_theme_main.lo
  CC     animation.lo
  CC     clearlooks_draw.lo
  CC     clearlooks_draw_glossy.lo
  CC     clearlooks_draw_inverted.lo
  CC     clearlooks_draw_gummy.lo
In file included from ./src/animation.c:31:0:
/usr/include/glib-2.0/glib/gtimer.h:28:2: Fehler: #error "Only <glib.h> can be included directly."
make[2]: *** [animation.lo] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Leaving directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines/clearlooks'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/x11-themes/gtk-engines-2.20.2/work/gtk-engines-2.20.2/engines'
make: *** [all-recursive] Fehler 1
emake failed
 * ERROR: x11-themes/gtk-engines-2.20.2 failed (compile phase):
 *   compile failure
 * Call stack:
 *, line   85:  Called src_compile
 *   environment, line 2685:  Called gnome2_src_compile
 *   environment, line 2048:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"

# emerge --info gtk-engines
Portage (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r2, 3.1.6-gentoo x86_64)
                        System Settings
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 31 Mar 2012 18:30:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r4, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x11
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA Nero-EULA-US dlj-1.1 sun-bcla-java-vm skype-eula googleearth AdobeFlash-10.1 AdobeFlash-10.3 Oracle-BCLA-JavaSE google-chrome PUEL"
CFLAGS="-march=core2 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FEATURES="assume-digests binpkg-logs candy distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="64bit X a52 aac aalib acl acpi alsa amd64 ansi anthy ao apache2 apm artworkextra asf audacious bash-completion bluetooth branding bzip2 cairo cdda cddax cddb cdparanoia cdr chm cli colord consolekit cpudetection cracklib crypt cups curl cxx data dbus dga djvu dri dts dv dvd dvdr dvi dxr3-audio-denoise ecl eds emboss encode esd evo exif fam fame fat fbcon fbcondecor ffmpeg fftw firefox firefox3 flac flash fortran fping ftp gdbm gdu gedit ggi gif gmp gnome gnome-keyring gnome-online-accounts gnome-print gnomecanvas gnomecd gnomedb gnutls gpac gpg gpm gs gsl gstreamer gtk gtk3 h224 h281 h323 handbook hddtemp hdri httpd iconv id3tag imagemagick int64 ipv6 jadetex java java6 javamail javascript jbig jce john jpeg jpgraph kpathsea ladspa lame lapack latex lcms libnotify libsamplerate libvisual libwww live lm_sensors lzo mad matroska md5sum mdnsresponder-compat mikmod mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack nano-syntax nautilus ncurses networking nls nptl nptlonly nsplugin odbc ogg openal opengl openmp pam pango pari pcre pdf perl php plotutils png pnm policykit ppds pppd print pulseaudio python qt3support qt4 quicktime rar readline reflection reiserfs rtc samba sdl semantic-desktop sensord session sftp sndfile socialweb speex spell spl sql sqlite3 srt sse sse2 sse3 sse4a sse5 ssh ssl ssse3 startup-notification stream subversion svg sysfs t1lib tcl tcpd tga theora threads thumbnail tiff truetype udev unicode usb vorbis weather webkit wmf x264 xcb xetex xinerama xinetd xml xmlrpc xorg xulrunner xv xvfb xvid xvmc zlib" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon net" USERLAND="GNU" VIDEO_CARDS="radeon" 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"

                        Package Settings

x11-themes/gtk-engines-2.20.2 was built with the following:
USE="(multilib) -accessibility -lua"
Comment 1 Tom-Steve Watzke 2012-04-01 18:03:57 UTC
Created attachment 307399 [details]
gtk-engines-2.20.2 patch for fixing the incorrect include

After analysing the error, I made this patch (see attachment) and added following part to the ebuild gtk-engines-2.20.2.ebuild:

src_unpack() {
    unpack ${A}
    cd "${S}"
    epatch "${FILESDIR}"/"${P}"_clearlooks.patch

Finally it is compiling.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-02 04:34:10 UTC
Thanks for reporting. Fixed in cvs without a revision bump.

>  02 Apr 2012; Alexandre Rostovtsev <>
>  -files/gtk-engines-2.18.3-fix-system-lua-check.patch,
>  -files/gtk-engines-2.20.1-evolution-workaround.patch,
>  -files/gtk-engines-2.20.1-xfce-workaround.patch, gtk-engines-2.20.2.ebuild,
>  +files/gtk-engines-2.20.2-glib.h.patch:
>  Fix building with glib-2.32 (bug #410455, thanks to Tom-Steve Watzke). Drop
>  stale patches.