Package: gq
Severity: normal
Tags: patch

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

x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -DXTHREADS -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/include/freetype2  -Wall -g -O2 -DXTHREADS 
-I/usr/include/libxml2 -W -Wno-unused -Wmissing-declarations -Wcast-align 
-Wpointer-arith -Wfloat-equal -DLOCALEDIR=\"/usr/share/locale\" -c `test -f 
'mainwin.c' || echo './'`mainwin.c
In file included from mainwin.c:38:
configfile.h:223: error: array type has incomplete element type
configfile.h:224: error: array type has incomplete element type
configfile.h:225: error: array type has incomplete element type
mainwin.c: In function 'enter_last_of_mode':
mainwin.c:91: warning: cast to pointer from integer of different size
mainwin.c: In function 'remove_tab':
mainwin.c:478: warning: cast to pointer from integer of different size
make[3]: *** [mainwin.o] Error 1
make[3]: Leaving directory `/gq-1.0beta1/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/gq-1.0beta1/src/configfile.c ./src/configfile.c
--- ../tmp-orig/gq-1.0beta1/src/configfile.c    2003-11-03 22:34:52.000000000 
+0100
+++ ./src/configfile.c  2005-03-17 17:54:25.589699297 +0100
@@ -54,7 +54,7 @@
 struct gq_config *config;
 GList *transient_servers = NULL;
 
-const struct tokenlist token_searchargument[] = {
+const struct tokenlist *token_searchargument = {
      { SEARCHARG_BEGINS_WITH, "Begins with",   NULL },
      { SEARCHARG_ENDS_WITH,   "Ends with",     NULL },
      { SEARCHARG_CONTAINS,    "Contains",      NULL },
@@ -62,14 +62,14 @@
      { 0, "",                                  NULL }
 };
 
-const struct tokenlist token_bindtype[] = {
+const struct tokenlist *token_bindtype = {
      { BINDTYPE_SIMPLE,    "Simple",           NULL },
      { BINDTYPE_KERBEROS,  "Kerberos",         NULL },
      { BINDTYPE_SASL,      "SASL",             NULL },
      { 0, "",                                  NULL }
 };
 
-const struct tokenlist token_ldifformat[] = {
+const struct tokenlist *token_ldifformat = {
      { LDIF_UMICH,         "UMich",            NULL },
      { LDIF_V1,            "Version1",         NULL },
      { 0, "",                                  NULL }
diff -urN ../tmp-orig/gq-1.0beta1/src/configfile.h ./src/configfile.h
--- ../tmp-orig/gq-1.0beta1/src/configfile.h    2003-11-03 22:34:52.000000000 
+0100
+++ ./src/configfile.h  2005-03-17 17:54:04.271722654 +0100
@@ -220,9 +220,9 @@
 extern struct gq_config *config;
 extern GList *transient_servers;
 
-extern const struct tokenlist token_bindtype[];
-extern const struct tokenlist token_ldifformat[];
-extern const struct tokenlist token_searchargument[];
+extern const struct tokenlist *token_bindtype;
+extern const struct tokenlist *token_ldifformat;
+extern const struct tokenlist *token_searchargument;
 
 #endif
 


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

Reply via email to