Re: [PHP-DEV] Can't use embeded sapi

2009-08-09 Thread Farley Knight
On Mon, Jul 13, 2009 at 7:17 PM, Paul Biggarpaul.big...@gmail.com wrote: Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Kochtho...@koch.ro wrote: gcc  -c -I/usr/local/include/php/ -I/usr/local/include/php/main - I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o

Re: [PHP-DEV] Can't use embeded sapi

2009-08-09 Thread Scott MacVicar
On 9 Aug 2009, at 22:52, Farley Knight wrote: On Mon, Jul 13, 2009 at 7:17 PM, Paul Biggarpaul.big...@gmail.com wrote: Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Kochtho...@koch.ro wrote: gcc -c -I/usr/local/include/php/ -I/usr/local/include/php/main - I/usr/local/include/php/Zend

[PHP-DEV] Can't use embeded sapi

2009-07-13 Thread Thomas Koch
Sorry for being a C newby. Could you please help me? I try to follow Sarah's extending PHP book and fail to use the embeded PHP sapi: I compile PHP5.3: ./configure --enable-embed have a c program: #include sapi/embed/php_embed.h int main(int argc, char *argv[]) {

Re: [PHP-DEV] Can't use embeded sapi

2009-07-13 Thread Edward Z. Yang
Excerpts from Thomas Koch's message of Mon Jul 13 16:15:10 -0400 2009: worker.o: In function `main': /var/checkouts/gearman-php-worker/worker.c:5: undefined reference to `php_embed_init' /var/checkouts/gearman-php-worker/worker.c:6: undefined reference to `php_embed_shutdown' collect2: ld

Re: [PHP-DEV] Can't use embeded sapi

2009-07-13 Thread Paul Biggar
Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Kochtho...@koch.ro wrote: gcc  -c -I/usr/local/include/php/ -I/usr/local/include/php/main - I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o worker.o worker.c gcc  -L/usr/local/lib -lphp5 -o worker worker.o worker.o: In