Re: Can't use embeded sapi

From: Date: Mon, 13 Jul 2009 23:17:00 +0000
Subject: Re: Can't use embeded sapi
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-44949@lists.php.net to get a copy of this message
Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch<thomas@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 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 returned 1 exit status > make: *** [all] Error 1 This worked for me, with your commands and program. Since its a linker error, it seems likely that you haven't installed libphp5.so properly. You didn't indicate that you ran make install, did you? If so, you may want to verify that there is a libphp5.so in /usr/local/lib, and that it is a shared library. Paul -- Paul Biggar paul.biggar@gmail.com

« previous php.internals (#44949) next »