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

Bug#263825: sphinx2: FTBFS with gcc-3.4: conflicting types for 'initialize'



Package: sphinx2
Severity: normal
Tags: patch

When building 'sphinx2' with gcc-3.4 I get the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/libsphinx2/include -I../../include -I../../include -DFAST8B=1 -g -O2 -Wall -c cdcn_update.c  -fPIC -DPIC -o .libs/cdcn_update.lo
cdcn_update.c:128: error: conflicting types for 'initialize'
cdcn_update.c:61: error: previous declaration of 'initialize' was here
cdcn_update.c:128: warning: 'initialize' defined but not used
make[5]: *** [cdcn_update.lo] Error 1
make[5]: Leaving directory `/sphinx2-0.4/src/libsphinx2'

With the attached patch 'sphinx2' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/sphinx2-0.4/src/libsphinx2/cdcn_update.c ./src/libsphinx2/cdcn_update.c
--- ../tmp-orig/sphinx2-0.4/src/libsphinx2/cdcn_update.c	2001-12-13 22:11:20.000000000 +0100
+++ ./src/libsphinx2/cdcn_update.c	2004-08-05 23:37:03.658811537 +0200
@@ -57,8 +57,8 @@
     float	*noise, *tilt, *codebook, *prob, *variance, *corrbook;
     int 	num_codes;
     /* Multidimensional arrays, gar gar gar */
-    static float initialize (float *, int, float *, float *, float,
-			     float *, float *, float *, int);
+    static float initialize (float [][NUM_COEFF+1], int, float *, float [], 
+     float, float [][NUM_COEFF+1], float *, float [][NUM_COEFF+1], int);
     static void correction(float *, float *, float *, float *, int);
     static float max_q (float *, float *, float *, float *, float *,
 			float *, int, float *, int);



Reply to: