[email protected]
[Top] [All Lists]

Bug#284864: marked as forwarded (kino: FTBFS (amd64/gcc-4.0): cast from

Subject: Bug#284864: marked as forwarded kino: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision
From: Debian Bug Tracking System
Date: Thu, 09 Dec 2004 01:18:19 -0800
Your message dated Thu, 9 Dec 2004 10:13:30 +0100
with message-id <[email protected]>
has caused the Debian Bug report #284864,
regarding kino: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses 
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(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 284864-forwarded) by bugs.debian.org; 9 Dec 2004 09:13:38 +0000
>From [email protected] Thu Dec 09 01:13:38 2004
Return-path: <[email protected]>
Received: from antares.tat.physik.uni-tuebingen.de [] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CcKMj-0006nA-00; Thu, 09 Dec 2004 01:13:38 -0800
Received: from localhost (localhost [])
        by antares.tat.physik.uni-tuebingen.de (Postfix) with ESMTP id 
        Thu,  9 Dec 2004 10:13:36 +0100 (CET)
Received: from antares.tat.physik.uni-tuebingen.de ([])
        by localhost (antares []) (amavisd-new, port 10024)
        with LMTP id 03500-08; Thu, 9 Dec 2004 10:13:30 +0100 (CET)
Received: by antares.tat.physik.uni-tuebingen.de (Postfix, from userid 1000)
        id 7327E4A639; Thu,  9 Dec 2004 10:13:30 +0100 (CET)
Date: Thu, 9 Dec 2004 10:13:30 +0100
From: Daniel Kobras <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: [[email protected]: Bug#284864: kino: FTBFS (amd64/gcc-4.0): cast from 
'void*' to 'int' loses precision]
Message-ID: <[email protected]>
Reply-To: [email protected],
        [email protected]
Mail-Followup-To: [email protected],
        [email protected]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at 
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
        HAS_PACKAGE autolearn=ham version=2.60-bugs.debian.org_2004_03_25


The following bug report describes a problem when compiling kino with
gcc 4.0 on 64bit platforms. I believe the patch Andreas proposes is a
correct fix to the problem. Alternatively, something like

        nodeid_t currentNode = (nodeid_t) (long) user_data;

should also work and make the type used more explicit.



----- Forwarded message from Andreas Jochens <[email protected]> -----

From: Andreas Jochens <[email protected]>
Date: Thu, 09 Dec 2004 09:28:56 +0100
To: Debian Bug Tracking System <[email protected]>
Reply-To: Andreas Jochens <[email protected]>, [email protected]
Subject: Bug#284864: kino: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' 
loses precision

Package: kino
Severity: normal
Tags: patch

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

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -DXTHREADS -DORBIT2=1 -pthread 
-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/libgnomeui-2.0 
-I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 
-I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 
-I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include 
-I/usr/include/bonobo-activation-2.0   -I/usr/include/libxml2   
-D_FILE_OFFSET_BITS=64 -DKINO_PLUGINDIR=\""/usr/lib/kino-gtk2"\" 
-DDATADIR=\""/usr/share"\" -D_REENTRANT    -g -O2 -MT preferences_dialog.o -MD 
-MP -MF ".deps/preferences_dialog.Tpo" -c -o preferences_dialog.o 
preferences_dialog.cc; \
then mv -f ".deps/preferences_dialog.Tpo" ".deps/preferences_dialog.Po"; else 
rm -f ".deps/preferences_dialog.Tpo"; exit 1; fi
preferences_dialog.cc: In function 'void on_avc_phyid_activate(GtkMenuItem*, 
preferences_dialog.cc:425: error: cast from 'void*' to 'int' loses precision
make[4]: *** [preferences_dialog.o] Error 1
make[4]: Leaving directory `/kino-0.75/src'

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

Andreas Jochens

diff -urN ../tmp-orig/kino-0.75/src/preferences_dialog.cc 
--- ../tmp-orig/kino-0.75/src/preferences_dialog.cc     2004-10-09 
00:44:55.000000000 +0200
+++ ./src/preferences_dialog.cc 2004-12-09 08:33:29.771268224 +0100
@@ -420,7 +420,7 @@
        on_avc_phyid_activate( GtkMenuItem * menu_item, gpointer user_data )
-               int currentNode = ( int ) user_data;
+               long currentNode = ( long ) user_data;
                static raw1394handle_t handle;
 #ifdef LIBRAW1394_OLD

----- End forwarded message -----

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

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#284864: marked as forwarded (kino: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision), Debian Bug Tracking System <=