From kde-accessibility Sat Sep 24 14:38:15 2005 From: "Bart Alberti" Date: Sat, 24 Sep 2005 14:38:15 +0000 To: kde-accessibility Subject: [Kde-accessibility] Fw: festival 1.96 and gcc 3.4.4 compability Message-Id: <002401c5c115$a5abc960$f69d480c () george> X-MARC-Message: https://marc.info/?l=kde-accessibility&m=112757271022463 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------=_NextPart_000_0021_01C5C0DA.ECCBA620" This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C5C0DA.ECCBA620 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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" To: "Alan W Black" Cc: "M Nicholas Volk" ; 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&)’ 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&)’ declares a > non-template function > ../include/EST_TKVL.h:64: warning: friend declaration ‘std::ostream& > operator<<(std::ostream&, const EST_TKVI&)’ declares a > non-template function > ../include/EST_TKVL.h:149: warning: friend declaration ‘std::ostream& > operator<<(std::ostream&, const EST_TKVL&)’ declares a > non-template function > ../include/EST_TMatrix.h:313: warning: friend declaration ‘std::ostream& > operator<<(std::ostream&, const EST_TMatrix&)’ 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(); > ------=_NextPart_000_0021_01C5C0DA.ECCBA620 Content-Type: application/octet-stream; name="festbuild.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="festbuild.patch" 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 ], #endif ], [COMPILERTYPE=3Dgcc32]) AC_TRY_COMPILE([#include ], + [int j=3D=20 + #if __GNUC__ =3D=3D 4=20 + 3; + #endif ], + [COMPILERTYPE=3Dgcc32]) +AC_TRY_COMPILE([#include ], [ int j=3D #if __GNUC__ =3D=3D 2 && __GNUC_MINOR__ =3D=3D 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; /* = */ = /************************************************************************= / =20 +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" =20 -Declare_TStringHash_Base(LISP,NIL,NIL) +Declare_TStringHash_Base(LISP, (LISP)0, NIL) =20 #if defined(INSTANTIATE_TEMPLATES) #include "../base_class/EST_THash.cc" ------=_NextPart_000_0021_01C5C0DA.ECCBA620 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ kde-accessibility mailing list kde-accessibility@kde.org https://mail.kde.org/mailman/listinfo/kde-accessibility ------=_NextPart_000_0021_01C5C0DA.ECCBA620--