[email protected]
[Top] [All Lists]

Bug#298418: marked as forwarded (starplot: FTBFS (amd64/gcc-4.0): cast f

Subject: Bug#298418: marked as forwarded starplot: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision
From: Debian Bug Tracking System
Date: Sat, 12 Mar 2005 09:48:37 -0800
Your message dated Sat, 12 Mar 2005 18:35:55 +0100
with message-id <[email protected]>
has caused the Debian Bug report #298418,
regarding starplot: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses 
to be marked as having been forwarded to the upstream software
author(s) "Kevin B. McCarty" <[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 298418-forwarded) by bugs.debian.org; 12 Mar 2005 17:42:13 +0000
>From [email protected] Sat Mar 12 09:42:13 2005
Return-path: <[email protected]>
Received: from smtp110.mail.sc5.yahoo.com [] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1DAAcv-0007SK-00; Sat, 12 Mar 2005 09:42:13 -0800
Received: from unknown (HELO ? ([email protected] with 
  by smtp110.mail.sc5.yahoo.com with SMTP; 12 Mar 2005 17:35:32 -0000
Subject: [Fwd: Bug#298418: starplot: FTBFS (amd64/gcc-4.0): cast from
        'void*' to 'int' loses precision]
From: Francisco =?ISO-8859-1?Q?Garc=EDa?= <[email protected]>
Reply-To: [email protected]
To: "Kevin B. McCarty" <[email protected]>
Cc: [email protected]
Content-Type: multipart/signed; micalg=pgp-sha1; 
protocol="application/pgp-signature"; boundary="=-9I+lLnm8cjLLkgc/P8DY"
Message-Id: <[email protected]>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6 
Date: Sat, 12 Mar 2005 18:35:55 +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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Kevin,
How are you?,

Andreas J. archived a Bug against Starplot,
he send a patch to fix a problem with a casting data types,=20
compiling with gcc-4.0 in amd64.

Please, take a look to it and fix it in your original
source code.

Best regards,
Francisco Garc=C3=ADa.

-----Mensaje reenviado-----=20
> From: Andreas Jochens <[email protected]>
> To: Debian Bug Tracking System <[email protected]>
> Subject: Bug#298418: starplot: FTBFS (amd64/gcc-4.0): cast from 'void*' t=
o 'int' loses precision
> Date: Mon, 07 Mar 2005 15:02:27 +0100
> Package: starplot
> Severity: normal
> Tags: patch
> When building 'starplot' on amd64 with gcc-4.0,
> I get the following error:
> if g++ -DHAVE_CONFIG_H -I. -I. -I..    -Wall `pkg-config --cflags gtk+-2.=
0` -DDOCDIR=3D\"/usr/share/doc/starplot\" -DSTARPLOT_VERSION=3D\"0.95\" -DD=
ATADIR=3D\"/usr/share/starplot\" -DLOCALEDIR=3D\"/usr/share/locale\" -g -O2=
 -MT starplot-infodialogs.o -MD -MP -MF ".deps/starplot-infodialogs.Tpo" -c=
 -o starplot-infodialogs.o `test -f 'gui/infodialogs.cc' || echo './'`gui/i=
nfodialogs.cc; \
> then mv -f ".deps/starplot-infodialogs.Tpo" ".deps/starplot-infodialogs.P=
o"; else rm -f ".deps/starplot-infodialogs.Tpo"; exit 1; fi
> gui/infodialogs.cc: In function 'void print_double_to_text(GtkTreeViewCol=
umn*, GtkCellRenderer*, GtkTreeModel*, GtkTreeIter*, void*)':
> gui/infodialogs.cc:147: error: cast from 'void*' to 'int' loses precision
> gui/../classes/colors.h: At global scope:
> gui/../classes/colors.h:44: warning: 'CLASS_COLORS' defined but not used
> make[3]: *** [starplot-infodialogs.o] Error 1
> make[3]: Leaving directory `/starplot-0.95/src'
> With the attached patch 'starplot' can be compiled
> on amd64 using gcc-4.0.
> Regards
> Andreas Jochens
> diff -urN ../tmp-orig/starplot-0.95/src/gui/infodialogs.cc ./src/gui/info=
> --- ../tmp-orig/starplot-0.95/src/gui/infodialogs.cc  2004-08-20 19:53:30.=
000000000 +0200
> +++ ./src/gui/infodialogs.cc  2005-03-07 14:53:03.728160917 +0100
> @@ -144,7 +144,7 @@
>    /* Free the previous (default) text of the column's renderer. */
>    g_free (cell_text->text);
>    /* Get the double value from the model. */
> -  gtk_tree_model_get (treemodel, iter, (int)data, &d, -1);
> +  gtk_tree_model_get (treemodel, iter, (long)data, &d, -1);
>    /* Now we can format the value ourselves. */
>    cell_text->text =3D g_strdup (starstrings::ftoa(d, 4).c_str());
>  }

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada

Version: GnuPG v1.2.5 (GNU/Linux)



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

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