[CBLX] Fw: speech dispatcher 0.6.7 fails to build with glibc 2.10

[ Thread Index | Date Index | More lists.tuxfamily.org/carrefourblinux Archives ]



J'ai cru comprendre q'il y avait ces temps-ci un regain
d'intérêt pour speech-dispatcher parmi les membres de la
liste. Si par ailleur il y a aussi parmi eux des adeptes de
l'upgrade forcené et que l'intersection entre les deux
ensembles n'est pas vide : danger ! Enfin à mon avis ça va être
fixé sans tardé cette affaire là !

Pierre
--- Begin Message ---
Hello Hynek and all,

a user of gentoo reported the following bug with speech-dispatcher:

http://bugs.gentoo.org/281130

The issue is that glibc 2.10 defines getline() differently than the
speech-dispatcher source does.

Since I am using glibc 2.9, if I apply the patch the user suggested,
which I will attach to this message, I get the following warnings:

module_main.c:106: warning: implicit declaration of function 'getline'
module_utils.c:80: warning: implicit declaration of function 'getline'

Can someone suggest a better way of fixing this so that no warnings will
be generated if the user is still running glibc 2.9?

Thanks,

William

From f0c490dc160f04cb9f258e0639944cffc1df9a40 Mon Sep 17 00:00:00 2001
From: root <root@christoph.(none)>
Date: Tue, 11 Aug 2009 20:39:24 +0200
Subject: [PATCH] Fix build with recent gcc

---
 src/modules/module_main.c  |    3 ---
 src/modules/module_utils.h |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/modules/module_main.c b/src/modules/module_main.c
index 2732cff..5bb5769 100644
--- a/src/modules/module_main.c
+++ b/src/modules/module_main.c
@@ -21,9 +21,6 @@
  * $Id: module_main.c,v 1.16 2008-06-27 12:29:26 hanke Exp $
  */
 
-/* So that gcc doesn't comply */
-int getline(char**, size_t*, FILE*);
-
 #define PROCESS_CMD(command, function) \
 if (!strcmp(cmd_buf, #command"\n")){ \
  char *msg; \
diff --git a/src/modules/module_utils.h b/src/modules/module_utils.h
index e33865a..70e6241 100644
--- a/src/modules/module_utils.h
+++ b/src/modules/module_utils.h
@@ -420,9 +420,6 @@ void module_report_event_pause(void);
 
 
 
-/* So that gcc doesn't complain */
-int getline(char**, size_t*, FILE*);
-
 pthread_mutex_t module_stdout_mutex;
 
 int module_utils_init(void);
-- 
1.6.4

Attachment: pgpCORB19SJw4.pgp
Description: PGP signature

_______________________________________________
Speechd mailing list
Speechd@xxxxxxxxxxxxxxxxxxx
http://lists.freebsoft.org/mailman/listinfo/speechd

--- End Message ---


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/