Source: speech-tools Severity: minor Tags: patch User: pkg-llvm-t...@lists.alioth.debian.org Usertags: clang-ftbfs
Hello, Using the rebuild infrastructure, your package fails to build with clang (instead of gcc). We detected this kinf of error: http://clang.debian.net/status.php?version=3.4.2&key=WRONG_DEFAULT_DECLARATION Full build log is available here: http://clang.debian.net/logs/2014-06-16/speech-tools_2.1~release-7_unstable_clang.log Thanks, Alexander -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- ./include/EST_Ngrammar.h 2004-09-30 16:53:36.000000000 +0400 +++ ../speech-tools-2.1~release-my/./include/EST_Ngrammar.h 2014-07-29 01:06:30.502648836 +0400 @@ -206,6 +206,15 @@ }; +class EST_Ngrammar; +EST_write_status save_ngram_htk_ascii(const EST_String filename, EST_Ngrammar &n, double floor=0.0); +EST_write_status save_ngram_cstr_ascii(const EST_String filename, EST_Ngrammar &n, const bool trace=false, double floor=0.0); +EST_write_status save_ngram_cstr_bin(const EST_String filename, EST_Ngrammar &n, const bool trace=false, double floor=0.0); +void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order=0); +void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order=0); +bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount=0); +void Good_Turing_discount(EST_Ngrammar &ngrammar, const int maxcount, const double default_discount=0.5); + class EST_Ngrammar { public: @@ -538,18 +547,18 @@ double floor); friend EST_write_status save_ngram_htk_ascii(const EST_String filename, EST_Ngrammar &n, - double floor=0.0); + double floor); //friend EST_write_status save_ngram_htk_binary(const EST_String filename, // EST_Ngrammar &n); friend EST_write_status save_ngram_cstr_ascii(const EST_String filename, EST_Ngrammar &n, - const bool trace=false, - double floor=0.0); + const bool trace, + double floor); friend EST_write_status save_ngram_cstr_bin(const EST_String filename, EST_Ngrammar &n, - const bool trace=false, - double floor=0.0); + const bool trace, + double floor); friend EST_write_status save_ngram_arpa(const EST_String filename, EST_Ngrammar &n); friend EST_write_status save_ngram_arpa_sub(ostream *ost, @@ -561,11 +570,11 @@ // Auxiliary functions // smoothing -friend void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order=0); -friend void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order=0); -friend bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount=0); +friend void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order); +friend void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order); +friend bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount); friend void Good_Turing_discount(EST_Ngrammar &ngrammar, const int maxcount, - const double default_discount=0.5); + const double default_discount); friend void fs_build_backoff_ngrams(EST_Ngrammar *backoff_ngrams, EST_Ngrammar &ngram); --- ./include/EST_String.h 2014-07-29 01:09:44.000000000 +0400 +++ ../speech-tools-2.1~release-my/./include/EST_String.h 2014-07-29 01:01:46.799597781 +0400 @@ -49,6 +49,10 @@ extern "C" void abort(void); +class EST_String; +int fcompare(const EST_String &a, const EST_String &b, const unsigned char *table=NULL); +int fcompare(const EST_String &a, const char *b, const unsigned char *table=NULL); + /** @class EST_String * @ingroup stringclasses * A non-copyleft implementation of a string class to use with @@ -577,10 +581,10 @@ */ ///@{ friend int fcompare(const EST_String &a, const EST_String &b, - const unsigned char *table=NULL); + const unsigned char *table); friend int fcompare(const EST_String &a, const char *b, - const unsigned char *table=NULL); + const unsigned char *table); /// friend inline int fcompare(const EST_String &a, const EST_String &b, const EST_String &table)