Re: Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision
On Tue, Sep 13, 2005 at 12:20:03PM -0700, Steve Langasek wrote:
> On Tue, Sep 13, 2005 at 08:17:39PM +0200, Michael Koch wrote:
> > SWT generally runs on 64 bit archs. I built my Eclipse packages on amd64.
> > The problems is that you need to run JNIGeneratorApp on the sources. This
> > application replaces the integers used normally on 32-bit archs with longs
> > for 64-bit archs. Its IMO a bad design but the SWT people took this approach
> > to not need to use 8 byte variables to store pointers in them on 32-bit archs.
> Which is a pretty lame excuse, because sizeof(long) == 4 on 32-bit archs
> (not just Linux but most other platforms as well), and sizeof(long) == 8
> on 64-bit archs...
I dont think its a good idea either. Its just way they built it and its not so easy
to fix it in Debian only. Upstream definitely rejects patches doing this.
RedHat tried it.
Escape the Java Trap with GNU Classpath!
Join the community at http://planet.classpath.org/