Your message dated Mon, 03 Oct 2005 13:17:44 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#329744: fixed in kaya 0.1.24-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Sep 2005 06:35:45 +0000
>From [EMAIL PROTECTED] Thu Sep 22 23:35:44 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c219071.adsl.hansenet.de (localhost.localdomain) [213.39.219.71] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EIh9s-0006BE-00; Thu, 22 Sep 2005 23:35:44 -0700
Received: from aj by localhost.localdomain with local (Exim 4.52)
        id 1EIh9o-0006AW-H2; Fri, 23 Sep 2005 08:35:40 +0200
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: kaya: FTBFS (amd64): cast from 'void*' to 'int' loses precision
Message-Id: <[EMAIL PROTECTED]>
Date: Fri, 23 Sep 2005 08:35:40 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: kaya
Version: 0.1.24-1
Severity: serious
Tags: patch

When building 'kaya' on amd64/unstable,
I get the following error:

ValueFuns.h:93: warning: 'class ExceptionTable' has virtual functions but 
non-virtual destructor
Heap.h: In member function 'int Value::getInt()':
Heap.h:68: error: cast from 'void*' to 'int' loses precision
Heap.h: In member function 'void Value::addVal(Value*)':
Heap.h:132: error: cast from 'void*' to 'int' loses precision
Heap.h:132: error: cast from 'void*' to 'int' loses precision
Heap.h: In member function 'void Value::subVal(Value*)':
Heap.h:136: error: cast from 'void*' to 'int' loses precision
Heap.h:136: error: cast from 'void*' to 'int' loses precision
Heap.h: In member function 'void Value::mulVal(Value*)':
Heap.h:140: error: cast from 'void*' to 'int' loses precision
Heap.h:140: error: cast from 'void*' to 'int' loses precision
Heap.h: In member function 'void Value::divVal(Value*)':
Heap.h:144: error: cast from 'void*' to 'int' loses precision
Heap.h:144: error: cast from 'void*' to 'int' loses precision
make[2]: *** [Heap.o] Error 1
make[2]: Leaving directory `/kaya-0.1.24/rts'

With the attached patch 'kaya' can be compiled on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/kaya-0.1.24/libs/image.cc ./libs/image.cc
--- ../tmp-orig/kaya-0.1.24/libs/image.cc       2005-08-02 16:04:33.000000000 
+0000
+++ ./libs/image.cc     2005-09-23 06:01:04.000000000 +0000
@@ -23,7 +23,7 @@
     int x = p->sx;
     int y = p->sy;
     KayaValue img = KayaUnion(0,3);
-    KayaUnionSetArg(img,0,KayaInt((int)p));
+    KayaUnionSetArg(img,0,KayaInt((long)p));
     KayaUnionSetArg(img,1,KayaInt(x));
     KayaUnionSetArg(img,2,KayaInt(y));
     return img;
@@ -36,7 +36,7 @@
     int x = p->sx;
     int y = p->sy;
     KayaValue img = KayaUnion(0,3);
-    KayaUnionSetArg(img,0,KayaInt((int)p));
+    KayaUnionSetArg(img,0,KayaInt((long)p));
     KayaUnionSetArg(img,1,KayaInt(x));
     KayaUnionSetArg(img,2,KayaInt(y));
     return img;
diff -urN ../tmp-orig/kaya-0.1.24/rts/Heap.cc ./rts/Heap.cc
--- ../tmp-orig/kaya-0.1.24/rts/Heap.cc 2005-09-23 06:04:18.000000000 +0000
+++ ./rts/Heap.cc       2005-09-23 06:04:15.000000000 +0000
@@ -92,7 +92,7 @@
 void Value::str2int()
 {
     String* s=getString();
-    int val=(int)(strtol(s->getVal(),NULL,10));
+    long val=(long)(strtol(s->getVal(),NULL,10));
     setInt(val);
     m_funtable = inttable;
 }
@@ -134,11 +134,11 @@
 void Value::real2int()
 {
     double v=getReal();
-    setInt((int)v);
+    setInt((long)v);
     m_funtable = inttable;
 }
 
-void Value::setInt(int i)
+void Value::setInt(long i)
 {
     m_val=(void*)i;
     m_funtable = inttable;
diff -urN ../tmp-orig/kaya-0.1.24/rts/Heap.h ./rts/Heap.h
--- ../tmp-orig/kaya-0.1.24/rts/Heap.h  2005-09-23 06:04:18.000000000 +0000
+++ ./rts/Heap.h        2005-09-23 06:03:16.000000000 +0000
@@ -65,7 +65,7 @@
     valtype getType() { return m_funtable->getType(); }
 
     /// Get an integer out. Assumes you've checked/know.
-    int getInt() { return (int)m_val; };
+    long getInt() { return (long)m_val; };
     /// Get a real number out
     double getReal() { return ((Real*)m_val)->number; }
 
@@ -104,7 +104,7 @@
 
 
     /// Update to be an integer.
-    void setInt(int i);
+    void setInt(long i);
 
     /// Update to be a real
     void setReal(double i);
@@ -129,19 +129,19 @@
     }
 
     void addVal(Value* v) {
-       m_val=(void*)((int)m_val+(int)(v->m_val));
+       m_val=(void*)((long)m_val+(long)(v->m_val));
     }
 
     void subVal(Value* v) {
-       m_val=(void*)((int)m_val-(int)(v->m_val));
+       m_val=(void*)((long)m_val-(long)(v->m_val));
     }
 
     void mulVal(Value* v) {
-       m_val=(void*)((int)m_val*(int)(v->m_val));
+       m_val=(void*)((long)m_val*(long)(v->m_val));
     }
 
     void divVal(Value* v) {
-       m_val=(void*)((int)m_val/(int)(v->m_val));
+       m_val=(void*)((long)m_val/(long)(v->m_val));
     }
 
     /// Set an array element.
diff -urN ../tmp-orig/kaya-0.1.24/rts/KayaAPI.cc ./rts/KayaAPI.cc
--- ../tmp-orig/kaya-0.1.24/rts/KayaAPI.cc      2005-08-02 16:04:33.000000000 
+0000
+++ ./rts/KayaAPI.cc    2005-09-23 06:02:43.000000000 +0000
@@ -67,7 +67,7 @@
     return v->getString()->getVal();
 }
 
-void KayaSetInt(KayaValue v,int i)
+void KayaSetInt(KayaValue v,long i)
 {
     v->setInt(i);
 }
diff -urN ../tmp-orig/kaya-0.1.24/rts/KayaAPI.h ./rts/KayaAPI.h
--- ../tmp-orig/kaya-0.1.24/rts/KayaAPI.h       2005-08-02 16:04:33.000000000 
+0000
+++ ./rts/KayaAPI.h     2005-09-23 06:02:51.000000000 +0000
@@ -22,7 +22,7 @@
     KayaArray newKayaArray(int size);
 
     // Make new, initialised values.
-    KayaValue KayaInt(int x);
+    KayaValue KayaInt(long x);
     KayaValue KayaChar(char c);
     KayaValue KayaFloat(float f);
     KayaValue KayaString(char* str);
@@ -36,7 +36,7 @@
     KayaArray KayaGetArray(KayaValue v);
 
     // Set basic values
-    void KayaSetInt(KayaValue v,int i);
+    void KayaSetInt(KayaValue v,long i);
     void KayaSetChar(KayaValue v,char c);
     void KayaSetFloat(KayaValue v,double f);
     void KayaSetString(KayaValue v,char* s);
diff -urN ../tmp-orig/kaya-0.1.24/rts/ValueFuns.cc ./rts/ValueFuns.cc
--- ../tmp-orig/kaya-0.1.24/rts/ValueFuns.cc    2005-08-02 16:04:33.000000000 
+0000
+++ ./rts/ValueFuns.cc  2005-09-23 05:58:50.000000000 +0000
@@ -94,7 +94,7 @@
 /// This is probably quite meaningless
 Value* FnTable::cmp(Value* x, Value* y)
 {
-    return new Value((void*)((int)(x->getRaw())-(int)(y->getRaw())),inttable);
+    return new 
Value((void*)((long)(x->getRaw())-(long)(y->getRaw())),inttable);
 //    kaya_throw("Can't compare closures sensibly",1);
 //    return new Value(0,inttable);
 }

---------------------------------------
Received: (at 329744-close) by bugs.debian.org; 3 Oct 2005 20:18:24 +0000
>From [EMAIL PROTECTED] Mon Oct 03 13:18:24 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1EMWkq-0008Uy-00; Mon, 03 Oct 2005 13:17:44 -0700
From: Stuart Teasdale <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#329744: fixed in kaya 0.1.24-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Mon, 03 Oct 2005 13:17:44 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: kaya
Source-Version: 0.1.24-2

We believe that the bug you reported is fixed in the latest version of
kaya, which is due to be installed in the Debian FTP archive:

kaya_0.1.24-2.diff.gz
  to pool/main/k/kaya/kaya_0.1.24-2.diff.gz
kaya_0.1.24-2.dsc
  to pool/main/k/kaya/kaya_0.1.24-2.dsc
kaya_0.1.24-2_i386.deb
  to pool/main/k/kaya/kaya_0.1.24-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Teasdale <[EMAIL PROTECTED]> (supplier of updated kaya package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 23 Sep 2005 08:51:36 +0100
Source: kaya
Binary: kaya
Architecture: source i386
Version: 0.1.24-2
Distribution: unstable
Urgency: low
Maintainer: Stuart Teasdale <[EMAIL PROTECTED]>
Changed-By: Stuart Teasdale <[EMAIL PROTECTED]>
Description: 
 kaya       - A statically typed, imperative programming language
Closes: 329744
Changes: 
 kaya (0.1.24-2) unstable; urgency=low
 .
   * Patches for AMD64 building. Closes: #329744.
Files: 
 f0c46bd3431e0071e7187da670ca0e7a 650 devel extra kaya_0.1.24-2.dsc
 0c0715568672376fd1309d5e0129842f 27287 devel extra kaya_0.1.24-2.diff.gz
 d797bbd6eb3b36df87d43a3c1fee3e82 604152 devel extra kaya_0.1.24-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDQX4KITGblEwaW+URAoaLAJ4ynD3MWVpHjVSc40R8xrUxNlx6KACggv0u
YH66YWSV87RU9mnht75Q370=
=rXyv
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to