Bug#300697: spandsp: FTBFS (amd64/gcc-4.0): static declaration of 'v22bis_constellation' follows non-static declaration

Andreas Jochens Andreas Jochens <aj@andaco.de>, 300697@bugs.debian.org
Mon, 21 Mar 2005 09:14:42 +0100


Package: spandsp
Severity: normal
Tags: patch

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

if /bin/sh ../libtool --mode=compile x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -I    -Wall -g -O2 -MT v22bis_rx.lo -MD -MP -MF ".deps/v22bis_rx.Tpo" -c -o v22bis_rx.lo v22bis_rx.c; \
then mv -f ".deps/v22bis_rx.Tpo" ".deps/v22bis_rx.Plo"; else rm -f ".deps/v22bis_rx.Tpo"; exit 1; fi
 x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -I -Wall -g -O2 -MT v22bis_rx.lo -MD -MP -MF .deps/v22bis_rx.Tpo -c v22bis_rx.c  -fPIC -DPIC -o .libs/v22bis_rx.o
v22bis_rx.c:65: error: static declaration of 'v22bis_constellation' follows non-static declaration
spandsp/v22bis.h:186: error: previous declaration of 'v22bis_constellation' was here
make[3]: *** [v22bis_rx.lo] Error 1
make[3]: Leaving directory `/spandsp-0.0.2pre10/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/spandsp-0.0.2pre10/src/spandsp/v22bis.h ./src/spandsp/v22bis.h
--- ../tmp-orig/spandsp-0.0.2pre10/src/spandsp/v22bis.h	2005-01-12 14:39:26.000000000 +0100
+++ ./src/spandsp/v22bis.h	2005-03-21 08:57:30.155036733 +0100
@@ -183,7 +183,6 @@
     int detected_scrambled_ones_at_2400bps;
 } v22bis_state_t;
 
-extern const complex_t v22bis_constellation[16];
 
 #ifdef __cplusplus
 extern "C" {
diff -urN ../tmp-orig/spandsp-0.0.2pre10/src/spandsp/v27ter_rx.h ./src/spandsp/v27ter_rx.h
--- ../tmp-orig/spandsp-0.0.2pre10/src/spandsp/v27ter_rx.h	2004-10-02 10:34:02.000000000 +0200
+++ ./src/spandsp/v27ter_rx.h	2005-03-21 08:57:50.748040978 +0100
@@ -122,7 +122,6 @@
     int32_t angles[16];
 } v27ter_rx_state_t;
 
-extern const complex_t v27ter_constellation[8];
 
 #ifdef __cplusplus
 extern "C" {