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 Biggar wrote: Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch 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

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

2009-08-09 Thread Farley Knight
On Mon, Jul 13, 2009 at 7:17 PM, Paul Biggar wrote: > Hi Thomas, > > On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch 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

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 Koch 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 function

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

[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 int main(int argc, char *argv[]) { PHP_EMBED_START_BLOCK(argc,argv) PHP_EMB