Date: 02/08/00
- Next message: Stig S. Bakken: "Re: [PHP-DEV] purify-like tool for Linux"
- Previous message: Andi Gutmans: "[PHP-DEV] purify-like tool for Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ?
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stig S. Bakken: "Re: [PHP-DEV] purify-like tool for Linux"
- Previous message: Andi Gutmans: "[PHP-DEV] purify-like tool for Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

