Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238027 - kde-base/kdepim-kresources-3.5.10 fails to build with KDE4 installed
Summary: kde-base/kdepim-kresources-3.5.10 fails to build with KDE4 installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 245640 (view as bug list)
Depends on:
Blocks: kdeprefix
  Show dependency tree
 
Reported: 2008-09-18 15:42 UTC by Paul Hartman
Modified: 2008-11-07 16:18 UTC (History)
4 users (show)

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


Attachments
depim-kresources-fix-kde4-path.patch (kdepim-kresources-fix-kde4-path.patch,336 bytes, patch)
2008-10-07 19:43 UTC, Jan Kundrát (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hartman 2008-09-18 15:42:07 UTC
Compiles almost all the way, but near the end it dies with this:

In file included from kde-features_parser.h:28,
                 from kde-features_parser.cpp:26:
./kde-features.h:28:19: error: QString: No such file or directory
./kde-features.h:29:17: error: QList: No such file or directory
kde-features_parser.cpp:30:23: error: QTextStream: No such file or directory
In file included from kde-features_parser.h:28,
                 from kde-features_parser.cpp:26:
./kde-features.h:34: error: ISO C++ forbids declaration of 'QList' with no type
./kde-features.h:34: error: expected ';' before '<' token
./kde-features.h:37: error: expected ',' or '...' before '&' token
./kde-features.h:37: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:38: error: 'QString' does not name a type
./kde-features.h:39: error: expected ',' or '...' before '&' token
./kde-features.h:39: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:40: error: 'QString' does not name a type
./kde-features.h:41: error: 'QString' does not name a type
./kde-features.h:44: error: 'QString' does not name a type
./kde-features.h:45: error: 'QString' does not name a type
./kde-features.h:51: error: ISO C++ forbids declaration of 'QList' with no type
./kde-features.h:51: error: expected ';' before '<' token
./kde-features.h:54: error: expected ',' or '...' before '&' token
./kde-features.h:54: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:55: error: 'QString' does not name a type
./kde-features.h:56: error: expected ',' or '...' before '&' token
./kde-features.h:56: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:57: error: 'QString' does not name a type
./kde-features.h:58: error: expected ',' or '...' before '&' token
./kde-features.h:58: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:59: error: 'QString' does not name a type
./kde-features.h:61: error: expected unqualified-id before '&' token
./kde-features.h:61: error: expected ',' or '...' before '&' token
./kde-features.h:62: error: 'List' in class 'Responsible' does not name a type
./kde-features.h:63: error: 'QString' does not name a type
./kde-features.h:66: error: 'QString' does not name a type
./kde-features.h:67: error: 'QString' does not name a type
./kde-features.h:68: error: 'QString' does not name a type
./kde-features.h:69: error: 'List' in class 'Responsible' does not name a type
./kde-features.h:75: error: ISO C++ forbids declaration of 'QList' with no type
./kde-features.h:75: error: expected ';' before '<' token
./kde-features.h:78: error: expected ',' or '...' before '&' token
./kde-features.h:78: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:79: error: 'QString' does not name a type
./kde-features.h:81: error: expected unqualified-id before '&' token
./kde-features.h:81: error: expected ',' or '...' before '&' token
./kde-features.h:82: error: 'List' in class 'Feature' does not name a type
./kde-features.h:84: error: expected unqualified-id before '&' token
./kde-features.h:84: error: expected ',' or '...' before '&' token
./kde-features.h:85: error: 'List' in class 'Category' does not name a type
./kde-features.h:86: error: 'QString' does not name a type
./kde-features.h:89: error: 'QString' does not name a type
./kde-features.h:90: error: 'List' in class 'Feature' does not name a type
./kde-features.h:91: error: 'List' in class 'Category' does not name a type
./kde-features.h:98: error: expected unqualified-id before '&' token
./kde-features.h:98: error: expected ',' or '...' before '&' token
./kde-features.h:99: error: 'List' in class 'Category' does not name a type
./kde-features.h:100: error: 'QString' does not name a type
./kde-features.h:101: error: expected ',' or '...' before '&' token
./kde-features.h:101: error: ISO C++ forbids declaration of 'QString' with no type
./kde-features.h:104: error: 'List' in class 'Category' does not name a type
In file included from kde-features_parser.cpp:26:
kde-features_parser.h:36: error: 'QString' does not name a type
kde-features_parser.h:47: error: expected ',' or '...' before '&' token
kde-features_parser.h:47: error: ISO C++ forbids declaration of 'QString' with no type
kde-features_parser.h:50: error: 'QString' does not name a type
In file included from kcal_resourcefeatureplan.h:26,
                 from kcal_resourcefeatureplan.cpp:22:
kde-features.h:28:19: error: QString: No such file or directory
kde-features.h:29:17: error: QList: No such file or directory
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextName()':
kde-features_parser.cpp:34: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:36: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextEmail()':
kde-features_parser.cpp:41: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:43: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'Responsible FeaturesParser::parseElementResponsible()':
kde-features_parser.cpp:55: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: At global scope:
kde-features_parser.cpp:89: error: no 'QString FeaturesParser::parseElementSummary()' member function declared in class 'FeaturesParser'
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextSummary()':
kde-features_parser.cpp:148: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:150: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextResponsible()':
kde-features_parser.cpp:155: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:157: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextStatus()':
kde-features_parser.cpp:162: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:164: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextTarget()':
kde-features_parser.cpp:169: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:171: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'Feature FeaturesParser::parseElementFeature()':
kde-features_parser.cpp:186: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:230: error: 'parseElementSummary' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextFeature()':
kde-features_parser.cpp:258: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:260: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextCategory()':
kde-features_parser.cpp:265: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:267: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'Category FeaturesParser::parseElementCategory()':
kde-features_parser.cpp:281: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'Features FeaturesParser::parseElementFeatures()':
kde-features_parser.cpp:347: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: In member function 'bool FeaturesParser::foundTextFeatures()':
kde-features_parser.cpp:389: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp:391: error: 'mBuffer' was not declared in this scope
kde-features_parser.cpp: At global scope:
kde-features_parser.cpp:394: error: prototype for 'Features FeaturesParser::parseFile(const QString&)' does not match any in class 'FeaturesParser'
kde-features_parser.h:47: error: candidate is: Features FeaturesParser::parseFile(int)
make[1]: *** [kde-features_parser.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from kcal_resourcefeatureplan.h:26,
                 from kcal_resourcefeatureplan.cpp:22:
kde-features.h:34: error: ISO C++ forbids declaration of 'QList' with no type
kde-features.h:34: error: expected ';' before '<' token
kde-features.h:51: error: ISO C++ forbids declaration of 'QList' with no type
kde-features.h:51: error: expected ';' before '<' token
kde-features.h:61: error: expected unqualified-id before '&' token
kde-features.h:61: error: expected ',' or '...' before '&' token
kde-features.h:62: error: 'List' in class 'Responsible' does not name a type
kde-features.h:69: error: 'List' in class 'Responsible' does not name a type
kde-features.h:75: error: ISO C++ forbids declaration of 'QList' with no type
kde-features.h:75: error: expected ';' before '<' token
kde-features.h:81: error: expected unqualified-id before '&' token
kde-features.h:81: error: expected ',' or '...' before '&' token
kde-features.h:82: error: 'List' in class 'Feature' does not name a type
kde-features.h:84: error: expected unqualified-id before '&' token
kde-features.h:84: error: expected ',' or '...' before '&' token
kde-features.h:85: error: 'List' in class 'Category' does not name a type
kde-features.h:90: error: 'List' in class 'Feature' does not name a type
kde-features.h:91: error: 'List' in class 'Category' does not name a type
kde-features.h:98: error: expected unqualified-id before '&' token
kde-features.h:98: error: expected ',' or '...' before '&' token
kde-features.h:99: error: 'List' in class 'Category' does not name a type
kde-features.h:104: error: 'List' in class 'Category' does not name a type
In file included from kcal_resourcefeatureplan.cpp:22:
kcal_resourcefeatureplan.h:58: error: expected unqualified-id before '&' token
kcal_resourcefeatureplan.h:58: error: expected ',' or '...' before '&' token
kcal_resourcefeatureplan.cpp: In member function 'virtual bool KCal::ResourceFeaturePlan::doLoad()':
kcal_resourcefeatureplan.cpp:83: error: cannot convert 'Features' to 'Features*' in initialization
kcal_resourcefeatureplan.cpp:88: error: 'List' is not a member of 'Category'
kcal_resourcefeatureplan.cpp:88: error: expected `;' before 'categories'
kcal_resourcefeatureplan.cpp:94: error: 'categories' was not declared in this scope
kcal_resourcefeatureplan.cpp: At global scope:
kcal_resourcefeatureplan.cpp:102: error: expected unqualified-id before '&' token
kcal_resourcefeatureplan.cpp:102: error: expected ',' or '...' before '&' token
kcal_resourcefeatureplan.cpp: In member function 'void KCal::ResourceFeaturePlan::insertCategories()':
kcal_resourcefeatureplan.cpp:105: error: 'Category::List' has not been declared
kcal_resourcefeatureplan.cpp:105: error: expected `;' before 'it'
kcal_resourcefeatureplan.cpp:106: error: 'it' was not declared in this scope
kcal_resourcefeatureplan.cpp:106: error: 'categories' was not declared in this scope
kcal_resourcefeatureplan.cpp:111: error: no matching function for call to 'KCal::Todo::setRelatedTo(<unresolved overloaded function type>)'
../../libkcal/incidence.h:202: note: candidates are: void KCal::Incidence::setRelatedTo(KCal::Incidence*)
kcal_resourcefeatureplan.cpp:113: error: 'class Category' has no member named 'categoryList'
kcal_resourcefeatureplan.cpp:115: error: 'List' is not a member of 'Feature'
kcal_resourcefeatureplan.cpp:115: error: expected `;' before 'features'
kcal_resourcefeatureplan.cpp:116: error: 'Feature::List' has not been declared
kcal_resourcefeatureplan.cpp:116: error: expected `;' before 'it2'

(my scrollback buffer cuts off the rest)

Reproducible: Always

Steps to Reproduce:
1. emerge kde-base/kdepim-kresources-3.5.10
2.
3.




Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Thu, 18 Sep 2008 14:34:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -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/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /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/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/nx /usr/local/portage/layman/je_fro /usr/local/portage/layman/sunrise /usr/local/portage/layman/vmware /usr/local/portage/layman/kdesvn-portage /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aim alsa amd64 audiofile avahi avi berkdb bluetooth branding bzip2 cairo captury cdparanoia cdr cli codecs cracklib crypt cups curl curlwrappers dbus device-mapper dri dvb dvd dvdr dvdread emboss encode ethereal evo exif fam flac flash fortran ftp gd gdbm gif glitz gphoto2 gpm gtk gtk2 h264 hal iconv ieee1394 imagemagick imap imlib innodb ipv6 isdnlog java joystick jpeg kde kdehiddenvisibility ldap libnotify lm_sensors mad madwifi midi mikmod mime mmx mng mp3 mpeg msn mudflap multilib ncurses network networkmanager nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openexr opengl openmp oscar pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 readline reflection samba scanner sdl session slang sndfile spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tidy tiff truetype unicode usb v4l videos vorbis wmf x264 xcomposite xml xorg xpm xulrunner xv xvid xvmc yahoo zeroconf 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 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" CAMERAS="canon ptp2" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paul Hartman 2008-09-19 13:24:03 UTC
Not sure what changed but now it works.
Comment 2 Johannes Hirte 2008-09-21 23:51:17 UTC
(In reply to comment #1)
> Not sure what changed but now it works.
> 

I still have the same problems, so the bug still seems to be existent.
Comment 3 Christian Hesse 2008-09-22 08:41:45 UTC
The problem ist the kxml_compiler from KDE 4.x is in PATH before the KDE 3.5 one. I've remporarely renamed /usr/kde/4.1/bin/kxml_compiler any everything compiled just fine.
Comment 4 Paul Hartman 2008-09-22 13:22:19 UTC
(In reply to comment #3)
> The problem ist the kxml_compiler from KDE 4.x is in PATH before the KDE 3.5
> one. I've remporarely renamed /usr/kde/4.1/bin/kxml_compiler any everything
> compiled just fine.
> 

That makes sense, I had removed KDE4 4.1 in preparation for 4.2.
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2008-10-07 18:45:34 UTC
(In reply to comment #3)
> The problem ist the kxml_compiler from KDE 4.x is in PATH before the KDE 3.5
> one. I've remporarely renamed /usr/kde/4.1/bin/kxml_compiler any everything
> compiled just fine.

Which means that the problem *is* here. reopening for further investigation.
Comment 6 Jan Kundrát (RETIRED) gentoo-dev 2008-10-07 19:43:22 UTC
Created attachment 167558 [details, diff]
depim-kresources-fix-kde4-path.patch

Dear KDE team,
upon invoking the emerge command from outside of environment controlled by startkde's $PATH mangling (like from remote SSH connection or from terminal) and if KDE4 is installed, its $PATH gets precedence over the one from 3.5.

A proper patch in the old kde eclass would be better, but as this is the only package from the full KDE suite that breaks (so far), I'd go just for this trivial patch.
Comment 7 Marcus D. Hanwell (RETIRED) gentoo-dev 2008-10-11 21:32:28 UTC
I fixed up the eclass. There were a few other kde-misc ebuilds that might have been affected and it seemed better to fix it properly in case more cases came up in future. Thanks.
Comment 8 Jan Kundrát (RETIRED) gentoo-dev 2008-11-07 16:18:18 UTC
*** Bug 245640 has been marked as a duplicate of this bug. ***