Hi, I'm upgrading today to the latest version of KDE, 4.8.2, and it almost completed, but kopete compilation failed during the linking of the kopete_jabber.so library. Please see attached build log for more details.
Created attachment 307907 [details] bzip2s emerge build log
Created attachment 307909 [details] emerge --info
This is the actual Error: [ 67%] [32mBuilding CXX object kopete/protocols/meanwhile/CMakeFiles/kopete_meanwhile.dir/meanwhileaddcontactpage.o [0mIn file included from /usr/include/meanwhile/mw_srvc_resolve.h:26:0, from /var/tmp/portage/kde-base/kopete-4.8.2/work/kopete-4.8.2/kopete/protocols/meanwhile/meanwhilesession.h:25, from /var/tmp/portage/kde-base/kopete-4.8.2/work/kopete-4.8.2/kopete/protocols/meanwhile/meanwhileaccount.cpp:23: /usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly." That is not directly an error within kopete but net-libs/meanwhile. As a workaround you can disable the meanwhile-USE-Flag for kopete.
Scanning the log, it looks like my version of glib is not compatible? ... [ 65%] Building CXX object kopete/protocols/jabber/CMakeFiles/kopete_jabber.dir/kopete_jabber_automoc.o Scanning dependencies of target kopete_latex In file included from /usr/include/meanwhile/mw_srvc_resolve.h:26:0, from /var/tmp/portage/kde-base/kopete-4.8.2/work/kopete-4.8.2/kopete/protocols/meanwhile/meanwhilesession.h:25, from /var/tmp/portage/kde-base/kopete-4.8.2/work/kopete-4.8.2/kopete/protocols/meanwhile/meanwhileaccount.cpp:23: /usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly." My glib version is: # emerge -pvt glib These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R #] dev-libs/glib-2.32.0 USE="fam -debug -doc (-selinux) -static-libs -systemtap -test -utils -xattr" 0 kB FWIW, I have this in /etc/portage/package.unmask/user.unmask: #required by x11-libs/libnotify-0.7.4, required by net-wireless/gnome-bluetooth-2.32.0-r1, required by @selected, required by @world (argument) # /usr/portage/profiles/package.mask: # Nirbheek Chauhan <nirbheek@gentoo.org> (25 Mar 2012) # This is now the GNOME 3.4 mask # Core libraries to be unmasked first: =dev-libs/glib-2.32.0 I believe this produced by a recent emerge -uDN --autounmask-write @system @world. I am going to try a different version of glib...
I downgraded to glib-2.30.3, and compilation of kopete completed successfully! I am not sure why that version of glib was unmasked, but I don't think it is compatible with kopete. Here's my current, working glib version and flags: # emerge -pvt dev-libs/glib These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ~] dev-libs/glib-2.30.3 USE="fam static-libs -debug -doc (-selinux) -systemtap -test -utils -xattr" 0 kB
net-libs/meanwhile-1.0.2-r1 ships a patch for compatibility with >=glib-2.31. Just as a note if someone else will get this problem.
*** This bug has been marked as a duplicate of bug 409081 ***