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

Bug#294651: xt-toolbuslib: FTBFS (amd64/gcc-4.0): static declaration of 'hash_table' follows non-static declaration



Package: xt-toolbuslib
Severity: normal
Tags: patch

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

gcc -DPACKAGE=\"toolbuslib\" -DVERSION=\"0.5.1\" -DHAVE_STRERROR=1 -DHAVE_STRDUP=1  -I. -I.  -I.    -Wall -g -O2 -c symbol.c
symbol.c:44: error: static declaration of 'hash_table' follows non-static declaration
symbol.h:53: error: previous declaration of 'hash_table' was here
symbol.c:45: error: static declaration of 'idx_table' follows non-static declaration
symbol.h:54: error: previous declaration of 'idx_table' was here
make[2]: *** [symbol.o] Error 1
make[2]: Leaving directory `/xt-toolbuslib-0.5.1/libtb'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/xt-toolbuslib-0.5.1/libtb/symbol.h ./libtb/symbol.h
--- ../tmp-orig/xt-toolbuslib-0.5.1/libtb/symbol.h	2001-11-25 14:37:26.000000000 +0100
+++ ./libtb/symbol.h	2005-02-10 23:29:35.928754345 +0100
@@ -50,9 +50,6 @@
 #define IDM_ALL        -1
 #define IDM_INTERNAL	0
 
-extern name_bucket *hash_table[];
-extern name_bucket *idx_table[];
-
 typedef struct expr_sign {
   sym_idx name;
   type   *restype;
diff -urN ../tmp-orig/xt-toolbuslib-0.5.1/debian/control ./debian/control
--- ../tmp-orig/xt-toolbuslib-0.5.1/debian/control	2005-02-10 23:29:40.469876162 +0100
+++ ./debian/control	2005-02-10 23:18:41.000000000 +0100
@@ -7,7 +7,7 @@
 Standards-Version: 3.6.1
 
 Package: xt-toolbuslib
-Architecture: i386 s390 sparc powerpc hppa arm mipsel mips m68k
+Architecture: amd64 arm hppa i386 m68k mips mipsel powerpc ppc64 s390 sparc
 Replaces: cwi-toolbuslib, xt-sdf2, xt-sdf2-dev
 Conflicts: cwi-toolbuslib
 Depends: ${shlibs:Depends}, xt-aterm-dev



Reply to: