Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Compiz Fusion + Azureus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
einheitlix
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2004
Posts: 144
Location: Saarbrücken, Germany

PostPosted: Sat Sep 01, 2007 9:09 am    Post subject: [SOLVED] Compiz Fusion + Azureus Reply with quote

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
View user's profile Send private message
wizard69
Apprentice
Apprentice


Joined: 22 Sep 2003
Posts: 178
Location: Berlin

PostPosted: Sat Sep 01, 2007 10:43 am    Post subject: Reply with quote

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
View user's profile Send private message
omidxo
n00b
n00b


Joined: 23 Feb 2005
Posts: 71

PostPosted: Sat Sep 01, 2007 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
wizard69
Apprentice
Apprentice


Joined: 22 Sep 2003
Posts: 178
Location: Berlin

PostPosted: Sat Sep 01, 2007 6:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
einheitlix
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2004
Posts: 144
Location: Saarbrücken, Germany

PostPosted: Sun Sep 02, 2007 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
B.marc
n00b
n00b


Joined: 16 Oct 2005
Posts: 40
Location: Braunschweig / Germany

PostPosted: Thu Sep 13, 2007 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Roums
n00b
n00b


Joined: 01 Apr 2006
Posts: 24

PostPosted: Thu Sep 20, 2007 7:24 pm    Post subject: Reply with quote

me too :D
sun-jre-bin-1.5.0.12
Back to top
View user's profile Send private message
region-g
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2005
Posts: 122
Location: Ελλάς

PostPosted: Sat Oct 27, 2007 8:04 pm    Post subject: Reply with quote

@omidxo Thank you worked in my system too, sun-jdk-1.6 .
_________________
wanna react ?
Back to top
View user's profile Send private message
luche
n00b
n00b


Joined: 19 Apr 2002
Posts: 21
Location: Quebec

PostPosted: Sun Oct 28, 2007 4:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Oct 28, 2007 7:07 pm    Post subject: Reply with quote

just use the live-builds (9999) and disable xcb use-flag - works fine for me

both under x86 and amd64

have fun 8)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
aussiemale
n00b
n00b


Joined: 21 Oct 2006
Posts: 32
Location: Melbourne, Australia

PostPosted: Thu Mar 13, 2008 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Thu Mar 13, 2008 11:01 pm    Post subject: Reply with quote

AFAIK compiling libxcb with -DNDEBUG flag also resolves problem with java.
_________________
ncmpcpp - featureful ncurses based MPD client inspired by ncmpc
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Mar 13, 2008 11:24 pm    Post subject: Reply with quote

unK wrote:
AFAIK compiling libxcb with -DNDEBUG flag also resolves problem with java.


good to know,

thanks :)

do you think it would be wise / sane to enable that flag globally ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Fri Mar 14, 2008 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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