Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58289 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73810 invoked from network); 28 Feb 2012 22:00:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 22:00:30 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.210.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:48416] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/B7-36673-B7E4D4F4 for ; Tue, 28 Feb 2012 17:00:28 -0500 Received: by mail-pz0-f42.google.com with SMTP id g27so691004dan.29 for ; Tue, 28 Feb 2012 14:00:27 -0800 (PST) Received-SPF: pass (google.com: domain of rasmus@lerdorf.com designates 10.68.194.193 as permitted sender) client-ip=10.68.194.193; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rasmus@lerdorf.com designates 10.68.194.193 as permitted sender) smtp.mail=rasmus@lerdorf.com Received: from mr.google.com ([10.68.194.193]) by 10.68.194.193 with SMTP id hy1mr28480323pbc.53.1330466427091 (num_hops = 1); Tue, 28 Feb 2012 14:00:27 -0800 (PST) Received: by 10.68.194.193 with SMTP id hy1mr23807397pbc.53.1330466427040; Tue, 28 Feb 2012 14:00:27 -0800 (PST) Received: from [192.168.200.5] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id r6sm16693571pbq.56.2012.02.28.14.00.25 (version=SSLv3 cipher=OTHER); Tue, 28 Feb 2012 14:00:26 -0800 (PST) Message-ID: <4F4D4E79.1080602@lerdorf.com> Date: Tue, 28 Feb 2012 14:00:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Christian Ferrari CC: "internals@lists.php.net" References: <1330464316.3034.YahooMailNeo@web29505.mail.ird.yahoo.com> In-Reply-To: <1330464316.3034.YahooMailNeo@web29505.mail.ird.yahoo.com> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmkychJzkmRRLSg4Uv/kgv/LePjOta1vzQm5vpKDbEV1mzgV/GJVv/pbBVihFOtRlx87ii0 Subject: Re: [PHP-DEV] Newbie: issues developing a new extension From: rasmus@lerdorf.com (Rasmus Lerdorf) On 02/28/2012 01:25 PM, Christian Ferrari wrote: > Dear all, > I'm asking your help because I'm not able to solve an issue probably related to some foolish mistake I have not yet discovered. > I'm trying to develop an experimental extension to interface LIXA library (http:/lixa.sourceforge.net/). > > I have created the basic stuff (config.m4, lixa.c, php_lixa.h and so on). > > If I use this sequence from the ext/lixa directory: > > /opt/php/bin/phpize > ./configure --help > > I can see the lixa extension is available: > > [...] > Optional Packages: > --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] > --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) > --with-libdir=NAME Look for libraries in .../NAME rather than .../lib > --with-php-config=PATH Path to php-config php-config > --with-lixa=FILE Include LIXA support. File is the path to lixa-config > > [...] > > and I can compile with: > > ./configure --with-lixa=/opt/lixa/bin/lixa-config --with-php-config=/opt/php/bin/php-config > > the build process runs as expected and the extension is available after an addition to php.ini (extension=[...]/ext/lixa/modules/lixa.so). Great, you are done. Why do you want to go any further than this? You built your extension and it is available from PHP exactly like any pecl extension. -Rasmus