Package: autoprofile
Version: 2.10-1
Severity: normal
Tags: patch

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

gcc -O2 -Wall -fpic -g -I../gaim -I../gaim/src -I../.. -I../../src 
-I/usr/include/gaim -I/usr/include/gaim/src -I/usr/include 
-I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/include/pango-1.0 
-I/usr/include/atk-1.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include 
-I/usr/include -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/lib/glib-2.0/include 
-I/usr/lib/gtk-2.0/include `pkg-config --cflags gtk+-2.0 gaim` -DHAVE_CONFIG_H 
-c src/gtk_away_msgs.c -o src/gtk_away_msgs.o
src/gtk_away_msgs.c:64: error: static declaration of 'awayqueue' follows 
non-static declaration
/usr/include/gaim/away.h:42: error: previous declaration of 'awayqueue' was here
src/gtk_away_msgs.c:66: error: static declaration of 'awayqueuestore' follows 
non-static declaration
/usr/include/gaim/away.h:43: error: previous declaration of 'awayqueuestore' 
was here
make[1]: *** [src/gtk_away_msgs.o] Error 1
make[1]: Leaving directory `/autoprofile-2.10'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/autoprofile-2.10/src/gtk_away_msgs.c ./src/gtk_away_msgs.c
--- ../tmp-orig/autoprofile-2.10/src/gtk_away_msgs.c    2004-09-03 
20:41:23.000000000 +0200
+++ ./src/gtk_away_msgs.c       2005-06-19 08:29:29.000000000 +0200
@@ -61,6 +61,9 @@
 
 /* Queue variables */
 static GtkWidget *awayqueuebox = NULL;
+#define awayqueue local_awayqueue
+#define awayqueuesw local_awayqueuesw
+#define awayqueuestore local_awayqueuestore
 static GtkWidget *awayqueue = NULL;
 static GtkWidget *awayqueuesw = NULL;
 static GtkListStore *awayqueuestore = NULL;


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

Reply via email to