Mailing List Archive

KDE4.2 compile problem
Hi

I'm trying to emerge kde-4.2, but the kde-base/systemsettings-4.2.0
ebuild fails:

Scanning dependencies of target kdeinit_kxkb
[ 23%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kdeinit_kxkb_automoc.o
[ 24%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/rules.o
Linking CXX shared module ../../lib/kcm_keyboard_layout.so
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function
`X11Helper::registerForNewDeviceEvent(_XDisplay*)':
x11helper.cpp:(.text+0x21): undefined reference to
`_XiGetDevicePresenceNotifyEvent(_XDisplay*)'
collect2: ld returned 1 exit status
make[2]: *** [lib/kcm_keyboard_layout.so] Error 1
make[1]: *** [kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
[ 24%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbconfig.o
[ 24%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/extension.o
[ 25%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/x11helper.o
[ 25%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/pixmap.o
[ 26%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/xklavier_adaptor.o
[ 26%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbcore.o
[ 27%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/layoutmap.o
[ 27%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbapp.o
[ 27%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbwidget.o
[ 28%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkb_adaptor.o
[ 28%] Building CXX object
kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkb_part.o
/var/tmp/portage/kde-base/systemsettings-4.2.0/work/systemsettings-4.2.0/kcontrol/kxkb/kxkb_part.cpp:37:
warning: unused parameter 'args'
Linking CXX shared library ../../lib/libkdeinit4_kxkb.so
CMakeFiles/kdeinit_kxkb.dir/x11helper.o: In function
`X11Helper::registerForNewDeviceEvent(_XDisplay*)':
x11helper.cpp:(.text+0x21): undefined reference to
`_XiGetDevicePresenceNotifyEvent(_XDisplay*)'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkdeinit4_kxkb.so] Error 1
make[1]: *** [kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/all] Error 2
make: *** [all] Error 2

I have the latest version of libXi (1.2.0). I tried searching the net,
but the only answer I got was that some guy on the kde forums had the
same problem and resolved it by installing the latest version of libXi
from the repository.

Have anyone else successfully built kde4.2?

Regards
Dirk
Re: KDE4.2 compile problem [ In reply to ]
Dirk Uys wrote:
> [...]
> Have anyone else successfully built kde4.2?

No problems here on AMD64. I didn't use anything outside portage.
Re: KDE4.2 compile problem [ In reply to ]
On Tuesday 03 February 2009 12:53:22 am Dirk Uys wrote:
> Hi
>
> I'm trying to emerge kde-4.2, but the kde-base/systemsettings-4.2.0
> ebuild fails:
>
> Scanning dependencies of target kdeinit_kxkb
> [ 23%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kdeinit_kxkb_automoc.o
> [ 24%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/rules.o
> Linking CXX shared module ../../lib/kcm_keyboard_layout.so
> CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function
> `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
> x11helper.cpp:(.text+0x21): undefined reference to
> `_XiGetDevicePresenceNotifyEvent(_XDisplay*)'
> collect2: ld returned 1 exit status
> make[2]: *** [lib/kcm_keyboard_layout.so] Error 1
> make[1]: *** [kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 24%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbconfig.o
> [ 24%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/extension.o
> [ 25%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/x11helper.o
> [ 25%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/pixmap.o
> [ 26%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/xklavier_adaptor.o
> [ 26%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbcore.o
> [ 27%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/layoutmap.o
> [ 27%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbapp.o
> [ 27%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbwidget.o
> [ 28%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkb_adaptor.o
> [ 28%] Building CXX object
> kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkb_part.o
> /var/tmp/portage/kde-base/systemsettings-4.2.0/work/systemsettings-4.2.0/kc
>ontrol/kxkb/kxkb_part.cpp:37: warning: unused parameter 'args'
> Linking CXX shared library ../../lib/libkdeinit4_kxkb.so
> CMakeFiles/kdeinit_kxkb.dir/x11helper.o: In function
> `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
> x11helper.cpp:(.text+0x21): undefined reference to
> `_XiGetDevicePresenceNotifyEvent(_XDisplay*)'
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libkdeinit4_kxkb.so] Error 1
> make[1]: *** [kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/all] Error 2
> make: *** [all] Error 2
>
> I have the latest version of libXi (1.2.0). I tried searching the net,
> but the only answer I got was that some guy on the kde forums had the
> same problem and resolved it by installing the latest version of libXi
> from the repository.
>
> Have anyone else successfully built kde4.2?
>
> Regards
> Dirk

It compiled with zero errors on a 32bit x86 with the necessary ebuilds
autounmasked. If you need more info, feel free to email me direct.



--

*****************************************************************************

From the desk of:
Jerome D. McBride

06:37:10 up 48 days, 12:43, 5 users, load average: 2.87, 1.30, 0.49

*****************************************************************************
Re: KDE4.2 compile problem [ In reply to ]
On Tuesday 03 February 2009 07:53:22 Dirk Uys wrote:
> Hi
>
> I'm trying to emerge kde-4.2, but the kde-base/systemsettings-4.2.0
> ebuild fails:
>
<snip/>
>
> Have anyone else successfully built kde4.2?

Three systems so far, one x86, two amd64. Every single one failed to emerge
kde 4.2 cleanly in a single run, but subsequently now has it.

What I mostly did was just restarted emerge -- and it would have the packages
in different order and pass the problem spot a few packages later without the
problems showing up any more. Having kde 4.1 stuff on the background
cluttering up my system might have had an effect on this.

I don't know if I ran into your specific problem, just restarting emerge fixed
most stuff for me. I did run into a hell of a problem with Xorg after
successfully emerging kde 4.2, but that was due to the upgraded unstable xorg-
server 1.5.3 evdev not liking my xorg.conf -- and me not having cared to
explore the evdev-stuff before being thus forced to.

No keyboard and no mouse makes using kde 4.2 even worse than kde 4.1 *with*
keyboard and mouse. ;)

--
Arttu V.
Re: KDE4.2 compile problem [ In reply to ]
On Tuesday 03 February 2009 06:53:22 Dirk Uys wrote:
> Hi
>
> I'm trying to emerge kde-4.2, but the kde-base/systemsettings-4.2.0
> ebuild fails:
>
<snipped>
>
> I have the latest version of libXi (1.2.0). I tried searching the net,
> but the only answer I got was that some guy on the kde forums had the
> same problem and resolved it by installing the latest version of libXi
> from the repository.
>
> Have anyone else successfully built kde4.2?

Today succesfully installed kde4.2 on amd64.
I first removed my old KDE completely and then installed it on a clean system.

Only reinstalling the old kde libs for programs that have not yet been ported
to kde4.2.

Not run into any problems so far. Did have to unmask (~amd64) quite a few
packages to get it to install.

--
Joost
Re: KDE4.2 compile problem [ In reply to ]
On Tue, Feb 3, 2009 at 11:34 PM, J. Roeleveld <joost@antarean.org> wrote:
>
> Today succesfully installed kde4.2 on amd64.
> I first removed my old KDE completely and then installed it on a clean system.
>
> Only reinstalling the old kde libs for programs that have not yet been ported
> to kde4.2.
>
> Not run into any problems so far. Did have to unmask (~amd64) quite a few
> packages to get it to install.
>
> --
> Joost
>

I should have mentioned in my original email that I run ~x86 and that
I upgraded from KDE4.1. I had a few blockers which I had to emerge -C,
but other than that, everything except the systemsetting and startkde
package emerge fine.

I tried looking at the order of the emerges, but nothing seems out of
the ordinary as far as my knowledge goes. I tried rebuilding the
dependacies of systemsettings, but that did not resolve the problem.

What can I do about this? No one else seem to have this problem?

Regards
Dirk
Re: KDE4.2 compile problem [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dirk Uys wrote:
> Hi
>
> Have anyone else successfully built kde4.2?
>
> Regards
> Dirk

Hi Dirk,

I was able to compile KDE 4.2 successfully with no problems, without using
anything outside of Portage.

What arch are you using? Did you use the new, split ebuild version of Qt4?
What USE flags are you using? Are you using the 'ACCEPT_KEYWORDS' variable in
your make.conf file?

One suggestion that might work would be to remerge xorg-server, and all of your
xf86-* drivers (only the ones you need), as well as all keyboard related
packages, especially anything related to keyboard layout. Make sure that you
place them in your package.keywords file first.

Regards,
Chris
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJJiTyZAAoJEIAhA8M9p9DAC50P/3xKPDKcexAv8OJlbEklDK33
0dQg1Cz19lvjYsyxhO2Tn1UJG+BvFl7MFfoS9CZurcbj3azbeNdQU49E8BmLWj1A
NfJ/+zRgO36fsALyEMDdgFIL4LyS2gLfVlhXtiui/OMzegytDLa/0HPGEnB7myxF
Jg35qkGWE4H16rqHWV/fG3TpPTcp/1Z7lYCOYnSS7bquyRdL/Ax+wvjlrl7Gv5fv
bN7+sgQjCfBROjdqU2S/o4XpZcXIY0kh0VGJrN8igHfDl9SiqCxd5k3dcqP2Zf81
pwPTtclZVkM/UXHWzaKvIonsxoO80X4vM39oOdZtT/g5g0sIgzeFu799Uhrx71Rc
HUW5iyOZFa92vDg+NnUch9bMd1nKlavkfGtHth5wqRFihGrnMweT2hVpZbhfz0JQ
XDsDrfiw3Y/ABQIpvokBgnEY07XLlmHIY8RImwEXYS+QSu6ohr5xf91y6Jy+YtDG
DypPaYIcbLWtrZu7MkjwLaeNz03FJgU+4DBs7m53ZUd32ACi57e5npE1DfBR2rlq
ymcXLiWSa4t7O9J8KBnd1AQZdojaV0IRKzwKTce2Nje+UpgabRf5LGAFODqozhww
ewZaZmCnjaGcqIYPV5/qR5UBRk2tVl1+5P0wCCuXwD7KVgaEdCsK1ccBWdRo/InQ
s8ngUoqJFoKoWjw3a3ZO
=iX//
-----END PGP SIGNATURE-----
Re: KDE4.2 compile problem [ In reply to ]
On Tue, Feb 3, 2009 at 9:38 AM, Jerry McBride <mcbrides9@comcast.net> wrote:

> If you need more info, feel free to email me direct.

why?

off-list communications should only be done with off-topic
conversations. If you have a solution for him, you should share it
with the list so others can find solutions to similar problems.

regards
Re: KDE4.2 compile problem [ In reply to ]
> On Tue, Feb 3, 2009 at 11:34 PM, J. Roeleveld <joost@antarean.org> wrote:
>>
>> Today succesfully installed kde4.2 on amd64.
>> I first removed my old KDE completely and then installed it on a clean
>> system.
>>
>> Only reinstalling the old kde libs for programs that have not yet been
>> ported
>> to kde4.2.
>>
>> Not run into any problems so far. Did have to unmask (~amd64) quite a
>> few
>> packages to get it to install.
>>
>> --
>> Joost
>>
>
> I should have mentioned in my original email that I run ~x86 and that
> I upgraded from KDE4.1. I had a few blockers which I had to emerge -C,
> but other than that, everything except the systemsetting and startkde
> package emerge fine.
>
> I tried looking at the order of the emerges, but nothing seems out of
> the ordinary as far as my knowledge goes. I tried rebuilding the
> dependacies of systemsettings, but that did not resolve the problem.
>
> What can I do about this? No one else seem to have this problem?
>
> Regards
> Dirk

Hi Dirk,

Did you try fully removing the entire KDE-chain?
Eg. emerge -C all the kde packages in the /var/lib/portage/world file
and then removing the remaining packages using emerge --depclean ?

This is what I did when moving from 3.5.10 to 4.2.0.

--
Joost
Re: KDE4.2 compile problem [ In reply to ]
On Wednesday 04 February 2009 05:52:16 am Norberto Bensa wrote:
> On Tue, Feb 3, 2009 at 9:38 AM, Jerry McBride <mcbrides9@comcast.net> wrote:
> > If you need more info, feel free to email me direct.
>
> why?
>
> off-list communications should only be done with off-topic
> conversations. If you have a solution for him, you should share it
> with the list so others can find solutions to similar problems.
>
> regards

Well.. you just answered your own message. I DON'T have an answer, but I'm
willing to answer any questions he may have off line... That was the purpose
of my OP... What's the mystery?



--

*****************************************************************************

From the desk of:
Jerome D. McBride

06:50:28 up 49 days, 12:56, 5 users, load average: 0.16, 0.14, 0.05

*****************************************************************************
Re: KDE4.2 compile problem [ In reply to ]
On Wed, Feb 4, 2009 at 1:02 PM, Joost Roeleveld <joost@antarean.org> wrote:
> Hi Dirk,
>
> Did you try fully removing the entire KDE-chain?
> Eg. emerge -C all the kde packages in the /var/lib/portage/world file
> and then removing the remaining packages using emerge --depclean ?
>
> This is what I did when moving from 3.5.10 to 4.2.0.
>
> --
> Joost

Thanks everyone for all the suggestions.

I am currently waiting for "emerge -DuvaNe systemsettings" to finish,
Ill keep the list up to date on my success.

Regards
Dirk
Re: KDE4.2 compile problem [ In reply to ]
On Thu, Feb 5, 2009 at 8:22 AM, Dirk Uys <dirkcuys@gmail.com> wrote:
> Thanks everyone for all the suggestions.
>
> I am currently waiting for "emerge -DuvaNe systemsettings" to finish,
> Ill keep the list up to date on my success.
>
> Regards
> Dirk
>

Even re-emerging half of my system didn't resolve the problem. I feel
like I should file a bug, but it doens't seem like it is something
that will be easy to reproduce on any other machine but mine.

Regards
Dirk
Re: KDE4.2 compile problem [ In reply to ]
After some more struggling I managed to get kde-base/systemsettings
compiled: If I unmerge x11-libs/libxkbfile and then emerge
systemsettings, it compiles fine (without support for the xkb
settings). After that I did an emerge -DuvaN world and this pulls in
libxkbfile again.

But when I try to start KDE4.2 (using kdm), the screen blanks out a
few times while kde is loading (the spash screen being displayed) and
then I briefly see a malformed desktop (the bottom of the taskbar
wraps around to the top of the screen) and then just a black screen.

In /var/log/messages, something about plasma crashing is reported,
can't remember and I'm not at the PC now, but nothing very
informative.

I feel like going back to my good old days of windowmaker.

Regards
Dirk
Re: KDE4.2 compile problem [ In reply to ]
Dirk Uys wrote:
> But when I try to start KDE4.2 (using kdm), the screen blanks out a
> few times while kde is loading (the spash screen being displayed) and
> then I briefly see a malformed desktop (the bottom of the taskbar
> wraps around to the top of the screen) and then just a black screen.
>
> In /var/log/messages, something about plasma crashing is reported,
> can't remember and I'm not at the PC now, but nothing very
> informative.

The screen flashes are an indication of trying to enable desktop effects
(compositing.) I think KDE 4.2.0 tries to enable them by default, but
it seems the auto-detection of your graphics card's capabilities is
failing. Would be good if you can file a bug report about on bugs.kde.org.
Re: KDE4.2 compile problem [ In reply to ]
On Tue, Feb 10, 2009 at 8:41 AM, Dirk Uys <dirkcuys@gmail.com> wrote:
> After some more struggling I managed to get kde-base/systemsettings
> compiled: If I unmerge x11-libs/libxkbfile and then emerge
> systemsettings, it compiles fine (without support for the xkb
> settings). After that I did an emerge -DuvaN world and this pulls in
> libxkbfile again.
>
> But when I try to start KDE4.2 (using kdm), the screen blanks out a
> few times while kde is loading (the spash screen being displayed) and
> then I briefly see a malformed desktop (the bottom of the taskbar
> wraps around to the top of the screen) and then just a black screen.
>
> In /var/log/messages, something about plasma crashing is reported,
> can't remember and I'm not at the PC now, but nothing very
> informative.
>
> I feel like going back to my good old days of windowmaker.
>
> Regards
> Dirk
>

I found bug #256827, upgraded gcc, and everything is fine and well again!

Regards
Dirk