Package: speech-tools
Version: 1:1.2.96~beta-4
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch

In Ubuntu, we've applied the attached patch to achieve the following:

  * Fix FTBFS due to invalid const char * conversion (LP: #437083).

We thought you might be interested in doing the same.

Build fails with the following error:
g++ -c -g -O3 -fPIC -Wall -Wno-non-template-friend -I../include EST_wave_io.cc
In file included from EST_wave_io.cc:47:
../include/EST_wave_aux.h:117: warning: 'typedef' was ignored in this 
declaration
EST_wave_io.cc: In function 'int nist_get_param_int(const char*, const char*, 
int)':
EST_wave_io.cc:74: error: invalid conversion from 'const char*' to 'char*'
EST_wave_io.cc: In function 'char* nist_get_param_str(const char*, const char*, 
const char*)':
EST_wave_io.cc:90: error: invalid conversion from 'const char*' to 'char*'

http://launchpadlibrarian.net/32341025/buildlog_ubuntu-karmic-i386.speech-tools_1%3A1.2.96~beta-4_FAILEDTOBUILD.txt.gz

-- System Information:
Debian Release: 5.0
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 
'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-15-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u speech-tools-1.2.96~beta/debian/patches/series speech-tools-1.2.96~beta/debian/patches/series
--- speech-tools-1.2.96~beta/debian/patches/series
+++ speech-tools-1.2.96~beta/debian/patches/series
@@ -47,0 +48 @@
+const_char.diff
only in patch2:
unchanged:
--- speech-tools-1.2.96~beta.orig/debian/patches/const_char.diff
+++ speech-tools-1.2.96~beta/debian/patches/const_char.diff
@@ -0,0 +1,23 @@
+Index: speech-tools-1.2.96~beta/speech_class/EST_wave_io.cc
+===================================================================
+--- speech-tools-1.2.96~beta.orig/speech_class/EST_wave_io.cc	2009-09-26 12:20:49.000000000 +0400
++++ speech-tools-1.2.96~beta/speech_class/EST_wave_io.cc	2009-09-26 12:21:25.000000000 +0400
+@@ -68,7 +68,7 @@
+ 
+ int nist_get_param_int(const char *hdr, const char *field, int def_val)
+ {
+-    char *p;
++    const char *p;
+     int val;
+ 
+     if (((p=strstr(hdr,field)) != NULL) &&
+@@ -84,7 +84,8 @@
+ 
+ char *nist_get_param_str(const char *hdr, const char *field, const char *def_val)
+ {
+-    char *p,*val;
++    const char *p;
++    char *val;
+     int size;
+ 
+     if (((p=strstr(hdr,field)) != NULL) &&

Reply via email to