View previous topic :: View next topic |
Author |
Message |
einheitlix Tux's lil' helper
Joined: 03 Aug 2004 Posts: 144 Location: Saarbrücken, Germany
|
Posted: Sat Sep 01, 2007 9:09 am Post subject: [SOLVED] Compiz Fusion + Azureus |
|
|
Hi,
I recently switched from Beryl to Compiz Fusion and I like it better, but I since then I couldn't get Azureus running (it worked fine before).
The problem is the following: to compile Compiz, it is required to compile libX11 with the "xcb" USE flag. Otherwise Compiz won't even start to compile, as the ebuild of Compiz from the xeffects overlay checks this.
But, as it is described in use.local.desc...
Quote: |
x11-libs/libX11:xcb - Support the X C-language Binding, a replacement for Xlib (can break proprietary binaries, for example Sun Java)
|
...now Azureus, which runs on the Sun Java VM, doesn't work anymore. It starts the GUI for a split second, then immediately crashes with the following error message:
Quote: |
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
|
I googled for this and it seems like compiling libX11 with xcb breaks any package using AWT/Swing with the Sun Java VM.
I thought of using the Blackdown JRE instead, but Azureus requires at least Java version 1.5.0, and Blackdown only provides Java versions up to 1.4.2.
So now I'm stuck. Any ideas on how to resolve this problem? Does anyone know if it is possible to run Azureus along with Compiz Fusion at all? Has anyone got this combination of programs working?
Any help would be greatly appreciated _________________ Collecting data is only the first step toward wisdom. But sharing data is the first step toward community.
Last edited by einheitlix on Sun Sep 02, 2007 7:52 pm; edited 1 time in total |
|
Back to top |
|
|
wizard69 Apprentice
Joined: 22 Sep 2003 Posts: 178 Location: Berlin
|
Posted: Sat Sep 01, 2007 10:43 am Post subject: |
|
|
have you thought about using ktorrent instead or one of the other torrent apps in Portage. The xcb use flags seems to break Java apps. There is a patch to address the issue on the xeffects forum
have a look here
http://forums.gentoo-xeffects.org/viewtopic.php?f=3&t=576
I haven't tried it myself please report if it works |
|
Back to top |
|
|
omidxo n00b
Joined: 23 Feb 2005 Posts: 71
|
Posted: Sat Sep 01, 2007 12:37 pm Post subject: |
|
|
Quote: | The following workarounds address this problem:
For sun-java5-bin:
sed -i 's/XINERAMA/FAKEEXTN/g' /opt/sun-jdk-1.5.0.12/jre/lib/amd64/xawt/libmawt.so
For sun-java6-bin:
sed -i 's/XINERAMA/FAKEEXTN/g' /opt/sun-jdk-1.6.0.02/jre/lib/amd64/xawt/libmawt.so
The same fix (applied to the appropriate file) might work for other
proprietary JDKs. |
Sorry for forgot the provenance. |
|
Back to top |
|
|
wizard69 Apprentice
Joined: 22 Sep 2003 Posts: 178 Location: Berlin
|
Posted: Sat Sep 01, 2007 6:45 pm Post subject: |
|
|
Thanks a lot java works with no problems. All i had to do was to substitute the amd64 for i386 in the given path. |
|
Back to top |
|
|
einheitlix Tux's lil' helper
Joined: 03 Aug 2004 Posts: 144 Location: Saarbrücken, Germany
|
Posted: Sun Sep 02, 2007 7:50 pm Post subject: |
|
|
Thanks, this solved the problem for me, too! Although this is quite a hack, it will do fine until Sun fixes its code
I didn't try the patched libX11 ebuild... for one thing, I don't really like to mess around with third-party ebuilds that don't even belong to any overlay and will certainly not be maintained, that would just be a very temporary workaround at best; plus, it seems the xeffects forums were just completely erased and the above link doesn't work anymore _________________ Collecting data is only the first step toward wisdom. But sharing data is the first step toward community. |
|
Back to top |
|
|
B.marc n00b
Joined: 16 Oct 2005 Posts: 40 Location: Braunschweig / Germany
|
Posted: Thu Sep 13, 2007 11:19 am Post subject: |
|
|
wizard69 wrote: | Thanks a lot java works with no problems. All i had to do was to substitute the amd64 for i386 in the given path. |
Worked for me, too (dev-java/sun-jdk-1.5.0.12).
Thanks
Marc |
|
Back to top |
|
|
Roums n00b
Joined: 01 Apr 2006 Posts: 24
|
Posted: Thu Sep 20, 2007 7:24 pm Post subject: |
|
|
me too
sun-jre-bin-1.5.0.12 |
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Sat Oct 27, 2007 8:04 pm Post subject: |
|
|
@omidxo Thank you worked in my system too, sun-jdk-1.6 . _________________ wanna react ? |
|
Back to top |
|
|
luche n00b
Joined: 19 Apr 2002 Posts: 21 Location: Quebec
|
Posted: Sun Oct 28, 2007 4:23 pm Post subject: |
|
|
Didn't work for me... Although I don't have an amd64...
Athlon-xp, sun-jre-1.5.0.13
Oh well, i'm off compiling KTorrent ! |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
aussiemale n00b
Joined: 21 Oct 2006 Posts: 32 Location: Melbourne, Australia
|
Posted: Thu Mar 13, 2008 10:55 pm Post subject: |
|
|
Another thing you can try is to set 'AWT_TOOLKIT=MToolkit' as part of your environment variables. However this doesn't seem to work with Java 1.6 yet. _________________ (IRC: weirdedout)
9 Gentoo Boxes & growing! |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Thu Mar 13, 2008 11:01 pm Post subject: |
|
|
AFAIK compiling libxcb with -DNDEBUG flag also resolves problem with java. _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Fri Mar 14, 2008 11:51 am Post subject: |
|
|
kernelOfTruth wrote: | do you think it would be wise / sane to enable that flag globally ? |
I read that using -DNDEBUG -DG_DISABLE_ASSERT globally might break some apps, so probably it wouldn't, although I don't know anything about -DNDEBUG itself. _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
|