[MacPorts] #20956: openjdk6: build fails on Snow Leopard with error during "corba-build"
MacPorts
noreply at macports.org
Thu Nov 4 12:46:52 PDT 2010
#20956: openjdk6: build fails on Snow Leopard with error during "corba-build"
------------------------------------+---------------------------------------
Reporter: dmz@… | Owner: landonf@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: | Port: openjdk6
------------------------------------+---------------------------------------
Comment(by johnsonlaucn@…):
Replying to [comment:53 davido@…]:
> It builds in 10.6.4 but any applications that have a GUI fail. JEdit
and a simple GUI test I threw together both threw a stacktrace that begins
the same way:
>
> Did the portfile changes remove the AWT/Swing build phases?
>
> {{{
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
> at sun.awt.X11.XIconInfo.<init>(XIconInfo.java:84)
> at sun.awt.X11.XWindowPeer.getDefaultIconInfo(XWindowPeer.java:420)
> at sun.awt.X11.XWindowPeer.updateIconImages(XWindowPeer.java:317)
> at sun.awt.X11.XWindowPeer.postInit(XWindowPeer.java:271)
> at sun.awt.X11.XDecoratedPeer.postInit(XDecoratedPeer.java:100)
> at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:83)
> at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:185)
> at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:261)
> at sun.awt.X11.XWindow.<init>(XWindow.java:117)
> at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:122)
> at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:43)
> at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:46)
> at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:110)
> at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:59)
> at sun.awt.X11.XFramePeer.<init>(XFramePeer.java:51)
> at sun.awt.X11.XToolkit.createFrame(XToolkit.java:351)
> at java.awt.Frame.addNotify(Frame.java:476)
> at java.awt.Window.pack(Window.java:695)
> at SampleDialog.init(SampleDialog.java:34)
> at SampleDialog.show(SampleDialog.java:76)
> at SampleDialog.main(SampleDialog.java:97)
> }}}
Thank you for your information.[[BR]]
I've tried on my MBP in 64bit kernel mode and confirmed this issue.[[BR]]
This issue happens only when a cross-compiling is performed since the
bootstrap JDK is 32bit only.[[BR]]
32bit kernel mode is not affected on my computer.[[BR]]
The makefile complains about loading dylib in wrong archietecture when
generating class file from PNG files,[[BR]]
which leaves invalid icon class files (sun/awt/X11/XAWTIcon*.class) packed
in the rt.jar and stops AWT applications from loading.[[BR]]
I'm still working on it. Hopefully I can find an easy way to solve
this.[[BR]]
In the mean time, replacing the invalid files should help you pass the
problem.
--
Ticket URL: <https://trac.macports.org/ticket/20956#comment:55>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list