Package: hf
Severity: normal
Tags: patch

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

fskl1.h:98: error: previous declaration of 'last_time' was here
fskl1.c:54: error: static declaration of 'l1rxslots' follows non-static 
declaration
fskl1.h:103: error: previous declaration of 'l1rxslots' was here
fskl1.c:55: error: static declaration of 'l1txslots' follows non-static 
declaration
fskl1.h:104: error: previous declaration of 'l1txslots' was here
fskl1.c:56: error: static declaration of 'isintab' follows non-static 
declaration
fskl1.h:105: error: previous declaration of 'isintab' was here
fskl1.c:62: error: static declaration of 'tx_phase' follows non-static 
declaration
fskl1.h:110: error: previous declaration of 'tx_phase' was here
fskl1.c:63: error: static declaration of 'fsk_freq' follows non-static 
declaration
fskl1.h:111: error: previous declaration of 'fsk_freq' was here
make[4]: *** [fskl1.o] Error 1
make[4]: Leaving directory `/hf-0.7.2/hfkernel/fsk'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/hf-0.7.2/hfkernel/fsk/fskl1.h ./hfkernel/fsk/fskl1.h
--- ../tmp-orig/hf-0.7.2/hfkernel/fsk/fskl1.h   2005-01-19 20:47:22.000000000 
+0100
+++ ./hfkernel/fsk/fskl1.h      2005-03-01 18:21:25.514849961 +0100
@@ -95,20 +95,14 @@
 };
 extern struct corr_cache corr_cache[CORRELATOR_CACHE]; 
 
-extern l1_time_t last_time; 
 extern pthread_cond_t l1cond;
 extern pthread_mutex_t l1mutex;
 #define NUMRXSLOTS 20
 #define NUMTXSLOTS 4
-extern struct l1rxslots l1rxslots[NUMRXSLOTS];
-extern struct l1txslots l1txslots[NUMTXSLOTS];
-extern int isintab[SINTABSIZE+SINTABSIZE/4];
 #ifdef HFMODEM_FLOAT
 extern float fsintab[SINTABSIZE+SINTABSIZE/4];
 #endif /* HFMODEM_FLOAT */
 
-extern unsigned int tx_phase;
-extern unsigned int fsk_freq[2];
 
 /* --------------------------------------------------------------------- */
 


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

Reply via email to