Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kde-base/kdeplasma-addons-4.8.3 not compiling
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 290

PostPosted: Fri May 04, 2012 4:31 am    Post subject: kde-base/kdeplasma-addons-4.8.3 not compiling Reply with quote

was failing with this

Code:
[ 89%] Building CXX object libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/Logger.o
Scanning dependencies of target krunner_charrunner
[ 90%] Building CXX object libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/MessagesKmail.o
[ 90%] Building CXX object libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/NewDocuments.o
[ 90%] Building CXX object libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/OpenDocuments.o
[ 90%] Building CXX object libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/Places.o
[ 90%] Building CXX object runners/characters/CMakeFiles/krunner_charrunner.dir/krunner_charrunner_automoc.o
[ 91%] Building CXX object runners/characters/CMakeFiles/krunner_charrunner.dir/charrunner.o
Linking CXX shared module ../../lib/krunner_charrunner.so
[ 91%] Built target plasma_potd_oseiprovider
Scanning dependencies of target plasma_containment_groupingdesktop
distcc[3667] ERROR: compile /tmp/.ccache/tmp/MessagesKm.tmp.hedgehog.3627.ii on 192.168.0.1/3 failed
distcc[3667] (dcc_build_somewhere) Warning: remote compilation of '/tmp/.ccache/tmp/MessagesKm.tmp.hedgehog.3627.ii' failed, retrying locally
distcc[3667] Warning: failed to distribute /tmp/.ccache/tmp/MessagesKm.tmp.hedgehog.3627.ii to 192.168.0.1/3, running locally instead
[ 91%] Built target plasma_potd_wcpotdprovider
[ 91%] [ 91%] Building CXX object containments/groupingdesktop/desktop/CMakeFiles/plasma_containment_groupingdesktop.dir/plasma_containment_groupingdesktop_automoc.o
Built target krunner_charrunner
Scanning dependencies of target plasma_containment_groupingpanel
Scanning dependencies of target plasma_containment_griddesktop
[ 91%] Building CXX object libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/RecentDocuments.o
[ 91%] [ 91%] Building CXX object containments/groupingdesktop/griddesktop/CMakeFiles/plasma_containment_griddesktop.dir/plasma_containment_griddesktop_automoc.o
Building CXX object containments/groupingdesktop/panel/CMakeFiles/plasma_containment_groupingpanel.dir/plasma_containment_groupingpanel_automoc.o
distcc[3667] ERROR: compile /tmp/.ccache/tmp/MessagesKm.tmp.hedgehog.3627.ii on localhost failed
/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3/libs/lancelot-datamodels/MessagesKmail.cpp:43:2: warning: #warning "Pimlibs are not present"
/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3/libs/lancelot-datamodels/MessagesKmail.cpp:38:1: error: expected unqualified-id before string constant
/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3/libs/lancelot-datamodels/MessagesKmail.cpp:39:1: error: expected unqualified-id before string constant
/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3/libs/lancelot-datamodels/MessagesKmail.cpp:40:1: error: expected unqualified-id before string constant
/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3/libs/lancelot-datamodels/MessagesKmail.cpp:41:1: error: expected unqualified-id before string constant
make[2]: *** [libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/MessagesKmail.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 91%] Building CXX object containments/groupingdesktop/desktop/CMakeFiles/plasma_containment_groupingdesktop.dir/groupingdesktop.o
make[1]: *** [libs/lancelot-datamodels/CMakeFiles/lancelot-datamodels.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 92%] Building CXX object containments/groupingdesktop/griddesktop/CMakeFiles/plasma_containment_griddesktop.dir/griddesktop.o
[ 92%] Linking CXX shared module ../../../lib/plasma_containment_groupingdesktop.so
Building CXX object containments/groupingdesktop/panel/CMakeFiles/plasma_containment_groupingpanel.dir/groupingpanel.o
[ 92%] Built target plasma_containment_groupingdesktop
Linking CXX shared module ../../../lib/plasma_containment_griddesktop.so
[ 92%] Built target plasma_containment_griddesktop
Linking CXX shared module ../../../lib/plasma_containment_groupingpanel.so
[ 92%] Built target plasma_containment_groupingpanel
make: *** [all] Error 2
 * ERROR: kde-base/kdeplasma-addons-4.8.3 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =kde-base/kdeplasma-addons-4.8.3',
 * the complete build log and the output of 'emerge -pqv =kde-base/kdeplasma-addons-4.8.3'.
 * The complete build log is located at '/var/log/portage/kde-base:kdeplasma-addons-4.8.3:20120504-041043.log'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/temp/build.8.3:20120504-041043.log'.
 * The ebuild environment file is located at '/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/temp/environment'.
 * Working directory: '/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3_build'
 * S: '/tmp/portage/portage/kde-base/kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3'
 *
 * The following package has failed to build or install:
 *
 *  (kde-base/kdeplasma-addons-4.8.3::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/kde-base:kdeplasma-addons-4.8.3:20120504-041043.log'


so looking around I found this workaround - https://bugs.gentoo.org/show_bug.cgi?id=353730 - which the patch did not work with 4.8.3 so I updated it

Code:
diff -purN kdeplasma-addons-4.6.0-orig//applets/CMakeLists.txt kdeplasma-addons-4.6.0/applets/CMakeLists.txt
--- kdeplasma-addons-4.6.0-orig//applets/CMakeLists.txt 2011-02-11 17:25:19.576723309 +0200
+++ kdeplasma-addons-4.6.0/applets/CMakeLists.txt       2011-02-11 17:25:43.724708635 +0200
@@ -77,7 +77,6 @@ endif( Qwt5-Qt4_FOUND )
 
 if(NOT WIN32)
   if(KDE4WORKSPACE_FOUND)
-    add_subdirectory(lancelot)
   endif(KDE4WORKSPACE_FOUND)
   add_subdirectory(incomingmsg)
   add_subdirectory(leavenote)
diff -purN kdeplasma-addons-4.6.0-orig//libs/CMakeLists.txt kdeplasma-addons-4.6.0/libs/CMakeLists.txt
--- kdeplasma-addons-4.6.0-orig//libs/CMakeLists.txt    2011-02-11 17:25:19.590725043 +0200
+++ kdeplasma-addons-4.6.0/libs/CMakeLists.txt  2011-02-11 17:25:33.049389764 +0200
@@ -1,9 +1,7 @@
 
 add_subdirectory(plasmaweather)
 add_subdirectory(rtm)
-add_subdirectory(lancelot)
 
 if(NOT WIN32 AND KDE4WORKSPACE_FOUND)
-   add_subdirectory(lancelot-datamodels)
 endif(NOT WIN32 AND KDE4WORKSPACE_FOUND)
 
diff -purN kdeplasma-addons-4.6.0-orig//runners/CMakeLists.txt kdeplasma-addons-4.6.0/runners/CMakeLists.txt
--- kdeplasma-addons-4.6.0-orig//runners/CMakeLists.txt 2011-02-11 17:25:19.570722582 +0200
+++ kdeplasma-addons-4.6.0/runners/CMakeLists.txt       2011-02-11 17:26:21.888412339 +0200
@@ -10,10 +10,8 @@ add_subdirectory(spellchecker)
 add_subdirectory(characters)
 
 if(KDEPIMLIBS_FOUND)
  if (NOT KDE_PLATFORM_FEATURE_DISABLE_DEPRECATED)
-  add_subdirectory(contacts)
  endif (NOT KDE_PLATFORM_FEATURE_DISABLE_DEPRECATED)
- add_subdirectory(events)
 endif(KDEPIMLIBS_FOUND)
 
 if(NOT WIN32)


just throw it in /etc/portage/patches/kde-base/kdeplasma-addons-4.8.3

I don't know if this is a bug per se so I did not file a bug report. hopefully this will help someone else.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Fri May 04, 2012 6:51 am    Post subject: Re: kde-base/kdeplasma-addons-4.8.3 not compiling Reply with quote

Does this patch fix the issue?
Code:
--- libs/lancelot-datamodels/MessagesKmail.cpp.org      2012-05-04 08:23:58.265074326 +0200
+++ libs/lancelot-datamodels/MessagesKmail.cpp  2012-05-04 08:49:35.109047988 +0200
@@ -34,16 +34,15 @@
 
 #ifndef LANCELOT_DATAMODELS_HAS_PIMLIBS
 
-// just in case messages:
-I18N_NOOP("Unread messages");
-I18N_NOOP("Unable to find Kontact");
-I18N_NOOP("Start Akonadi server");
-I18N_NOOP("Akonadi server is not running");
-
 #warning "Pimlibs are not present"
 
     #define DummyModelClassName MessagesKmail
     #define DummyModelInit \
+        // just in case messages: \
+        (void) I18N_NOOP("Unread messages"); \
+        (void) I18N_NOOP("Unable to find Kontact"); \
+        (void) I18N_NOOP("Start Akonadi server"); \
+        (void) I18N_NOOP("Akonadi server is not running"); \
         setSelfTitle(i18n("Unread messages"));  \
         setSelfIcon(KIcon("kmail"));            \
         if (!addService("kontact") && !addService("kmail")) {   \


EDIT:
Sorry... After editing the macro, I saw the comment "just in case messages" flying around, and moved it down - but forgot to add the "\" in the end. Without that compilation still will fail.
I now tried it myself (after kde-update finished and editing patch + ebuild, as I have semantic-desktop enabled), and compilation went fine, but I get a linker error:
Code:
CMakeFiles/lancelot-datamodels.dir/lancelot-datamodels_automoc.o: In function `Lancelot::Models::MessagesKmail::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
/var/tmp/paludis/kde-base-kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3_build/libs/lancelot-datamodels/moc_MessagesKmail.cpp:51: undefined reference to `Lancelot::Models::MessagesKmail::updateLater()'
/var/tmp/paludis/kde-base-kdeplasma-addons-4.8.3/work/kdeplasma-addons-4.8.3_build/libs/lancelot-datamodels/moc_MessagesKmail.cpp:52: undefined reference to `Lancelot::Models::MessagesKmail::update()'
CMakeFiles/lancelot-datamodels.dir/lancelot-datamodels_automoc.o:(.data.rel.ro._ZTVN8Lancelot6Models13MessagesKmailE[vtable for Lancelot::Models::MessagesKmail]+0xe0): undefined reference to `Lancelot::Models::MessagesKmail::selfShortTitle() const'

Do you get this, too?
Back to top
View user's profile Send private message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 290

PostPosted: Fri May 04, 2012 4:10 pm    Post subject: Reply with quote

Mine is because I use -semantic-desktop and akonadi is not installed etc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum