Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44993 - speech-dispatcher ebuild request
Summary: speech-dispatcher ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL: http://www.freebsoft.org/speechd
Whiteboard:
Keywords: InVCS
Depends on: 45028
Blocks:
  Show dependency tree
 
Reported: 2004-03-17 21:54 UTC by Jeremy Huddleston (RETIRED)
Modified: 2004-03-30 18:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
app-accessibility/speech-dispatcher-0.2 ebuild (speech-dispatcher-0.2.ebuild,637 bytes, text/plain)
2004-03-19 14:46 UTC, Jon Hood (RETIRED)
Details
speech-dispatcher-0.2.ebuild (speech-dispatcher-0.2.ebuild,699 bytes, text/plain)
2004-03-19 16:23 UTC, Jon Hood (RETIRED)
Details
speech-dispatcher-0.2.ebuild (/usr/lib/speech-dispatcher-modules) (speech-dispatcher-0.2.ebuild,709 bytes, text/plain)
2004-03-22 23:35 UTC, Jon Hood (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-17 21:54:15 UTC
http://www.freebsoft.org/speechd
Comment 1 Jon Hood (RETIRED) gentoo-dev 2004-03-18 09:48:22 UTC
It seems that speech dispatcher relies on an old version of the alsa-libs (libasound1), 0.5.8, and I am getting compile errors as I try to build. What version of alsa-lib do you have installed?
Comment 2 Jon Hood (RETIRED) gentoo-dev 2004-03-18 09:50:53 UTC
or is it a flite error:

mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/include/ -I../../intl/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT spd_audio.lo -MD -MP -MF .deps/spd_audio.Tpo -c spd_audio.c  -fPIC -DPIC -o .libs/spd_audio.o
spd_audio.c:9:25: flite/flite.h: No such file or directory
In file included from spd_audio.c:12:
spd_audio.h:5:25: flite/flite.h: No such file or directory
In file included from spd_audio.c:12:
spd_audio.h:7: error: syntax error before '*' token
spd_audio.h:8: error: syntax error before '*' token
spd_audio.c:15: error: syntax error before '*' token
spd_audio.c:15: warning: data definition has no type or storage class
spd_audio.c:16: error: syntax error before '*' token
spd_audio.c:16: warning: data definition has no type or storage class
spd_audio.c:17: error: syntax error before '*' token
spd_audio.c:17: warning: data definition has no type or storage class
spd_audio.c:20: error: syntax error before '*' token
spd_audio.c: In function `spd_audio_play_wave':
spd_audio.c:24: error: `w' undeclared (first use in this function)
spd_audio.c:24: error: (Each undeclared identifier is reported only once
spd_audio.c:24: error: for each function it appears in.)
spd_audio.c:35: error: `CST_AUDIOBUFFSIZE' undeclared (first use in this function)
spd_audio.c: At top level:
spd_audio.c:51: error: syntax error before '*' token
spd_audio.c: In function `spd_audio_read_wave':
spd_audio.c:54: error: `cst_wave' undeclared (first use in this function)
spd_audio.c:54: error: `new' undeclared (first use in this function)
spd_audio.c:55: error: syntax error before ')' token
spd_audio.c: In function `spd_audio_play_file_wav':
spd_audio.c:68: error: `cst_wave' undeclared (first use in this function)
spd_audio.c:68: error: `wave' undeclared (first use in this function)
spd_audio.c:69: error: syntax error before ')' token
spd_audio.c: At top level:
spd_audio.c:106: error: syntax error before '*' token
spd_audio.c: In function `spd_audio_open':
spd_audio.c:108: error: `w' undeclared (first use in this function)
spd_audio.c:113: error: `CST_AUDIO_LINEAR16' undeclared (first use in this function)
spd_audio.c:113: warning: assignment makes pointer from integer without a cast
make[3]: *** [spd_audio.lo] Error 1
make[3]: Leaving directory `/home/jon/temp/speechd/speechd-0.2/src/audio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jon/temp/speechd/speechd-0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jon/temp/speechd/speechd-0.2'
make: *** [all] Error 2
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-18 09:57:31 UTC
looks like a flite problem.  We're installing headers in include, not include/flite...  I'll take a look at fixing the flite ebuild.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-18 10:00:55 UTC
if you do:

mkdir /usr/include/flite
mv /usr/include/cst* /usr/include/flite
mv /usr/include/flite* /usr/include/flite   (this will produce an "error" about not moving flite into itself, but that's fine.)

does it work at that point?
Comment 5 Deedra Waters (RETIRED) gentoo-dev 2004-03-18 10:05:51 UTC
This could get interesting, if I remember correctly, eflite requires the include stuff to be in /usr/include. I'll take a look at eflite again, to make sure.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-18 10:26:51 UTC
I can do some sedage and symlinkage in flite to make it work so long as we always have either:

#include <flite.h> 
or
#inlude <flite/flite.h>

I'd prefer the second to be standard, so Deedra, please verify what eflite wants, and I'll update the flite ebuild later...
Comment 7 Deedra Waters (RETIRED) gentoo-dev 2004-03-18 10:58:12 UTC
Eflite is flexible, I can tell it where the includes are with the flite_include option, so it doesn't matter what we do to it:)
Comment 8 Jon Hood (RETIRED) gentoo-dev 2004-03-18 12:30:56 UTC
cp /usr/include/cst* /usr/include/flite && cp /usr/include/flite* /usr/include/flite

That took care of the flite/flite.h warnings, but I still get the same errors in spd_audio.c, lines 17, 41, 113, and 130
Comment 9 Jon Hood (RETIRED) gentoo-dev 2004-03-18 12:33:46 UTC
since they aren't quite the same errors, I'll go ahead and post them:

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/ -I../../intl/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O3 -march=pentium4 -funroll-loops -pipe -MT spd_audio.lo -MD -MP -MF .deps/spd_audio.Tpo -c spd_audio.c  -fPIC -DPIC -o .libs/spd_audio.o
spd_audio.c:17: error: syntax error before '*' token
spd_audio.c:17: warning: data definition has no type or storage class
spd_audio.c: In function `spd_audio_play_wave':
spd_audio.c:41: warning: passing arg 1 of `audio_write' makes integer from pointer without a cast
spd_audio.c: In function `spd_audio_open':
spd_audio.c:113: error: `CST_AUDIO_LINEAR16' undeclared (first use in this function)
spd_audio.c:113: error: (Each undeclared identifier is reported only once
spd_audio.c:113: error: for each function it appears in.)
spd_audio.c:113: warning: assignment makes pointer from integer without a cast
spd_audio.c: In function `spd_audio_close':
spd_audio.c:130: warning: passing arg 1 of `audio_close' makes integer from pointer without a cast
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-18 19:13:29 UTC
grep CST_AUDIO_LINEAR16 /usr/include/cst_* produces nothing for me...

what version of flite do they need in speech dispatcher?
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-18 23:26:03 UTC
I'm puttign together an ebuild for flite-1.2  hopefully that will clear this up...
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-19 08:28:22 UTC
$ grep CST_AUDIO_LINEAR16 *
cst_audio.h:    CST_AUDIO_LINEAR16 = 0,

looks like it's in 1.2, try out that ebuild.  I just comitted it.
Comment 13 Jon Hood (RETIRED) gentoo-dev 2004-03-19 14:46:25 UTC
Created attachment 27656 [details]
app-accessibility/speech-dispatcher-0.2 ebuild

not sure if I got all the DEPEND stuff right, you might want to check that, but
it seems to emerge correctly. I also don't like that this ebuild places some
files in /usr/bin/speechd-modules/ and I have not had much time to test it. I'm
going ahead and posting the ebuild if someone wants to test it while I'm out
for the evening.  If no, I'll get around to it sometime.
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-19 15:56:14 UTC
it'd probably be best to move them to /usr/lib/speechd-modules... I've got a ton on my plate, so I don't have time to look at this tonight, sorry...
Comment 15 Jon Hood (RETIRED) gentoo-dev 2004-03-19 16:23:37 UTC
Created attachment 27662 [details]
speech-dispatcher-0.2.ebuild

hi ho, hi ho
To /usr/lib you go
What do you think this will break?
How long will all the testing take?
Hi ho, hi ho hi ho hi ho...
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-22 23:16:56 UTC
hmm... not to mess you up even further, but how about /usr/lib/speech-dispatcher-modules so as to avoid confusion with speechd...
Comment 17 Jon Hood (RETIRED) gentoo-dev 2004-03-22 23:35:35 UTC
Created attachment 27836 [details]
speech-dispatcher-0.2.ebuild (/usr/lib/speech-dispatcher-modules)

Alas poor speechd-modules.  I knew them, eradicator; a folder of infinite tests
and most questionable modules. And now, how abhorred in my hard drive it is. My
RAM scoffs at it...
Anyways, your wish is my command. The modules are moved to
/usr/lib/speech-dispatcher-modules, but I still haven't gotten to test this
much yet, and would appreciate input from anyone who does have a lot of time to
thuroughly test the package.
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-26 00:30:32 UTC
i haven't looked at this too closely yet... does speech-dispatcher itself depend on alsa-lib?  And if so, are you sure that the anciant 0.5 alsa-lib will actually work?
Comment 19 Jon Hood (RETIRED) gentoo-dev 2004-03-26 15:37:55 UTC
From the INSTALL file:

You will need these components to compile Speech Dispatcher:
 - glib 2.0  (http://www.gtk.org)
 - libdotconf 1.0 (http://www.azzit.de/dotconf/)
 - pthreads
>- libasound1 (0.5.8)
 - gcc and GNU make (http://www.gnu.org)
 - flite [we use it for sound track output] (http://cmuflite.org/)
Comment 20 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-30 18:49:16 UTC
in portage.