Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch<[email protected]> 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 [email protected] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
