Your message dated Tue, 24 May 2005 00:02:41 -0500
with message-id <[EMAIL PROTECTED]>
and subject line closing bug
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; 3 Mar 2005 19:16:36 +0000
>From [EMAIL PROTECTED] Thu Mar 03 11:16:36 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D6voK-0000de-00; Thu, 03 Mar 2005 11:16:36 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
        id 1D6wke-0006vQ-D3; Thu, 03 Mar 2005 21:16:52 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: torcs: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses 
precision
Message-Id: <[EMAIL PROTECTED]>
Date: Thu, 03 Mar 2005 21:16:52 +0100
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-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: torcs
Severity: normal
Tags: patch

When building 'torcs' on amd64 with gcc-4.0,
I get the following error:

c++ -I/torcs-1.2.2/export/include  -g -O2 -Wall -Wstrict-prototypes -fPIC -O3 
-Wall -Wstrict-prototypes -fPIC -O3  -D_SVID_SOURCE -D_BSD_SOURCE -DSHM  -c 
guiscrollist.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
guiscrollist.cpp: In function 'void gfuiScroll(tScrollBarInfo*)':
guiscrollist.cpp:48: error: cast from 'void*' to 'int' loses precision
make[5]: *** [guiscrollist.o] Error 1
make[5]: Leaving directory `/torcs-1.2.2/src/libs/tgfclient'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/torcs-1.2.2/src/libs/tgfclient/guiscrollist.cpp 
./src/libs/tgfclient/guiscrollist.cpp
--- ../tmp-orig/torcs-1.2.2/src/libs/tgfclient/guiscrollist.cpp 2004-02-12 
19:12:26.000000000 +0100
+++ ./src/libs/tgfclient/guiscrollist.cpp       2005-03-03 20:47:17.680932251 
+0100
@@ -45,7 +45,7 @@
     tGfuiObject                *object;
     tGfuiScrollList    *scrollist;
     
-    object = gfuiGetObject(GfuiScreen, (int)(sinfo->userData));
+    object = gfuiGetObject(GfuiScreen, (long)(sinfo->userData));
     if (object == NULL) {
        return;
     }
diff -urN ../tmp-orig/torcs-1.2.2/src/modules/graphic/ssggraph/grmain.cpp 
./src/modules/graphic/ssggraph/grmain.cpp
--- ../tmp-orig/torcs-1.2.2/src/modules/graphic/ssggraph/grmain.cpp     
2004-02-12 19:12:29.000000000 +0100
+++ ./src/modules/graphic/ssggraph/grmain.cpp   2005-03-03 20:52:32.760116155 
+0100
@@ -156,7 +156,7 @@
 static void
 grSplitScreen(void *vp)
 {
-    int p = (int)vp;
+    long p = (long)vp;
 
     switch (p) {
     case GR_SPLIT_ADD:
@@ -198,19 +198,19 @@
 static void
 grSetZoom(void *vp)
 {
-    grGetcurrentScreen()->setZoom((int)vp);
+    grGetcurrentScreen()->setZoom((long)vp);
 }
 
 static void
 grSelectCamera(void *vp)
 {
-    grGetcurrentScreen()->selectCamera((int)vp);
+    grGetcurrentScreen()->selectCamera((long)vp);
 }
 
 static void
 grSelectBoard(void *vp)
 {
-    grGetcurrentScreen()->selectBoard((int)vp);
+    grGetcurrentScreen()->selectBoard((long)vp);
 }
 
 static void

---------------------------------------
Received: (at 297974-done) by bugs.debian.org; 24 May 2005 04:45:56 +0000
>From [EMAIL PROTECTED] Mon May 23 21:45:56 2005
Return-path: <[EMAIL PROTECTED]>
Received: from host54-233.pool8288.interbusiness.it (namrata.hipatia.info) 
[82.88.233.54] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DaRIh-0001Ni-00; Mon, 23 May 2005 21:45:56 -0700
Received: from jane.htu.pe (unknown [200.48.229.58])
        by namrata.hipatia.info (Postfix) with ESMTP id 588312FD95
        for <[EMAIL PROTECTED]>; Tue, 24 May 2005 06:29:39 +0000 (GMT)
Received: by jane.htu.pe (Postfix, from userid 1000)
        id EBC8E5FEB0; Tue, 24 May 2005 00:02:41 -0500 (PET)
Date: Tue, 24 May 2005 00:02:41 -0500
From: Rudy Godoy <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: closing bug
Message-ID: <[EMAIL PROTECTED]>
Mail-Followup-To: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="+SfteS7bOf3dGlBC"
Content-Disposition: inline
X-Operating-System: Debian GNU/Linux
Organization: htu
User-Agent: Mutt/1.5.9i
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-Status: No, hits=-1.0 required=4.0 tests=BAYES_00,RCVD_IN_DSBL 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--+SfteS7bOf3dGlBC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

A new version has been uploaded and it's available on unstable, this
includes the patch sent.

thanks.
Rudy

--=20
Rudy Godoy | 0x3433BD21 | http://stone-head.org               ,''`.
http://www.apesol.org  -  http://www.debian.org              : :' :
GPG FP: 0D12 8537 607E 2DF5 4EFB  35A7 550F 1A00 3433 BD21   `. `'
                                                               `-

--+SfteS7bOf3dGlBC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFCkrVxVQ8aADQzvSERAuuEAJ4jbDrkBereia/RhMllkf2lOHs+PACfdgZy
4ItfOBCiVQrAbkpGnj1ZVnc=
=5SNO
-----END PGP SIGNATURE-----

--+SfteS7bOf3dGlBC--


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

Reply via email to