Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58323 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63302 invoked from network); 29 Feb 2012 08:04:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 08:04:37 -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.59 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.59 nm2.bullet.mail.ird.yahoo.com Received: from [77.238.189.59] ([77.238.189.59:25608] helo=nm2.bullet.mail.ird.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/D9-36673-41CDD4F4 for ; Wed, 29 Feb 2012 03:04:37 -0500 Received: from [77.238.189.52] by nm2.bullet.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 08:04:33 -0000 Received: from [212.82.108.237] by tm5.bullet.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 08:04:33 -0000 Received: from [127.0.0.1] by omp1002.mail.ird.yahoo.com with NNFMP; 29 Feb 2012 08:04:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 581779.12452.bm@omp1002.mail.ird.yahoo.com Received: (qmail 20654 invoked by uid 60001); 29 Feb 2012 08:04:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1330502673; bh=sjgrietTLJyGTkO9CPoy1h/rpzlf0ZlGU/FAVhv8Gy4=; 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=R5xwV54z6ovmFDao0i+2tUBBl4jE6GEwfuTnFVoko3Z1s1HZ61YVQOKVhxqtzW4BOCzmGtI/8kkLHeX/DdEpnCR8MGxYW/TREMroV2aXl3yAMa27ykCHj8fy+KKCOz15q14DS0B93am5nVpr8J3hC1VAcnqEIzO/boBGyVdyhWU= 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=CrMxZ4SHjWEXYv0mCfJurjoZuvoEEqmiT9iCSL02kOKdju8t7nyWr0f65SPyNDkEkvXYzkP3bZtI5T1WA3APNopSQAM8RhM5HdSENnQdsGwMuwsV9/ZK1w1JiBu22YiXq8W9DIwjez9/7rYhzlX+gg78IIQWzYlhYMtKlAwZCzg=; X-YMail-OSG: 5ybPQ2QVM1k0PECFfEcmoXuHa6_hbSxG8z6N3x1qFJ8uHSV KoEas_v3Ra6NJxAqkmpvaE8htySrk8AJI5Yz1A6IJ8sbgH7GQ_Kn8b7aMtdc m3dPi8pv.cKhkPYma8tJ1FJvdgVM9qrUCv3ATmZ5.dYjdCIzFtj5HCQ1O39d K8nmw65X4GpaW4CRlUhJz9H5bcW7hy_fQHH9OuP1HWyLHY5HA6R9yeUsE4d4 l2owS5F_AlyJIQ3h0hmrz5npN22jQRTlnsB_7BBJ23mDgQgBWo5aGkvMKTJ9 Llykg_zY9F3Cw9SDvBm5PHxuMACnaBgUKl0nA.bnMm4vwicOHkyiiyx.G1Jh 4QMjEr1MAoVuIYJivnwAdmd.0KUFihpdnV3TkLeV4oC6.oSYPciuowbvnMnI E5jCQ5fYlDQDf7dR9M0vO7D34rN2dnA.R_fQwIlCJvBjWraYkadu44kDHBre yJ4lg7LNZ87KE2ph1QCRvLRsuns_Z9EwDMkkHE9ybi4MuQ8DRdfkbaSfGNH1 mUnxV7bJYWAWTJaCc0e1rJL4haw.L8b9MEkohn6Ip.WhNUB2r.fe419AoduF soqKiXui1gCO0Ok87.ADlIqVUoVAPuekZvNIlzQ63360Zgt6xLPWAF0AFjpW 47tiu9gmNGT1eeidFwcgd8zjHsw5fqDCH8h5Omn4D8JKA_TpxOakh Received: from [92.246.34.60] by web29506.mail.ird.yahoo.com via HTTP; Wed, 29 Feb 2012 08:04:33 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> Message-ID: <1330502673.12982.YahooMailNeo@web29506.mail.ird.yahoo.com> Date: Wed, 29 Feb 2012 08:04:33 +0000 (GMT) Reply-To: Christian Ferrari To: "internals@lists.php.net" In-Reply-To: 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> Dear all,=0A=0A>> =0A>>>> =A0> I'm asking your help because I'm= not able to solve an =0A> issue=0A>>> probably=0A>>>> =A0related to some= foolish mistake I have not yet discovered.=0A>>>> =A0> I'm trying to deve= lop an experimental extension to =0A> interface LIXA=0A>>>> =A0library (ht= tp:/lixa.sourceforge.net/).=0A>>>> =A0>=0A>>>> =A0> I have created the ba= sic stuff (config.m4, lixa.c, php_lixa.h =0A> and so=0A>>> on).=0A>>>> = =A0>=0A>>>> =A0> If I use this sequence from the ext/lixa directory:=0A>>>= > =A0>=0A>>>> =A0> /opt/php/bin/phpize=0A>>>> =A0> ./configure --help=0A= >>>> =A0>=0A>>>> =A0> I can see the lixa extension is available:=0A>>>> = =A0>=0A>>>> =A0> [...]=0A>>>> =A0> Optional Packages:=0A>>>> =A0>=A0 =A0= --with-PACKAGE[=3DARG]=A0 =A0 use PACKAGE [ARG=3Dyes]=0A>>>> =A0>=A0 =A0--= without-PACKAGE=A0 =A0 =A0 =A0do not use PACKAGE (same as=0A>>> --with-PAC= KAGE=3Dno)=0A>>>> =A0>=A0 =A0--with-libdir=3DNAME=A0 =A0 =A0 Look for libr= aries in .../NAME =0A> rather than=0A>>>> =A0.../lib=0A>>>> =A0>=A0 =A0--= with-php-config=3DPATH=A0 Path to php-config php-config=0A>>>> =A0>=A0 =A0= --with-lixa=3DFILE=A0 =A0 =A0 =A0 Include LIXA support. File is the =0A> pa= th to=0A>>>> =A0lixa-config=0A>>>> =A0>=0A>>>> =A0> [...]=0A>>>> =A0>= =0A>>>> =A0> and I can compile with:=0A>>>> =A0>=0A>>>> =A0> ./configure= --with-lixa=3D/opt/lixa/bin/lixa-config=0A>>>> =A0--with-php-config=3D/op= t/php/bin/php-config=0A>>>> =A0>=0A>>>> =A0> the build process runs as ex= pected and the extension is =0A> available=0A>>> after=0A>>>> =A0an addit= ion to php.ini (extension=3D[...]/ext/lixa/modules/lixa.so).=0A>>>> =0A>>>>= =A0Great, you are done. Why do you want to go any further than this? =0A>= You=0A>>>> =A0built your extension and it is available from PHP exactly l= ike any =0A> pecl=0A>>>> =A0extension.=0A>>>> =0A>>> =0A>>> and if you're= using apache, reboot it and check your phpinfo() page =0A> for=0A>>> your= extension.=0A>>> if you're connected up via the command line you can run = "php =0A> -m"=0A>>> to see if=0A>>> your modules exists.=0A>>> =0A>>> =0A= >>>> =0A>>>> =A0-Rasmus=0A>>>> =0A>> =0A>> Dear all,=0A>> I would like t= o see my extension as any other extension, like MySQL, =0A> PostgreSQL, Ora= cle and so on because:=0A>> 1. LIXA itself is useless without those resour= ce managers=0A>> 2. I need to patch other extensions to implement the inte= rfaces between =0A> LIXA and MySQL/PostgreSQL/Oracle.=0A>> What's the diff= erence between an "internal" extension (like=0A>> MySQL/PostgreSQL/Oracle)= and an "external" extension as the one I=0A>> produced?=0A>> Thanks in a= dvance, your help is precious.=0A> =0A> =0A> The PHP source archive bundles= several extensions under the ext/=0A> directory, these are the extensions = are listed when you run=0A> ./configure --help=0A> =0A> I don't understand = why you want your extension to show up there, 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 filesystem for possible extension=0A> dir= ectories to list them under ./configure=0A> I'm sure you have seen, and use= d, http://pecl.php.net - these=0A> extensions don't show up when you build = PHP.=0A> =0A> The standard way to build "external" extensions however is to= use=0A> pecl, or manually build them as shared modules (as you did first).= =0A> =0A> =0A> -Hannes=0A>=0A=0AThat's the point: I tryed=0A./buildconf --h= elp=0Abut it didn't include my extension.=0A=0AThis is an excerpt from my i= nitial post:=0A=0A> If I use this sequence from the PHP root directory:=0A= =0A> ./buildconf --force=0A> as described here: talks.somabo.de/200510_zend= _conf_php_extension_development.pdf=0A=0A> I cannot see "lixa" as an availa= ble option of my configure:=0A=0A> ./configure --help|grep lixa=0A> is empt= y.=0A=0A> If I try to build PHP anyway, I obtain:=0A=0A> tiian@mojan:~/src/= swig/php5.4-201202241630$ ./configure --with-lixa=3D/opt/lixa/bin/lixa-conf= ig =0A> configure: WARNING: unrecognized options: --with-lixa=0A=0ADo you h= ave any idea how to debug why "buildconf --force" does not pick-up my exten= sion?=0A=0AThanks in advance=0ACh.F.