aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2018-01-06 22:18:18 +0800
committerjbeich <jbeich@FreeBSD.org>2018-01-06 22:18:18 +0800
commit3dbba7407bfd33dd140c345939e1615af8672878 (patch)
tree88616164cc9cf664a872af8da338e541376db002 /audio
parent578882821e31fefa344d7c7a7366681882acccb7 (diff)
downloadfreebsd-ports-gnome-3dbba7407bfd33dd140c345939e1615af8672878.tar.gz
freebsd-ports-gnome-3dbba7407bfd33dd140c345939e1615af8672878.tar.zst
freebsd-ports-gnome-3dbba7407bfd33dd140c345939e1615af8672878.zip
audio/festival: unbreak build with Clang 6 (C++14 by default)
sig2fv_main.cc:190:18: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] " default: "DEFAULT_WINDOW"\n\n" ^ server.cc:125:68: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int') if (bind(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ Reported by: antoine (via bug 224669)
Diffstat (limited to 'audio')
-rw-r--r--audio/festival/files/patch-festival_src_arch_festival_server.cc18
-rw-r--r--audio/festival/files/patch-speech__tools_main_sig2fv__main.cc15
2 files changed, 33 insertions, 0 deletions
diff --git a/audio/festival/files/patch-festival_src_arch_festival_server.cc b/audio/festival/files/patch-festival_src_arch_festival_server.cc
new file mode 100644
index 000000000000..b53cb7c4463c
--- /dev/null
+++ b/audio/festival/files/patch-festival_src_arch_festival_server.cc
@@ -0,0 +1,18 @@
+libc++ doesn't like "using namespace std" in C++11
+
+server.cc:125:68: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned
+ long>' and 'int')
+ if (bind(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
+
+--- festival/src/arch/festival/server.cc.orig 2005-10-26 19:44:06 UTC
++++ festival/src/arch/festival/server.cc
+@@ -122,7 +122,7 @@ int festival_start_server(int port)
+ serv_addr.sin_port = htons(port);
+ serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
+
+- if (bind(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0)
++ if (::bind(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0)
+ {
+ cerr << "socket: bind failed" << endl;
+ festival_error();
diff --git a/audio/festival/files/patch-speech__tools_main_sig2fv__main.cc b/audio/festival/files/patch-speech__tools_main_sig2fv__main.cc
new file mode 100644
index 000000000000..8a177832bf57
--- /dev/null
+++ b/audio/festival/files/patch-speech__tools_main_sig2fv__main.cc
@@ -0,0 +1,15 @@
+sig2fv_main.cc:190:18: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
+ " default: "DEFAULT_WINDOW"\n\n"
+ ^
+
+--- speech_tools/main/sig2fv_main.cc.orig 2010-11-05 14:12:43 UTC
++++ speech_tools/main/sig2fv_main.cc
+@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
+ "-window_type <string> Type of window used on waveform. \n"
+ " Permissable types are: \n" +
+ EST_Window::options_supported() +
+- " default: "DEFAULT_WINDOW"\n\n"
++ " default: " DEFAULT_WINDOW "\n\n"
+ "-lpc_order <int> Order of lpc analysis. \n\n"
+ "-ref_order <int> Order of lpc reflection coefficient analysis. \n\n"
+ "-cep_order <int> Order of lpc cepstral analysis.\n\n"