Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40103 invoked from network); 13 Jul 2009 23:17:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2009 23:17:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.206 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.218.206 mail-bw0-f206.google.com Received: from [209.85.218.206] ([209.85.218.206:60238] helo=mail-bw0-f206.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/BA-24812-380CB5A4 for ; Mon, 13 Jul 2009 19:17:23 -0400 Received: by bwz2 with SMTP id 2so2490505bwz.23 for ; Mon, 13 Jul 2009 16:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=eRghEU88ISjFMD0+NXPvvO6oQv7Qf7mp1IEOggKuRbc=; b=EnJE5W8zRR21tKvzNP2UJl8tuqQ3ym9K8cdO4fNAItJPn5/BGRDxz56NAxrh9UVHMh 9oUNNQA0O3iR9CoIOMJtludxCvNbLTKstBxsNyvez/Mh7n4dDH3JGekkn3MJ05xJNsIN 7+ICJI11yxDcvZWnJb+g1VB+foNRHUd+xHnIA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=cDxZBtY9g2utOQy/NQ8w+3DoAYDkI4zXBBUNV8IYmmcvDfxCdV8zn7IVsiN5CQlJF6 PLEVs9U51S7VfgH+xow7gHf131ctd8Qj2KVX+wmUDZN01eluGTFafnp+r3pCc0Yjm3Zu 7iLphPD1rskrijpqyng4sPK8R2mTK6cMQHcFI= MIME-Version: 1.0 Received: by 10.239.132.83 with SMTP id 19mr541316hbq.56.1247527040076; Mon, 13 Jul 2009 16:17:20 -0700 (PDT) In-Reply-To: <200907132215.10768.thomas@koch.ro> References: <200907132215.10768.thomas@koch.ro> Date: Tue, 14 Jul 2009 00:17:00 +0100 Message-ID: To: thomas@koch.ro Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Can't use embeded sapi From: paul.biggar@gmail.com (Paul Biggar) Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Koch wrote: > gcc =C2=A0-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 =C2=A0-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 --=20 Paul Biggar paul.biggar@gmail.com