Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250025 - compizconfig-backend-kconfig-0.7.8 fails to compile because of missing QtCore/qglobal.h
Summary: compizconfig-backend-kconfig-0.7.8 fails to compile because of missing QtCore...
Status: RESOLVED DUPLICATE of bug 248293
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kdeprefix
  Show dependency tree
 
Reported: 2008-12-06 12:01 UTC by Juergen Rose
Modified: 2009-04-26 03:45 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2008-12-06 12:01:21 UTC
compizconfig-backend-kconfig-0.7.8 fails with:
...
[ebuild     U ] x11-libs/compizconfig-backend-kconfig-0.7.8 [0.6.0] USE="-debug -xinerama (-arts%)" 0 kB
...
config.status: executing depfiles commands

Good - your configure finished. Start make now

make -j3 
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/x11-libs/compizconfig-backend-kconfig-0.7.8/work/compizconfig-backend-kconfig-0.7.8'
Making all in settings-backend
make[2]: Entering directory `/var/tmp/portage/x11-libs/compizconfig-backend-kconfig-0.7.8/work/compizconfig-backend-kconfig-0.7.8/settings-backend'
/bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./lib -I/usr/qt/3/include -I.  -I/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -I/usr/include/compizconfig -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz   -c -o kconfig_backend.lo kconfig_backend.cpp
In file included from /usr/include/kdecore_export.h:24,
                 from /usr/include/kconfigbase.h:27,
                 from /usr/include/kconfig.h:27,
                 from kconfig_backend.cpp:24:
/usr/include/kdemacros.h:162:29: error: QtCore/qglobal.h: No such file or directory
In file included from /usr/include/kconfig.h:27,
                 from kconfig_backend.cpp:24:
/usr/include/kconfigbase.h:29:27: error: QtCore/QtGlobal: No such file or directory
In file included from kconfig_backend.cpp:24:
...
make[2]: *** [kconfig_backend.lo] Error 1


Reproducible: Always




root@condor:/root(171)# emerge --info
Portage 2.1.6_rc3 (default-linux/amd64/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27.6 x86_64)
=================================================================
System uname: Linux-2.6.27.6-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sat, 06 Dec 2008 08:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
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
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="de fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/"
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/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnokii gnome gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http hvm iconv icq icu id3 ide imagemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kde4 kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libgda libsamplerate lirc lm_sensors lua lzo lzw mad maildir math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric nvidia obex ocaml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png posix postgres postscript pppd preview-latex proj projectx pstricks python qhull quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truetype unicode userlocales utempter v4l2 vorbis wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" 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 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" DVB_CARDS="cx8800 cx88xx tda1004x saa713" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2008-12-06 12:15:20 UTC
So , yes

/usr/include/kdemacros.h has the following lines

#ifdef __cplusplus
# include <QtCore/qglobal.h>


According to equery belongs qglobal.h

x11-libs/qt-core-4.4.2 (/usr/include/qt4/QtCore/qglobal.h)

and equery belongs kdemacros.h

kde-base/kdelibs-4.1.3-r1 (/usr/include/kdemacros.h)


This bug seems irrelevant with compizconfig-backend .

It seems more like a problem with your qt/kdelibs

Please tell us which version of qt and kdelibs are you using

Try to re-emerge both of them and try to rebuild compizconfig-backend-kconfig again


As a more aggresive solution i would suggest to change on /usr/include/kdemacros.h the following part 

#ifdef __cplusplus
# include <QtCore/qglobal.h>

with

#ifdef __cplusplus
# include <qt4/QtCore/qglobal.h> 

and try to rebuild compizconfig-backend-kconfig again

Its a rough solution and im sure that it will fail again later

So, first of all rebuild kdelibs and qt


Thanks
Comment 2 Juergen Rose 2008-12-06 15:54:54 UTC
qt-4.4.2 and kdelibs-4.1.3-r1 is installled:

root@condor:/root(101)# qlist -I -v | grep -E "qt-|kdelibs"
dev-db/qt-unixODBC-3.3.8b
kde-base/kdelibs-3.5.10-r2
kde-base/kdelibs-4.1.3-r1
x11-libs/qt-3.3.8b
x11-libs/qt-4.4.2
x11-libs/qt-assistant-4.4.2
x11-libs/qt-core-4.4.2
x11-libs/qt-dbus-4.4.2
x11-libs/qt-gui-4.4.2
x11-libs/qt-opengl-4.4.2
x11-libs/qt-qt3support-4.4.2
x11-libs/qt-script-4.4.2
x11-libs/qt-sql-4.4.2
x11-libs/qt-svg-4.4.2
x11-libs/qt-test-4.4.2
x11-libs/qt-webkit-4.4.2
x11-libs/qt-xmlpatterns-4.4.2
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-12-07 20:31:54 UTC
This is another -kdeprefix bug.
Comment 4 Juergen Rose 2008-12-08 07:08:19 UTC
I reemerged qt, qt-core and kdelibs. But I still can't emerge compizconfig-backend-kconfig-0.7.8.

Juergen
Comment 5 Hubert Faulhaber 2008-12-28 10:20:23 UTC
I've got the same problem (not only with this package). It's because the configure script detects /usr/include as directory for kde headers and not /usr/kde/3.5/include.
As the KDE 4 headers are installed in /usr/include I think that a parallel install of kde 3 and 4 causes this mess.
Does anyone know, how to fix this already?
Comment 6 Gergely Csépány 2009-01-09 19:34:49 UTC
Reemerging all the affected packages with kdeprefix flag solves this bug for me, although it takes some time and it's just a workaround.
Comment 7 Juergen Rose 2009-01-10 13:45:28 UTC
Hi Gergely,

which packages did you reemerge with the kdeprefix flag?

Juergen
Comment 8 Gergely Csépány 2009-01-10 13:55:55 UTC
Hi,

I just set kdeprefix in the make.conf and run an emerge -avuND world, which basically reemerged the whole kde-meta:4.1. Since I have ccache enabled, it took only some hours to reemerge those packages.

Gergely
Comment 9 Jisakiel 2009-02-04 08:23:30 UTC
This one is seems related to http://bugs.gentoo.org/247314 . As far as I could grep from the comments, they fixed it by adding "--includedir=${KDEDIR}/include" and "Note that ebuild calls set-kdedir 3 before.". Hope it helps. 
Comment 10 Ian Abbott 2009-02-25 11:19:45 UTC
The ebuild patch attached to bug 248293 worked for me.
Comment 11 Ioannis Aslanidis (RETIRED) gentoo-dev 2009-04-11 10:21:21 UTC
(In reply to comment #7)
> Hi Gergely,
> 
> which packages did you reemerge with the kdeprefix flag?
> 
> Juergen
> 

Please, apply the patch from bug #248293 and tell us whether it works for you.
Comment 12 gentoo@danielquinn.org 2009-04-24 07:04:05 UTC
The patch worked for me as well.  I suggest adding it to the package and marking this one as "fixed".
Comment 13 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-04-26 03:45:04 UTC

*** This bug has been marked as a duplicate of bug 248293 ***