Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264016 - kde-base/plasma-workspace-4.2.1-r1 fails to compile
Summary: kde-base/plasma-workspace-4.2.1-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-27 22:40 UTC by Laerte Barbalho Júnior
Modified: 2009-04-06 11:13 UTC (History)
1 user (show)

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


Attachments
Patch to allow plasma-workspace-4.2.1-r1 to compile (4.2.1-plasma-compile-fix.patch,444 bytes, patch)
2009-03-27 22:42 UTC, Laerte Barbalho Júnior
Details | Diff
Patch for fixx11h.h (fixx11h.h.diff,247 bytes, patch)
2009-04-02 21:39 UTC, DavidD
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laerte Barbalho Júnior 2009-03-27 22:40:27 UTC
plasma-workspace-4.2.1-r1 fails to compile with the following error:

In file included from /var/tmp/portage/kde-base/plasma-workspace-4.2.1-r1/work/plasma-workspace-4.2.1/plasma/shells/desktop/plasmaapp.cpp:73:                   
/usr/include/X11/extensions/Xrender.h:75: error: reference to 'Bool' is ambiguous                                                                               
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:75: error: reference to 'Bool' is ambiguous                                                                               
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:75: error: 'Bool' does not name a type                                                                                    
/usr/include/X11/extensions/Xrender.h:80: error: reference to 'Bool' is ambiguous                                                                               
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:80: error: reference to 'Bool' is ambiguous                                                                               
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:80: error: 'Bool' does not name a type                                                                                    
/usr/include/X11/extensions/Xrender.h:203: error: reference to 'Bool' is ambiguous                                                                              
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:203: error: reference to 'Bool' is ambiguous                                                                              
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:203: error: 'Bool' does not name a type                                                                                   
/usr/include/X11/extensions/Xrender.h:213: error: reference to 'Bool' is ambiguous                                                                              
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:213: error: reference to 'Bool' is ambiguous                                                                              
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool                                                                                            
/usr/include/fixx11h.h:94: error:                 typedef X::XBool X::Bool                                                                                      
/usr/include/X11/extensions/Xrender.h:213: error: 'Bool' does not name a type                                                                                   
/var/tmp/portage/kde-base/plasma-workspace-4.2.1-r1/work/plasma-workspace-4.2.1/plasma/shells/desktop/plasmaapp.cpp: In function 'void checkComposite()':       
/var/tmp/portage/kde-base/plasma-workspace-4.2.1-r1/work/plasma-workspace-4.2.1/plasma/shells/desktop/plasmaapp.cpp:94: error: 'XRenderQueryExtension' was not declared in this scope                                                                                                                                           
make[2]: ** [plasma/shells/desktop/CMakeFiles/kdeinit_plasma_qgv.dir/plasmaapp.o] Erro 1                                                                        
make[1]: ** [plasma/shells/desktop/CMakeFiles/kdeinit_plasma_qgv.dir/all] Erro 2                                                                                
make[1]: ** Esperando que outros processos terminem.


Reproducible: Always

Steps to Reproduce:
1. emerge -av =kde-base/plasma-workspace-r1



Result of emerge --info

Portage 2.2_rc27 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r2 i686)                            
=================================================================                                                                        
System uname: Linux-2.6.28-gentoo-r2-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.0                                   
Timestamp of tree: Thu, 26 Mar 2009 21:45:02 +0000                                                                                       
ccache version 2.4 [enabled]                                                                                                             
app-shells/bash:     4.0_p10-r1                                                                                                          
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                                                    
dev-lang/python:     2.5.4-r2                                                                                                            
dev-python/pycrypto: 2.0.1-r6                                                                                                            
dev-util/ccache:     2.4-r8                                                                                                              
dev-util/cmake:      2.6.3                                                                                                               
sys-apps/baselayout: 2.0.0                                                                                                               
sys-apps/openrc:     0.4.3-r1                                                                                                            
sys-apps/sandbox:    1.6                                                                                                                 
sys-devel/autoconf:  2.13, 2.63                                                                                                          
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                            
sys-devel/binutils:  2.19.1-r1                                                                                                           
sys-devel/gcc-config: 1.4.1                                                                                                              
sys-devel/libtool:   2.2.6a                                                                                                              
virtual/os-headers:  2.6.28-r1                                                                                                           
ACCEPT_KEYWORDS="x86 ~x86"                                                                                                               
CBUILD="i686-pc-linux-gnu"                                                                                                               
CFLAGS="-O2 -march=native -pipe"                                                                                                         
CHOST="i686-pc-linux-gnu"                                                                                                                
CONFIG_PROTECT="/etc /usr/share/config"                                                                                                  
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"                                                                                                                 
CXXFLAGS="-O2 -march=native -pipe"                                                                                                                              
DISTDIR="/mnt/ports/distfiles"                                                                                                                                  
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://mirror.utdlug.org/linux/distributions/gentoo/ http://www.las.ic.unicamp.br/pub/gentoo/"
LANG="pt_BR"
LC_ALL="pt_BR"
LDFLAGS="-Wl,-O1"
LINGUAS="pt_BR"
MAKEOPTS="-j3"
PKGDIR="/mnt/ports/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/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amarok bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups curl dbus dga dri dts dvd dvdr dvdread eds emboss encode evo exif fam firefox fortran gdbm gif gmp gnutls gphoto2 gpm hal htmlhandbook iconv ipv6 isdnlog javascript jpeg kde kdeenablefinal lcms ldap lesstif libnotify mad midi mikmod mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3support qt4 quicktime readline reflection samba scanner sdl session slp sndfile spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xine xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Relevant (may be) X stuff:
x11-base/xorg-server-1.5.3-r5
x11-libs/libXrender-0.9.4
x11-libs/libX11-1.1.5


I googled a bit and found some references of a Compiz bug similar to this and made a working patch.
Comment 1 Laerte Barbalho Júnior 2009-03-27 22:42:15 UTC
Created attachment 186491 [details, diff]
Patch to allow plasma-workspace-4.2.1-r1 to compile
Comment 2 Viktor S 2009-03-30 12:51:39 UTC
Confirmed, experiencing the same thing here. The problem however, lies in /usr/include/fixx11h.h which calls for functions that doesn't exist, messing everything up. The same error happens when trying to compile kwin and ksmserver. Fix + revbump?
Comment 3 Ostashevskyi Viktor 2009-03-31 08:42:19 UTC
Confirmed with same versions of gcc/glibc/portage
Comment 4 DavidD 2009-04-02 21:39:56 UTC
Created attachment 187143 [details, diff]
Patch for fixx11h.h

Patch to allow kwin, ksmserver, plasma-workspace, etc to compile correctly.
Comment 5 Konstantin AD 2009-04-03 07:28:12 UTC
(In reply to comment #4)
> Created an attachment (id=187143) [edit]
> Patch for fixx11h.h
> 
> Patch to allow kwin, ksmserver, plasma-workspace, etc to compile correctly.
> 

I`am trying to compile ksmserver-4.2.1-r1 with patched fixx11h.h... no help

*Error without patch:

/usr/include/X11/extensions/Xrender.h:75: error: reference to ‘Bool’
is ambiguous
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool
/usr/include/fixx11h.h:94: error:                 typedef X::XBool
X::Bool

*Error with patched fixx11h.h:

/usr/include/X11/Xutil.h:115: error: reference to 'Bool' is ambiguous
/usr/include/X11/Xdefs.h:49: error: candidates are: typedef int Bool
/usr/include/fixx11h.h:95: error:                 typedef X::XBool X::Bool
Comment 6 Viktor S 2009-04-05 17:35:50 UTC
This bug is fixed by reemerging x11-proto/renderproto which shortly had an update (0.9.3-r1) which got hardmasked pretty fast, quite possibly because of these errors. Set FIXED please.