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=\"/usr/share/doc/starplot\" -DSTARPLOT_VERSION=\"0.95\" 
-DDATADIR=\"/usr/share/starplot\" -DLOCALEDIR=\"/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/infodialogs.cc; \
then mv -f ".deps/starplot-infodialogs.Tpo" ".deps/starplot-infodialogs.Po"; 
else rm -f ".deps/starplot-infodialogs.Tpo"; exit 1; fi
gui/infodialogs.cc: In function 'void print_double_to_text(GtkTreeViewColumn*, 
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/infodialogs.cc
--- ../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 = g_strdup (starstrings::ftoa(d, 4).c_str());
 }


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

Reply via email to