synaptic: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision

Bug #15364 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
Ubuntu
Fix Released
High
Michael Vogt

Bug Description

Automatically imported from Debian bug report #290348 http://bugs.debian.org/290348

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #290348 http://bugs.debian.org/290348

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 13 Jan 2005 18:32:17 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: synaptic: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision

Package: synaptic
Severity: normal
Tags: patch

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

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I../pixmaps -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DSYNAPTIC_GLADEDIR=\""/usr/share/synaptic/glade/"\" -DSYNAPTIC_PIXMAPDIR=\""/usr/share/synaptic/pixmaps/"\" -DXTHREADS -I/usr/include/gtk-2.0 -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/libglade-2.0 -I/usr/include/libxml2 -DXTHREADS -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -g -O2 -MT rgmainwindow.o -MD -MP -MF ".deps/rgmainwindow.Tpo" -c -o rgmainwindow.o rgmainwindow.cc; \
then mv -f ".deps/rgmainwindow.Tpo" ".deps/rgmainwindow.Po"; else rm -f ".deps/rgmainwindow.Tpo"; exit 1; fi
rgmainwindow.cc: In static member function 'static void RGMainWindow::cbChangedView(GtkWidget*, void*)':
rgmainwindow.cc:2421: error: cast from 'void*' to 'int' loses precision
make[3]: *** [rgmainwindow.o] Error 1
make[3]: Leaving directory `/synaptic-0.55+cvs20041119/gtk'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/synaptic-0.55+cvs20041119/gtk/rgmainwindow.cc ./gtk/rgmainwindow.cc
--- ../tmp-orig/synaptic-0.55+cvs20041119/gtk/rgmainwindow.cc 2004-11-16 11:16:32.000000000 +0100
+++ ./gtk/rgmainwindow.cc 2005-01-13 18:03:42.986177287 +0100
@@ -2418,7 +2418,7 @@
    // cout << "cbChangedView()"<<endl;

    RGMainWindow *me = (RGMainWindow *) data;
- int view = (int)gtk_object_get_data(GTK_OBJECT(self), "index");
+ long view = (long)gtk_object_get_data(GTK_OBJECT(self), "index");
    me->changeView(view);
 }

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed in the current code in hoary.

Revision history for this message
In , Michael Vogt (mvo) wrote : Bug#290348: fixed in synaptic 0.57-1

Source: synaptic
Source-Version: 0.57-1

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

synaptic_0.57-1.diff.gz
  to pool/main/s/synaptic/synaptic_0.57-1.diff.gz
synaptic_0.57-1.dsc
  to pool/main/s/synaptic/synaptic_0.57-1.dsc
synaptic_0.57-1_i386.deb
  to pool/main/s/synaptic/synaptic_0.57-1_i386.deb
synaptic_0.57.orig.tar.gz
  to pool/main/s/synaptic/synaptic_0.57.orig.tar.gz

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 address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <email address hidden> (supplier of updated synaptic 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 address hidden>)

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

Format: 1.7
Date: Wed, 8 Jun 2005 13:41:53 +0200
Source: synaptic
Binary: synaptic
Architecture: source i386
Version: 0.57-1
Distribution: unstable
Urgency: low
Maintainer: Michael Vogt <email address hidden>
Changed-By: Michael Vogt <email address hidden>
Description:
 synaptic - Graphical package manager
Closes: 242037 275099 277473 277474 277475 290348 291195 292034 296551 308474
Changes:
 synaptic (0.57-1) unstable; urgency=low
 .
   * new upstream version
   * fixes ubuntu:
     - #10592 (month sorting)
     - #10756 (repositories lacks heading)
     - #10793 (quick intro should not be opened by default)
     - #10762 (can't purge when remove is already selected)
     - #10752 (should install into /usr/share/applications)
     - #8522 (synaptic uses su-to-root instead of gksudo in menu)
     - #7822 ("X" (window manager close) won't close install dialog)
     - #11029 (synaptic exits silently if another synaptic is running)
   * fixes debian:
     - closes: #308474 (can't purge a package that is marked for removal)
     - closes: #242037 (don't understand the difference between
                        smart upgrade and upgrade)
     - closes: #296551 (unresolved dependency error omits version information)
     - closes: #292034 (icon toolbar does not display)
     - closes: #291195 (text beside icons does not work)
     - closes: #290348 (gcc-4.0 build problem)
     - closes: #277475,#277474,#277473 (scrolling in download window)
     - closes: #275099 (visualisation problem)
   * updated i18n:
     - pt_BR, bg
Files:
 1092ef984d1f025fedd91a9ef0a19f4e 744 admin optional synaptic_0.57-1.dsc
 d1d5b63fb0a9b610779a9fc2cc108482 2505603 admin optional synaptic_0.57.orig.tar.gz
 832db86ed6790cbe6aa3f74de78843a6 19372 admin optional synaptic_0.57-1.diff.gz
 0cb3fcf07347efdc243a99a45821d716 1693628 admin optional synaptic_0.57-1_i386.deb

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

iD8DBQFCqDgCliSD4VZixzQRAmIfAJ9baoXwCizCmpppaCfmqNUJ6YhcsgCgkj2d
3+zXEF2fcAIuwkiZxPegE9U=
=nf6a
-----END PGP SIGNATURE-----

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.