Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56183 - GCJ 3.4.0 should not be configured to use xlib peers
Summary: GCJ 3.4.0 should not be configured to use xlib peers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-05 14:42 UTC by csm
Modified: 2004-07-11 13:34 UTC (History)
0 users

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


Attachments
Build GCJ GTK peers instead of xlib peers. (gcc-3.4-gtk-gentoo.patch,1000 bytes, patch)
2004-07-09 22:16 UTC, csm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description csm 2004-07-05 14:42:23 UTC
The xlib peers are quite deprecated in libjava 3.4.0 (while they presumably still work, the core libraries (derived from GNU Classpath) will not work with them).

The xlib peers should no longer be used, as they are not maintained. The GTK peers should be used in favor, by specifying the '--enable-java-awt=gtk' flag to configure, naturally by inspecting USE first.

Reproducible: Always
Steps to Reproduce:
1. Install gcjwebplugin (or, probably, any GUI program) compiled against gcj 3.4.0.
2. export LD_LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/
3. Run 'gcjappletviewer URL'

Actual Results:  
Throws this exception:

java.lang.ClassCastException: gnu.awt.xlib.XToolkit cannot be cast to
gnu.java.awt.ClasspathToolkit

Expected Results:  
Not thrown that specific exception (a different exception perhaps, because the
AWT code is still immature).

Yes, gcc-3.4.0 is masked for x86. Regardless, new installations of GCJ 3.4.0 or
later should not use the xlib peers.
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-07-09 09:13:38 UTC
i'm not a gcj person. mind sending a patch against the 3,4,1 ebuild?
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-07-09 09:14:45 UTC
also, what version of gtk does this use? 1.x? 2.x?
Comment 3 csm 2004-07-09 22:16:52 UTC
Created attachment 35097 [details, diff]
Build GCJ GTK peers instead of xlib peers.

Ok, and 2.x.
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2004-07-11 13:34:48 UTC
thanks for the heads up :)
fixed in cvs, give it a bit to reach rsync