[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#286964: guppi: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment



Package: guppi
Severity: normal
Tags: patch

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

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../.. -I/usr/include -I../.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/include/gnome-1.0 -I/usr/include/freetype2 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gnome-xml -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/l
 ib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/freetype2 -I/usr/include/gnome-xml -I/usr/include -I/usr/include/orbit-1.0 -DG_LOG_DOMAIN=\"libguppiuseful\" -DGUPPI_PREFIX=\"/usr\" -DGUPPI_PLUGINS=\"/usr/lib/guppi/plug-ins/0.40.3\" -DGUPPI_PIXMAPS=\"/usr/share/pixmaps/guppi\" -DGUPPI_SCRIPTS=\"/usr/share/guppi/scripts\" -DGUPPI_GLADE_DIR=\"/usr/share/guppi/glade\" -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -Wp,-MD,.deps/guppi-plug-in.pp -c guppi-plug-in.c  -fPIC -DPIC -o guppi-plug-in.o
guppi-plug-in.c: In function 'guppi_plug_in_finalize':
guppi-plug-in.c:50: error: invalid lvalue in assignment
make[4]: *** [guppi-plug-in.lo] Error 1
make[4]: Leaving directory `/guppi-0.40.3/src/libguppiuseful'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/guppi-0.40.3/src/libguppidata/guppi-data.c ./src/libguppidata/guppi-data.c
--- ../tmp-orig/guppi-0.40.3/src/libguppidata/guppi-data.c	2001-11-19 06:40:40.000000000 +0100
+++ ./src/libguppidata/guppi-data.c	2004-12-23 09:13:28.000000000 +0100
@@ -1075,11 +1075,11 @@
 }
 
 /* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** */
+static void build_menu (GuppiData *, GtkMenu *, gpointer);
 
 static void
 guppi_data_class_init (GuppiDataClass *klass)
 {
-  static void build_menu (GuppiData *, GtkMenu *, gpointer);
 
   GtkObjectClass *object_class = (GtkObjectClass *) klass;
 
diff -urN ../tmp-orig/guppi-0.40.3/src/libguppidata/guppi-seq-scalar.c ./src/libguppidata/guppi-seq-scalar.c
--- ../tmp-orig/guppi-0.40.3/src/libguppidata/guppi-seq-scalar.c	2002-01-14 06:01:17.000000000 +0100
+++ ./src/libguppidata/guppi-seq-scalar.c	2004-12-23 09:14:31.000000000 +0100
@@ -1771,11 +1771,11 @@
 }
 
 /* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** */
+static GtkWidget *info_display (GuppiData *);
 
 static void
 guppi_seq_scalar_class_init (GuppiSeqScalarClass *klass)
 {
-  static GtkWidget *info_display (GuppiData *);
 
   GtkObjectClass *object_class = (GtkObjectClass *) klass;
   GuppiDataClass *data_class = GUPPI_DATA_CLASS (klass);
diff -urN ../tmp-orig/guppi-0.40.3/src/libguppiplot/guppi-axis-markers.c ./src/libguppiplot/guppi-axis-markers.c
--- ../tmp-orig/guppi-0.40.3/src/libguppiplot/guppi-axis-markers.c	2002-01-21 04:19:05.000000000 +0100
+++ ./src/libguppiplot/guppi-axis-markers.c	2004-12-23 09:23:03.000000000 +0100
@@ -47,10 +47,11 @@
 
 static guint gam_signals[LAST_SIGNAL] = { 0 };
 
+static void clear (GuppiAxisMarkers *);
+
 static void
 guppi_axis_markers_finalize (GtkObject * obj)
 {
-  static void clear (GuppiAxisMarkers *);
   GuppiAxisMarkers *gal = GUPPI_AXIS_MARKERS (obj);
 
   guppi_finalized (obj);
diff -urN ../tmp-orig/guppi-0.40.3/src/libguppiplot/guppi-root-group-item.c ./src/libguppiplot/guppi-root-group-item.c
--- ../tmp-orig/guppi-0.40.3/src/libguppiplot/guppi-root-group-item.c	2004-12-23 09:43:55.419280432 +0100
+++ ./src/libguppiplot/guppi-root-group-item.c	2004-12-23 09:21:43.000000000 +0100
@@ -153,10 +153,11 @@
   guppi_canvas_item_set_bbox_c (item, 0, 0, xsize, ysize);
 }
 
+static void canv_size_allocate (GtkWidget *, GtkAllocation *, gpointer);
+
 static void
 changed_scale (GuppiCanvasItem *item, double scale)
 {
-  static void canv_size_allocate (GtkWidget *, GtkAllocation *, gpointer);
   GuppiRootGroupItem *root_item = GUPPI_ROOT_GROUP_ITEM (item);
 
   if (GUPPI_CANVAS_ITEM_CLASS (parent_class)->changed_scale)
diff -urN ../tmp-orig/guppi-0.40.3/src/libguppispecfns/mconf.h ./src/libguppispecfns/mconf.h
--- ../tmp-orig/guppi-0.40.3/src/libguppispecfns/mconf.h	2001-11-19 06:40:45.000000000 +0100
+++ ./src/libguppispecfns/mconf.h	2004-12-23 09:11:52.000000000 +0100
@@ -139,9 +139,6 @@
 
 int mtherr (const char *fctnam, int code);
 
-/* Variable for error reporting.  See mtherr.c.  */
-extern int merror;
-
 END_GUPPI_DECLS
 
 #endif /* __MCONF_H__ */
diff -urN ../tmp-orig/guppi-0.40.3/src/libguppiuseful/guppi-plug-in.c ./src/libguppiuseful/guppi-plug-in.c
--- ../tmp-orig/guppi-0.40.3/src/libguppiuseful/guppi-plug-in.c	2001-09-08 07:49:59.000000000 +0200
+++ ./src/libguppiuseful/guppi-plug-in.c	2004-12-23 09:09:58.000000000 +0100
@@ -47,7 +47,7 @@
 
   guppi_finalized (obj);
 
-  guppi_free0 ((gpointer)pi->load_path);
+  guppi_free0 (pi->load_path);
 
   if (parent_class->finalize)
     parent_class->finalize (obj);



Reply to: