Package: speech-dispatcher
Severity: normal
Tags: patch

When building 'speech-dispatcher' on amd64 with gcc-4.0,
I get the following error:

libspeechd.h:165: error: previous declaration of 'isanum' was here
libspeechd.c:893: error: static declaration of 'xmalloc' follows non-static 
declaration
libspeechd.h:170: error: previous declaration of 'xmalloc' was here
libspeechd.c:907: error: static declaration of 'xfree' follows non-static 
declaration
libspeechd.h:171: error: previous declaration of 'xfree' was here
libspeechd.c:916: error: static declaration of 'escape_dot' follows non-static 
declaration
libspeechd.h:163: error: previous declaration of 'escape_dot' was here
libspeechd.c:1000: error: static declaration of 'SPD_DBG' follows non-static 
declaration
libspeechd.h:35: error: previous declaration of 'SPD_DBG' was here
make[5]: *** [libspeechd.lo] Error 1
make[5]: Leaving directory `/speech-dispatcher-0.5/src/c/api'

With the attached patch 'speech-dispatcher' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/speech-dispatcher-0.5/src/c/api/libspeechd.c 
./src/c/api/libspeechd.c
--- ../tmp-orig/speech-dispatcher-0.5/src/c/api/libspeechd.c    2004-05-23 
14:34:03.000000000 +0200
+++ ./src/c/api/libspeechd.c    2005-03-07 15:00:49.200316203 +0100
@@ -39,6 +39,19 @@
 #include "def.h"
 #include "libspeechd.h"
 
+static void SPD_DBG(char *format, ...);
+
+static int spd_set_priority(int connection, SPDPriority priority);
+static char* escape_dot(const char *otext);
+static int isanum(char* str);
+static char* get_rec_str(char *record, int pos);
+static int get_rec_int(char *record, int pos);
+static int get_err_code(char *reply);
+static char* parse_response_data(char *resp, int pos);
+static void *xmalloc(size_t bytes);
+static void xfree(void *ptr);
+static int ret_ok(char *reply);
+
 /* Comment/uncomment to switch debugging on/off */
 // #define LIBSPEECHD_DEBUG
 
diff -urN ../tmp-orig/speech-dispatcher-0.5/src/c/api/libspeechd.h 
./src/c/api/libspeechd.h
--- ../tmp-orig/speech-dispatcher-0.5/src/c/api/libspeechd.h    2004-06-10 
12:17:43.000000000 +0200
+++ ./src/c/api/libspeechd.h    2005-03-07 15:01:27.951836445 +0100
@@ -32,7 +32,6 @@
 
 /* Debugging */
 FILE* spd_debug;
-void SPD_DBG(char *format, ...);
 
 /* Unless there is an fatal error, it doesn't print anything */
 #define SPD_FATAL(msg) { printf("Fatal error (libspeechd) [%s:%d]:"msg, 
__FILE__, __LINE__); exit(EXIT_FAILURE); }
@@ -156,22 +155,6 @@
 int spd_execute_command(int connection, char* command);
 char* spd_send_data(int fd, const char *message, int wfr);
 
-/* --------------  Private functions  ------------------------*/
-
-int spd_set_priority(int connection, SPDPriority priority);
-
-char* escape_dot(const char *otext);
-
-int isanum(char* str);         
-char* get_rec_str(char *record, int pos);
-int get_rec_int(char *record, int pos);
-int get_err_code(char *reply);
-char* parse_response_data(char *resp, int pos);
-void *xmalloc(size_t bytes);
-void xfree(void *ptr);
-    
-int ret_ok(char *reply);
-
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to