Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58331 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84701 invoked from network); 29 Feb 2012 09:47:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 09:47:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=camauz@yahoo.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=camauz@yahoo.com; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com from 77.238.189.210 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: camauz@yahoo.com X-Host-Fingerprint: 77.238.189.210 nm6-vm0.bullet.mail.ird.yahoo.com Received: from [77.238.189.210] ([77.238.189.210:44593] helo=nm6-vm0.bullet.mail.ird.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/6E-36673-244FD4F4 for ; Wed, 29 Feb 2012 04:47:47 -0500 Received: from [77.238.189.50] by nm6.bullet.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 09:47:43 -0000 Received: from [212.82.109.128] by tm3.bullet.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 09:47:43 -0000 Received: from [127.0.0.1] by omp1020.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 09:47:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 517102.96278.bm@omp1020.mail.ird.yahoo.com Received: (qmail 71799 invoked by uid 60001); 29 Feb 2012 09:47:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1330508863; bh=wnvzlRK2WDaIQ5dG+VD8iziOfLS7TzK4GNK3U7Cnt80=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=T6zlidtgVn7AXlQyzGTc33620EPYAZEZJ2xSDZumMGCb5CJBTa+LZCKG+xaJ6CwZHSvVYTj6nstw29uFTvJomjGrK0vSfVW7uWh7WJXhYdZoQP3ggU5Msdg3FlRpL9apDx8duOK8b1U07tZ9QoZ79ZGzGxny9fdlispPjc8tVGQ= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=sXXw316j8sq2zhk+0bqCaeiDo9OCdYkyiJ47fVeNyyiNXUReNvalh4P8jB8rUaMj+gWJEVmKC66/C0am1BzqqWWprdGskbVBytKOGQwqlg8KpcNJnCawAjNvyuIcBlPPJgJaejw/JYBPnPFONkk+gzmbxJzvylJ+HkYLIOo39PA=; X-YMail-OSG: UkOBM6QVM1lxLuzrMbpcKk0WI4hjXRd4stuEbWLGFvgXtNP xOI5Z1UQRkHWTyGQtO5Ixd2XRUi2cXvML72cHK9dxkxQFoKdCWQCRt_nfXh1 vOOHZWPMumq32LbTqTdVITIzQy8aX8Cb5g1HvY31P65yDtyLfoqMwDT6WqsF Kswmn7JA8RjV4upSeUXFZzpcC4BY3wh8cRx0SZtt4.p1iKXMQRKqaFfNh2aV EvLM14cTwITmKYhjrgPftbfewImqsJ7q3DpUFJvgRAglTmjFtxJcteVVSKDM 5bJy09hqynDlhWidSkRH_H.BOyZ.7HD6G2cvLDL8Qu6O1ZaesuW51uRKH1IW 1zpjGFh1HRbqcCPu9aLD6zTIqd9CG_hoNnoK4toQqzt7n4MLUGu54k0H4LrE okVoFTHVurNCNvF1MfnALAXbSdeM0zjo1WCzxcyGDwdx2Hi47gtV9QRPZlFq DyIzP8pq51Nq2feb3uTgsLbXyTeEMsZjwLI8CYvaaOt5eERk6jJqwPfObIbi ng.H7kdiYDbFVfdIVQXXprjqVI0CdIo1PU21mO114w_Z6T_T.T9Fpsz2zy1W vLZ6n9bxCZEPOnYQ2r7.ku4fdZTTGAWCntfW8oI1jFKQTeKjsTFUXOhbRUx2 w8CV6R38LZ8QOQqrhJYu1.W8gBBMrC3S1sCV.bfufImfhd9tlVqueF7ZprE8 9 Received: from [92.246.34.60] by web29501.mail.ird.yahoo.com via HTTP; Wed, 29 Feb 2012 09:47:43 GMT X-Mailer: YahooMailWebService/0.8.116.338427 References: <1330464316.3034.YahooMailNeo@web29505.mail.ird.yahoo.com> <4F4D4E79.1080602@lerdorf.com> <1330501833.99416.YahooMailNeo@web29504.mail.ird.yahoo.com> <1330502673.12982.YahooMailNeo@web29506.mail.ird.yahoo.com> Message-ID: <1330508863.61296.YahooMailNeo@web29501.mail.ird.yahoo.com> Date: Wed, 29 Feb 2012 09:47:43 +0000 (GMT) Reply-To: Christian Ferrari To: "internals@lists.php.net" In-Reply-To: <1330502673.12982.YahooMailNeo@web29506.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Newbie: issues developing a new extension From: camauz@yahoo.com (Christian Ferrari) >>>>> =A0 =A0> Dear all,=0A=0A> =0A>>> =0A>>>>> =A0 =A0> I'm asking your he= lp because I'm not able to =0A> solve an =0A>> issue=0A>>>> =A0 probably= =0A>>>>> =A0 =A0related to some foolish mistake I have not yet discovered.= =0A>>>>> =A0 =A0> I'm trying to develop an experimental extension to =0A>> = interface LIXA=0A>>>>> =A0 =A0library (http:/lixa.sourceforge.net/).=0A>>>= >> =A0 =A0>=0A>>>>> =A0 =A0> I have created the basic stuff (config.m4, lix= a.c, =0A> php_lixa.h =0A>> and so=0A>>>> =A0 on).=0A>>>>> =A0 =A0>=0A>>>>>= =A0 =A0> If I use this sequence from the ext/lixa directory:=0A>>>>> =A0 = =A0>=0A>>>>> =A0 =A0> /opt/php/bin/phpize=0A>>>>> =A0 =A0> ./configure --he= lp=0A>>>>> =A0 =A0>=0A>>>>> =A0 =A0> I can see the lixa extension is availa= ble:=0A>>>>> =A0 =A0>=0A>>>>> =A0 =A0> [...]=0A>>>>> =A0 =A0> Optional Pack= ages:=0A>>>>> =A0 =A0>=A0 =A0--with-PACKAGE[=3DARG]=A0 =A0 use PACKAGE [ARG= =3Dyes]=0A>>>>> =A0 =A0>=A0 =A0--without-PACKAGE=A0 =A0 =A0 =A0do not use P= ACKAGE (same as=0A>>>> =A0 --with-PACKAGE=3Dno)=0A>>>>> =A0 =A0>=A0 =A0--wi= th-libdir=3DNAME=A0 =A0 =A0 Look for libraries in .../NAME =0A> =0A>> rath= er than=0A>>>>> =A0 =A0.../lib=0A>>>>> =A0 =A0>=A0 =A0--with-php-config=3DP= ATH=A0 Path to php-config php-config=0A>>>>> =A0 =A0>=A0 =A0--with-lixa=3DF= ILE=A0 =A0 =A0 =A0 Include LIXA support. File is =0A> the =0A>> path to=0A= >>>>> =A0 =A0lixa-config=0A>>>>> =A0 =A0>=0A>>>>> =A0 =A0> [...]=0A>>>>> = =A0 =A0>=0A>>>>> =A0 =A0> and I can compile with:=0A>>>>> =A0 =A0>=0A>>>>> = =A0 =A0> ./configure --with-lixa=3D/opt/lixa/bin/lixa-config=0A>>>>> =A0 = =A0--with-php-config=3D/opt/php/bin/php-config=0A>>>>> =A0 =A0>=0A>>>>> =A0= =A0> the build process runs as expected and the extension is =0A>> availa= ble=0A>>>> =A0 after=0A>>>>> =A0 =A0an addition to php.ini =0A> (extension= =3D[...]/ext/lixa/modules/lixa.so).=0A>>>>> =0A>>>>> =A0 =A0Great, you are = done. Why do you want to go any further than =0A> this? =0A>> You=0A>>>>> = =A0 =A0built your extension and it is available from PHP exactly =0A> like = any =0A>> pecl=0A>>>>> =A0 =A0extension.=0A>>>>> =0A>>>> =0A>>>> =A0 and i= f you're using apache, reboot it and check your phpinfo() =0A> page =0A>> = for=0A>>>> =A0 your extension.=0A>>>> =A0 if you're connected up via the co= mmand line you can run =0A> "php =0A>> -m"=0A>>>> =A0 to see if=0A>>>> =A0= your modules exists.=0A>>>> =0A>>>> =0A>>>>> =0A>>>>> =A0 =A0-Rasmus=0A>>>= >> =0A>>> =0A>>> =A0 Dear all,=0A>>> =A0 I would like to see my extension a= s any other extension, like MySQL, =0A>> PostgreSQL, Oracle and so on beca= use:=0A>>> =A0 1. LIXA itself is useless without those resource managers=0A= >>> =A0 2. I need to patch other extensions to implement the interfaces =0A= > between =0A>> LIXA and MySQL/PostgreSQL/Oracle.=0A>>> =A0 What's the dif= ference between an "internal" extension =0A> (like=0A>>> =A0 MySQL/PostgreS= QL/Oracle) and an "external" extension as the =0A> one I=0A>>> =A0 produced= ?=0A>>> =A0 Thanks in advance, your help is precious.=0A>> =0A>> =0A>> The= PHP source archive bundles several extensions under the ext/=0A>> directo= ry, these are the extensions are listed when you run=0A>> ./configure --he= lp=0A>> =0A>> I don't understand why you want your extension to show up th= ere, but=0A>> to do so you have to place your extension in that folder and= run=0A>> ./buildconf --force=0A>> PHP will not automatically scan your f= ilesystem for possible extension=0A>> directories to list them under ./con= figure=0A>> I'm sure you have seen, and used, http://pecl.php.net - these= =0A>> extensions don't show up when you build PHP.=0A>> =0A>> The standar= d way to build "external" extensions however is to use=0A>> pecl, or manua= lly build them as shared modules (as you did first).=0A>> =0A>> =0A>> -Han= nes=0A>> =0A> =0A> That's the point: I tryed=0A> ./buildconf --help=0A=0ASo= rry, this is a typo, the right one is:=0A./buildconf --force=0A=0A> but it = didn't include my extension.=0A> =0A> This is an excerpt from my initial po= st:=0A> =0A>> If I use this sequence from the PHP root directory:=0A> =0A>= > ./buildconf --force=0A>> as described here: =0A> talks.somabo.de/200510= _zend_conf_php_extension_development.pdf=0A> =0A>> I cannot see "lixa" as = an available option of my configure:=0A> =0A>> ./configure --help|grep lix= a=0A>> is empty.=0A> =0A>> If I try to build PHP anyway, I obtain:=0A> = =0A>> tiian@mojan:~/src/swig/php5.4-201202241630$ ./configure =0A> --with-= lixa=3D/opt/lixa/bin/lixa-config =0A>> configure: WARNING: unrecognized op= tions: --with-lixa=0A> =0A> Do you have any idea how to debug why "buildcon= f --force" does not =0A> pick-up my extension?=0A=A0=0A=A0Thanks in advance= =0A=A0Ch.F.