Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140778 - net-p2p/azureus-2.3.0.6-r1 fails to run with swt-3.2 if swt is compiled with USE="-accessibility"
Summary: net-p2p/azureus-2.3.0.6-r1 fails to run with swt-3.2 if swt is compiled with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
: 143743 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-17 06:41 UTC by Joël
Modified: 2006-08-27 10:56 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch to the azureus ebuild (azureusebuild.patch,712 bytes, patch)
2006-07-27 08:28 UTC, David Li
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joël 2006-07-17 06:41:17 UTC
Azureus-2.3.0.6-r1 works great with swt-3.1, but with swt-3.2 its startup fails with:

===========================================
  java.lang.UnsatisfiedLinkError: no swt-atk-gtk-3232 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.accessibility.gtk.ATK.<clinit>(Unknown Source)
        at org.eclipse.swt.widgets.Control.removeRelation(Unknown Source)
        at org.eclipse.swt.widgets.Control.setZOrder(Unknown Source)
        at org.eclipse.swt.widgets.Control.setZOrder(Unknown Source)
        at org.eclipse.swt.widgets.Control.moveAbove(Unknown Source)
        at org.gudy.azureus2.ui.swt.views.MyTorrentsView.createTabs(MyTorrentsView.java:236)
        at org.gudy.azureus2.ui.swt.views.MyTorrentsView.initialize(MyTorrentsView.java:145)
        at org.gudy.azureus2.ui.swt.views.MyTorrentsSuperView.initialize(MyTorrentsSuperView.java:151)
        at org.gudy.azureus2.ui.swt.Tab.<init>(Tab.java:156)
        at org.gudy.azureus2.ui.swt.Tab.<init>(Tab.java:72)
        at org.gudy.azureus2.ui.swt.mainwindow.MainWindow.showMyTorrents(MainWindow.java:861)
        at org.gudy.azureus2.ui.swt.mainwindow.MainWindow.openMainWindow(MainWindow.java:755)
        at org.gudy.azureus2.ui.swt.mainwindow.MainWindow.access$1200(MainWindow.java:65)
        at org.gudy.azureus2.ui.swt.mainwindow.MainWindow$27.runSupport(MainWindow.java:1652)
        at org.gudy.azureus2.core3.util.AERunnable.run(AERunnable.java:38)
        at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:114)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:58)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:108)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:123)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:142)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.gudy.azureus2.ui.common.Main.directLaunch(Main.java:221)
        at org.gudy.azureus2.ui.common.Main.main(Main.java:128)
====================================

$ equery files swt
[ Searching for packages matching swt... ]
* Contents of dev-java/swt-3.2:
/usr
/usr/lib
/usr/lib/libswt-awt-gtk-3232.so
/usr/lib/libswt-glx-gtk-3232.so
/usr/lib/libswt-gtk-3232.so
/usr/lib/libswt-pi-gtk-3232.so
/usr/share
/usr/share/doc
/usr/share/doc/swt-3.2
/usr/share/doc/swt-3.2/html
/usr/share/doc/swt-3.2/html/about.html
/usr/share/swt-3
/usr/share/swt-3/lib
/usr/share/swt-3/lib/swt.jar
/usr/share/swt-3/package.env

=========================================

Both swt versions (3.1 and 3.2) don't have /usr/lib/swt-atk-gtk-*.so.

But with swt 3.1, Azureus works.

I compile with sun-jdk-1.4, and run with sun-jdk-1.5.
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-07-23 14:04:15 UTC
Please try testing with azureus-2.4.0.2.
Comment 2 Joël 2006-07-24 03:20:50 UTC
Hi,

Same error and stacktrace with 2.4.0.2, unfortunately.
Comment 3 Joël 2006-07-24 03:39:01 UTC
OK, it can be solved by emerging swt-3.2 with "accessibility" USE flag.

Then /usr/lib/libswt-atk-gtk-3232.so gets created, and all is good :-)
Comment 4 David Li 2006-07-27 08:28:07 UTC
Created attachment 92860 [details, diff]
Proposed patch to the azureus ebuild

This patch will force the user to compile swt with accessibility in order to emerge azureus. It presents the user with correct instructions with how to recompile swt.
Comment 5 unlord 2006-07-31 09:21:10 UTC
Sorry, but I have the following installed:

net-p2p/azureus-2.3.0.6-r1  USE="-source"
dev-java/swt-3.2_rc2  USE="cairo gnome opengl -accessibility -mozilla"

and everything seems to work fine.  I'm not sure if my swt is earlier than yours, but I think that fix is wrong.
Comment 6 David Li 2006-07-31 09:38:57 UTC
I have more recent version of azureus:

[ebuild   R   ] net-p2p/azureus-2.4.0.2  USE="-source" 0 kB
[ebuild   R   ] dev-java/swt-3.2-r1  USE="accessibility cairo gnome opengl -seamonkey -source" 0 kB [4]
Comment 7 Mark (voidzero) 2006-08-18 17:31:19 UTC
Hi guys,

I had this same problem. It occurred as soon as I created categories, and restarted the program. Think this is the source of the issue!

I spoke about it with someone (The_8472) in #azureus-support over at freenode, he told me that azureus 2402 was never tested against swt 3232, only against 3139. 3232 is intended for the next release.

I'm not familiar with development-level java myself but I hope these $0.02 help anyway. (:
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2006-08-27 03:07:29 UTC
*** Bug 143743 has been marked as a duplicate of this bug. ***
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2006-08-27 10:56:26 UTC
swt-3.2-r1 dropped the accessibility use flag and azureus now depends on that version. Thanks to compnerd and everyone in this bug.