--- Begin Message ---
Subject: |
Bug#263737: tlf: FTBFS with gcc-3.4: 'cluster' redeclared as different kind of symbol |
Date: |
Thu, 05 Aug 2004 16:04:35 +0200 |
Package: tlf
Severity: normal
Tags: patch
When building 'tlf' with gcc-3.4 I get the following error:
cluster_bg.c: In function `cluster_bg':
cluster_bg.c:15: error: 'cluster' redeclared as different kind of symbol
cluster_bg.c:10: error: previous definition of 'cluster' was here
make[3]: *** [cluster_bg.o] Error 1
make[3]: Leaving directory `/tlf-0.9.20/src'
With the attached patch 'tlf' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/tlf-0.9.20/src/cluster_bg.c ./src/cluster_bg.c
--- ../tmp-orig/tlf-0.9.20/src/cluster_bg.c 2004-07-15 10:38:55.000000000
+0200
+++ ./src/cluster_bg.c 2004-08-05 15:56:57.795267891 +0200
@@ -12,7 +12,6 @@
extern char spot_ptr[MAX_SPOTS][82];
extern int spotarray[MAX_SPOTS];
extern char spotinfo[32][82];
-extern int cluster;
extern int announcefilter;
extern int bandinx;
diff -urN ../tmp-orig/tlf-0.9.20/src/parse_logcfg.c ./src/parse_logcfg.c
--- ../tmp-orig/tlf-0.9.20/src/parse_logcfg.c 2004-08-05 15:58:45.859741436
+0200
+++ ./src/parse_logcfg.c 2004-08-05 15:57:54.668932913 +0200
@@ -170,7 +170,7 @@
extern char bc_hostaddress[MAXNODES][16];
extern int lan_active;
extern char thisnode;
- extern char nodes;
+ extern int nodes;
extern int node;
extern int cqwwm2;
extern int landebug;
diff -urN ../tmp-orig/tlf-0.9.20/src/searchcallarray.c ./src/searchcallarray.c
--- ../tmp-orig/tlf-0.9.20/src/searchcallarray.c 2004-07-12
11:30:54.000000000 +0200
+++ ./src/searchcallarray.c 2004-08-05 15:58:14.421999105 +0200
@@ -25,7 +25,6 @@
int searchcallarray (char *hiscall)
{
- extern char hiscall[];
extern int callarray_nr;
extern char callarray[MAX_CALLS][20];
diff -urN ../tmp-orig/tlf-0.9.20/src/splitscreen.c ./src/splitscreen.c
--- ../tmp-orig/tlf-0.9.20/src/splitscreen.c 2004-07-15 10:54:38.000000000
+0200
+++ ./src/splitscreen.c 2004-08-05 15:58:39.123082044 +0200
@@ -723,7 +723,7 @@
extern SCREEN *packetscreen;
extern WINDOW *sclwin;
extern WINDOW *entwin;
-extern char spot_ptr[100][80];
+extern char spot_ptr[100][82];
extern int tncport;
extern int fdSertnc;
extern int fdFIFO;
--- End Message ---