Text-to-speech and PHP

From: Date: Tue, 08 Feb 2000 20:14:04 +0000
Subject: Text-to-speech and PHP
Groups: php.dev 
Request: Send a blank email to php-dev+get-15317@lists.php.net to get a copy of this message
Dear Fellow PHPers, At my suggestion, the talented and energetic Evan Klinger (participant in the PHP 4.0 beta list) undertook to write a PHP extension that added access to the freely-available European text-to-speech applications MBROLA and festival. He's run into some problems getting his new code to link with PHP. I append his description of the problem; we are hoping someone might have insights as to how to get beyond this point. Thanks in advance for any help... Cheerio, Rick Rodgers Evan K. notes: Because Festival/Mbrola API's are written in C++, the PHP extension that takes advantage of them must also be in C++. This isn't a problem as the extension sources can be suffixed with ".cc" (or the like) and the stdc++ and Festival/Mbrola libraries linked in. However, PHP seems to choke at the final linking stage: /bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -o php -export-dynamic stub.lo libphp4.la .libs/libphp4.a(internal_functions.o): In function `php_global_shutdown_internal_extensions': /root/php4/internal_functions.c:110: undefined reference to `speech_module_entry' collect2: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/root/php4' make: *** [all-recursive] Error 1 All the required module structs are present in the source. Perhaps I need special #ifdef __cplusplus ?

« previous php.dev (#15317) next »