[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-accessibility
Subject: [Kde-accessibility] Fw: festival 1.96 and gcc 3.4.4 compability
From: "Bart Alberti" <bart () solozone ! com>
Date: 2005-09-24 14:38:15
Message-ID: 002401c5c115$a5abc960$f69d480c () george
[Download RAW message or body]
FOLLOWING IS THE POSTING TO THE FESTVOX LIST RE THE COMPILE
OF THE 1.96 SERIES OF FESTIVAL
Bart Alberti
----- Original Message -----
From: "Nickolay V. Shmyrev" <nshmyrev@yandex.ru>
To: "Alan W Black" <awb@cs.cmu.edu>
Cc: "M Nicholas Volk" <nvolk@ling.helsinki.fi>;
<festvox-talk@festvox.org>
Sent: Sunday, July 31, 2005 3:50 PM
Subject: Re: festival 1.96 and gcc 3.4.4 compability
>
> > > (How about gcc 4.x family?)
> >
> > 1.96 has successfully compiled and run under a number of
versions of
> > 4.x (including early beta versions of 4.x), it gives
lots of warnings
> > but has been successful at least under one versions of
Fedora.
> >
>
> speech_tools-1.96 fails to build with Fedora Core 4 and
gcc 4.0.0 or
> updated gcc 4.0.1. The usual errors are the following:
>
> ../include/EST_Chunk.h:128: error: ‘EST_ChunkPtr' does not
name a type
> ../include/EST_Chunk.h:129: error: ‘EST_ChunkPtr' does not
name a type
> ../include/EST_Chunk.h:130: error: ‘EST_ChunkPtr' does not
name a type
> ../include/EST_Chunk.h:132: error: ‘EST_ChunkPtr' has not
been declared
> ../include/EST_Chunk.h:133: error: ‘EST_ChunkPtr' has not
been declared
> ../include/EST_Chunk.h:135: error: ‘EST_ChunkPtr' has not
been declared
> ../include/EST_Chunk.h:136: error: ‘EST_ChunkPtr' has not
been declared
>
> - Error that make build fail
>
> ../include/EST_TList.h:229: warning: friend declaration
‘std::ostream&
> operator<<(std::ostream&, const EST_TList<T>&)' declares a
non-template
> function
> ../include/EST_TList.h:229: warning: (if this is not what
you intended,
> make sure the function template has already been declared
and add <>
> after the function name here) -Wno-non-template-friend
disables this
> warning
> ../include/EST_TVector.h:313: warning: friend declaration
‘std::ostream&
> operator<<(std::ostream&, const EST_TVector<T>&)' declares
a
> non-template function
> ../include/EST_TKVL.h:64: warning: friend declaration
‘std::ostream&
> operator<<(std::ostream&, const EST_TKVI<K, V>&)' declares
a
> non-template function
> ../include/EST_TKVL.h:149: warning: friend declaration
‘std::ostream&
> operator<<(std::ostream&, const EST_TKVL<K, V>&)' declares
a
> non-template function
> ../include/EST_TMatrix.h:313: warning: friend declaration
‘std::ostream&
> operator<<(std::ostream&, const EST_TMatrix<T>&)' declares
a
> non-template function
>
> - very confusing warning
>
> siod_est.cc:55: error: ‘obj' is not a template type
>
> - strange error that also make build fail
>
> To fix build I am using the attached patch. After applying
it there
> still some warnings but much less then in original
speech-tools. And
> festival seems to work. I've not tested it with stress
test, but it can
> pronounce some phrases.
>
> The only problem I've noticed with 1.96 is that
make_prompts script
> leaks lisp objects, depending on memory available I get
crash with this
> script and my diphone list and this crash can be fixed by
increasing
> heap. Anyhow, this looks like memory leak.
>
> That is all problems I currently see with 1.96. Except the
very annoying
> problem with editline and metachars, fixed by this simple
patch:
>
> --- editline.c 2004-05-04 04:00:17.000000000 +0400
> +++ editline.c.new 2005-08-01 01:53:20.000000000 +0400
> @@ -1176,7 +1176,7 @@ STATIC STATUS emacs(unsigned int c)
> STATUS s;
> KEYMAP *kp;
>
> - if (ISMETA(c)) {
> + if (ISMETA(c) && rl_meta_chars) {
> el_Pushed = 1;
> el_PushBack = UNMETA(c);
> return meta();
>
["festbuild.patch" (application/octet-stream)]
diff -upr speech_tools/configure.in speech_tools.new/configure.in
--- speech_tools/configure.in 2002-12-28 14:57:31.000000000 +0300
+++ speech_tools.new/configure.in 2005-08-01 00:49:27.000000000 +0400
@@ -63,6 +63,12 @@ AC_TRY_COMPILE([#include <stdio.h>],
#endif ],
[COMPILERTYPE=gcc32])
AC_TRY_COMPILE([#include <stdio.h>],
+ [int j=
+ #if __GNUC__ == 4
+ 3;
+ #endif ],
+ [COMPILERTYPE=gcc32])
+AC_TRY_COMPILE([#include <stdio.h>],
[ int j=
#if __GNUC__ == 2 && __GNUC_MINOR__ == 96
3;
diff -upr speech_tools/include/EST_Chunk.h speech_tools.new/include/EST_Chunk.h
--- speech_tools/include/EST_Chunk.h 2004-09-30 16:53:36.000000000 +0400
+++ speech_tools.new/include/EST_Chunk.h 2005-08-01 00:54:54.000000000 +0400
@@ -100,6 +100,8 @@ using namespace std;
/* */
/************************************************************************/
+class EST_ChunkPtr;
+
class EST_Chunk {
public:
typedef unsigned short use_counter;
diff -upr speech_tools/siod/siod_est.cc speech_tools.new/siod/siod_est.cc
--- speech_tools/siod/siod_est.cc 2004-09-30 16:53:36.000000000 +0400
+++ speech_tools.new/siod/siod_est.cc 2005-08-01 01:26:12.000000000 +0400
@@ -52,7 +52,7 @@
#include "EST_Track.h"
#include "EST_track_aux.h"
-Declare_TStringHash_Base(LISP,NIL,NIL)
+Declare_TStringHash_Base(LISP, (LISP)0, NIL)
#if defined(INSTANTIATE_TEMPLATES)
#include "../base_class/EST_THash.cc"
_______________________________________________
kde-accessibility mailing list
kde-accessibility@kde.org
https://mail.kde.org/mailman/listinfo/kde-accessibility
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic