[Top][All Lists]

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

[Tlf-devel] [Fwd: Bug#288600: tlf: FTBFS (amd64/gcc-4.0): redeclaration

From: Joop Stakenborg
Subject: [Tlf-devel] [Fwd: Bug#288600: tlf: FTBFS (amd64/gcc-4.0): redeclaration of 'se' with no linkage]
Date: Sat, 08 Jan 2005 15:37:50 +0100

Hello Rein,

please include this patch on the next release.

Joop PG4I
--- Begin Message --- Subject: Bug#288600: tlf: FTBFS (amd64/gcc-4.0): redeclaration of 'se' with no linkage Date: Tue, 04 Jan 2005 16:50:54 +0100
Package: tlf
Severity: normal
Tags: patch

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

if gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -g -Wall -MT muf.o -MD -MP -MF 
".deps/muf.Tpo" -c -o muf.o muf.c; \
then mv -f ".deps/muf.Tpo" ".deps/muf.Po"; else rm -f ".deps/muf.Tpo"; exit 1; 
muf.c: In function 'e_layer':
muf.c:151: error: redeclaration of 'se' with no linkage
muf.c:149: error: previous declaration of 'se' was here
muf.c:149: warning: unused variable 'se'
make[3]: *** [muf.o] Error 1
make[3]: Leaving directory `/tlf-0.9.21/src'

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

Andreas Jochens

diff -urN ../tmp-orig/tlf-0.9.21/src/muf.c ./src/muf.c
--- ../tmp-orig/tlf-0.9.21/src/muf.c    2004-12-07 12:50:51.000000000 +0100
+++ ./src/muf.c 2005-01-04 16:31:02.918178272 +0100
@@ -146,7 +146,6 @@
 extern double d;
 extern double a;
 extern double ls;
-extern double se;
   double temp, fe, se, ex, xz;
diff -urN ../tmp-orig/tlf-0.9.21/src/sendqrg.c ./src/sendqrg.c
--- ../tmp-orig/tlf-0.9.21/src/sendqrg.c        2004-12-07 12:50:51.000000000 
+++ ./src/sendqrg.c     2005-01-04 16:33:11.182679104 +0100
@@ -523,7 +523,7 @@
 int  native_rig_reset_rit(int rignumber){
 extern int native_rig_fd;
-extern int outfreq;
+extern freq_t outfreq;
 char line[20] = "*RMR0";
 const char eom[2] = {'\015' , '\0'};           // ORION

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]