Package: gpsim Severity: normal Tags: patch When building 'gpsim' on amd64 with gcc-4.0, I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D "DATADIR=\"~/.gpsim/\"" -g -O2 -Wall -D "DATADIR=\"~/ .gpsim/\"" -Wp,-MD,.deps/gui_trace.pp -c gui_trace.c -fPIC -DPIC -o gui_trace.l o gui_trace.c:63: error: static declaration of 'normal_style' follows non-static d eclaration gui.h:610: error: previous declaration of 'normal_style' was here With the attached patch 'gpsim' can be compiled on amd64 using gcc-4.0. The attached patch contains a patch which was already necessary for gcc-3.4. The patch also changes the Build-Depends from 'libreadline4-dev' to 'libreadline5-dev' in debian/control. Regards Andreas Jochens diff -urN ../tmp-orig/gpsim-0.20.14/debian/control ./debian/control --- ../tmp-orig/gpsim-0.20.14/debian/control 2005-02-04 22:18:35.185230774 +0100 +++ ./debian/control 2005-02-04 21:54:19.000000000 +0100 @@ -2,7 +2,7 @@ Section: electronics Priority: optional Maintainer: Stephen M Moraco <[EMAIL PROTECTED]> -Build-Depends: debhelper (>> 4.0.0), automake, libreadline4-dev, libncurses5-dev, libpopt-dev, libglib1.2-dev, libgtk1.2-dev, libgtkextra-dev, xlibs-dev, libtool, flex, exdbm, autotools-dev, bison +Build-Depends: debhelper (>> 4.0.0), automake, libreadline5-dev, libncurses5-dev, libpopt-dev, libglib1.2-dev, libgtk1.2-dev, libgtkextra-dev, xlibs-dev, libtool, flex, exdbm, autotools-dev, bison Standards-Version: 3.5.9 Package: gpsim diff -urN ../tmp-orig/gpsim-0.20.14/gui/gui.h ./gui/gui.h --- ../tmp-orig/gpsim-0.20.14/gui/gui.h 2001-12-06 15:53:16.000000000 +0100 +++ ./gui/gui.h 2005-02-04 22:11:58.748812452 +0100 @@ -607,7 +607,6 @@ extern GdkColor pm_has_changed_color; extern GdkColor normal_pm_bg_color; -extern GtkStyle *normal_style; extern GtkStyle *current_line_number_style; extern GtkStyle *breakpoint_line_number_style; diff -urN ../tmp-orig/gpsim-0.20.14/src/modules.h ./src/modules.h --- ../tmp-orig/gpsim-0.20.14/src/modules.h 2005-02-04 22:18:35.175232705 +0100 +++ ./src/modules.h 2005-02-04 21:51:39.000000000 +0100 @@ -128,7 +128,7 @@ public: char *names[2]; - ExternalModule * (*module_constructor) (char *module_name=NULL); + ExternalModule * (*module_constructor) (char *module_name); }; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]