Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Shaun Jackman
2005/9/13, Andreas Jochens [EMAIL PROTECTED]: On 05-Sep-13 15:09, Shaun Jackman wrote: Does the package actually run and work this way? If so, I'll simply apply your patch. Although, it is admittedly a bit of a hack. It _is_ a hack. I did not really check it intensively, but basically the

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Michael Koch
On Wed, Sep 14, 2005 at 09:18:48AM -0600, Shaun Jackman wrote: 2005/9/13, Andreas Jochens [EMAIL PROTECTED]: On 05-Sep-13 15:09, Shaun Jackman wrote: Does the package actually run and work this way? If so, I'll simply apply your patch. Although, it is admittedly a bit of a hack. It

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Shaun Jackman
2005/9/14, Michael Koch [EMAIL PROTECTED]: UURGH, NO. This will break SWT on 32 bit archs - if it works on 64 bit archs at all. You cannont compare normal C code with JNI C code. JNI C code has much higher restrictions. There's that cry of outrage! Hehe. Are there any 32-bit architectures

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Michael Koch
On Wed, Sep 14, 2005 at 09:52:00AM -0600, Shaun Jackman wrote: 2005/9/14, Michael Koch [EMAIL PROTECTED]: UURGH, NO. This will break SWT on 32 bit archs - if it works on 64 bit archs at all. You cannont compare normal C code with JNI C code. JNI C code has much higher restrictions.

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Shaun Jackman
2005/9/14, Michael Koch [EMAIL PROTECTED]: You replace jint (which is garanteed to be 32 bit) with long which dont has this garantee. Why dont you just build the native sources that upstream supplies for 64 bit systems? That is what I do in the eclipse build works very fine. BTW: My Eclipse

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Michael Koch
On Wed, Sep 14, 2005 at 01:05:50PM -0600, Shaun Jackman wrote: 2005/9/14, Michael Koch [EMAIL PROTECTED]: You replace jint (which is garanteed to be 32 bit) with long which dont has this garantee. Why dont you just build the native sources that upstream supplies for 64 bit systems?

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Shaun Jackman
2005/9/14, Michael Koch [EMAIL PROTECTED]: I just dont get why you wanna patch when upstream has already did the work for you and made SWT work on both types of platforms. And changing jint to long can cause bugs that are really hard to debug. Simply because maintaining two source trees

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-14 Thread Michael Koch
On Wed, Sep 14, 2005 at 01:40:54PM -0600, Shaun Jackman wrote: 2005/9/14, Michael Koch [EMAIL PROTECTED]: I just dont get why you wanna patch when upstream has already did the work for you and made SWT work on both types of platforms. And changing jint to long can cause bugs that are

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Shaun Jackman
SWT 3.1 does not build on 64 bit platforms due to numerous... cast from 'void*' to 'jint' loses precision ... errors [1]. The patch to fix this issue would be large, indeed. I'm inclined to remove the 64 bit platforms from the list of buildable architectures until this is fixed upstream.

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Andreas Jochens
On 05-Sep-13 10:52, Shaun Jackman wrote: SWT 3.1 does not build on 64 bit platforms due to numerous... cast from 'void*' to 'jint' loses precision ... errors [1]. The patch to fix this issue would be large, indeed. I'm inclined to remove the 64 bit platforms from the list of buildable

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Steve Langasek
On Tue, Sep 13, 2005 at 10:52:02AM -0600, Shaun Jackman wrote: SWT 3.1 does not build on 64 bit platforms due to numerous... cast from 'void*' to 'jint' loses precision ... errors [1]. The patch to fix this issue would be large, indeed. Why? Is jint externally defined, or is there some

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Michael Koch
On Tue, Sep 13, 2005 at 10:52:02AM -0600, Shaun Jackman wrote: SWT 3.1 does not build on 64 bit platforms due to numerous... cast from 'void*' to 'jint' loses precision ... errors [1]. The patch to fix this issue would be large, indeed. I'm inclined to remove the 64 bit platforms from

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Andreas Jochens
On 05-Sep-13 19:52, Kurt Roeckx wrote: Pretty please stop using longs as something that can hold a pointer. In general you should not cast a pointer to any integer type. If you really have to, use an intptr_t type. Believe me, a 'long' will do. There is no architecture where a 'long' can not

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Michael Koch
Hello Andreas, Redefining jint to something else will probably fix the warnings/errors but it will not work. Every virtual machine for Java on this planet expects jint to be exact 32 bit. The Java Language Specification mandates this. This is not changeable. Cheers, Michael -- Escape the Java

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Steve Langasek
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

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Christian T. Steigies
On Tue, Sep 13, 2005 at 10:52:02AM -0600, Shaun Jackman wrote: The build times out on m68k: make[1]: Entering directory `/build/buildd/swt-gtk-3.1' gcj -fPIC -fjni -c `find org -name *.java` make[1]: *** [java-stamp] Terminated make: *** [build-stamp] Terminated Build killed with signal 15

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Shaun Jackman
2005/9/13, Michael Koch [EMAIL PROTECTED]: 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. ... Perhaps I could run JNIGeneratorApp as part of the build process. Cheers, Shaun

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Shaun Jackman
2005/9/13, Steve Langasek [EMAIL PROTECTED]: 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 believe part of the issue is that the width of the type used in the Java sources

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Michael Koch
On Tue, Sep 13, 2005 at 03:16:55PM -0600, Shaun Jackman wrote: 2005/9/13, Steve Langasek [EMAIL PROTECTED]: 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 believe part

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Michael Koch
On Tue, Sep 13, 2005 at 03:12:07PM -0600, Shaun Jackman wrote: 2005/9/13, Michael Koch [EMAIL PROTECTED]: 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. ... Perhaps I

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Michael Koch
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

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Kurt Roeckx
On Tue, Sep 13, 2005 at 08:46:24PM +0200, Andreas Jochens wrote: On 05-Sep-13 19:52, Kurt Roeckx wrote: Pretty please stop using longs as something that can hold a pointer. In general you should not cast a pointer to any integer type. If you really have to, use an intptr_t type.

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Michael Koch
On Wed, Sep 14, 2005 at 12:01:27AM +0200, Kurt Roeckx wrote: On Tue, Sep 13, 2005 at 08:46:24PM +0200, Andreas Jochens wrote: On 05-Sep-13 19:52, Kurt Roeckx wrote: Pretty please stop using longs as something that can hold a pointer. In general you should not cast a pointer to any

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Andreas Jochens
On 05-Sep-14 00:01, Kurt Roeckx wrote: On Tue, Sep 13, 2005 at 08:46:24PM +0200, Andreas Jochens wrote: Using 'intptr_t' will lead to problems because older C environments do not know about it and sometimes 'configure' scripts do ugly things with 'intptr_t'. As an example, 'e2fsprogs'

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-09-13 Thread Andreas Jochens
On 05-Sep-13 15:09, Shaun Jackman wrote: Does the package actually run and work this way? If so, I'll simply apply your patch. Although, it is admittedly a bit of a hack. It _is_ a hack. I did not really check it intensively, but basically the package seems to work with it. However, a real fix

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-08-19 Thread Kurt Roeckx
Package: swt-gtk Version: 3.0+3.1M4-4 Severity: serious Hi, Your package is failing to build on 64 bit arches with the following error: g++ -O -DXPCOM_GLUE=1 -DMOZILLA_STRICT_API=1 -fno-rtti -fno-exceptions -Wall -DSWT_VERSION=3116 -Wno-non-virtual-dtor -fPIC -I. -I/usr/include/mozilla

Bug#324030: swt-gtk: FTBFS on 64 bit arches: error: cast from 'void*' to 'jint' loses precision

2005-08-19 Thread Shaun Jackman
There have been two releases since 3.1M4, namely 3.1 and 3.2M1. From Eclipse's download page I see that 3.1 was released for Linux x86_64, so I suspect these bugs were fixed upstream. So, this should be fixed once I package SWT 3.1. Cheers, Shaun 2005/8/19, Kurt Roeckx [EMAIL PROTECTED]: