Re: Text-to-speech and PHP
| From: | R. P. Channing Rodgers, M.D. | Date: | Wed, 09 Feb 2000 01:06:48 +0000 |
| Subject: | Re: Text-to-speech and PHP | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9963@lists.php.net to get a copy of this message | ||
Thanks, but this did not solve the problem. Anyone got any other
suggestions???
Thanks and Cheerio, Rick Rodgers
> From basic@tieto.se Tue Feb 8 16:31:57 2000
>
> Hi,
>
> I've mixed C and C++ in other projects, and the thing to remember is to
> use 'extern "C"' on everything in C++ that should be linked from C.
>
> On Tue, Feb 08, 2000 at 03:14:04PM -0500, R. P. Channing Rodgers, M.D. wrote:
> >
> > 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@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
> /Basic
>
>