# building external libraries for binary distributtion

- Thread: https://externals.io/message/2046
- Original archive: https://news-web.php.net/php.internals/2046
- Started by joerg mauz on 2003-05-28T07:11:24+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2046 — joerg mauz — 2003-05-28T07:11:24+00:00

URL: https://externals.io/message/2046#2046

hi all,
 
i work on building my own external library that should be usable within
php
using the //dl(.) command. so i read it the docs about how to write
extension
but i felt somehow low left alone, cause the docs only just describes
how to 
create extensions that are shipped with the source for being able to
build a
complete new php (and the code the documents contain isn't working
either !!!).
so what i'm looking for is a mechanism to built my extension on my local
php
installation (full sourc of everything available) and then just only
send the library 
file (myext.so) to the customer, that itself just puts the lib somewhere
to be loaded
by php's //dl(.) command
 
are there any other docs / recources available than those from the 
php-manual: en/zend.creating.php
 
thanks in advance .
 
cu
 
            joerg

---

## #2048 — mbretter@jawa@Michael Bretterklieber — 2003-05-28T07:56:08+00:00

URL: https://externals.io/message/2046#2048 · In reply to: #2046

Hi,


> hi all,
>
> i work on building my own external library that should be usable within
> php
> using the //dl(.) command. so i read it the docs about how to write
> extension
> but i felt somehow low left alone, cause the docs only just describes
> how to
> create extensions that are shipped with the source for being able to
> build a
> complete new php (and the code the documents contain isn't working
> either !!!).
> so what i'm looking for is a mechanism to built my extension on my local
> php
> installation (full sourc of everything available) and then just only
> send the library
> file (myext.so) to the customer, that itself just puts the lib somewhere
> to be loaded
> by php's //dl(.) command
>
> are there any other docs / recources available than those from the
> php-manual: en/zend.creating.php
>
http://pear.php.net/manual/en/introduction.php#about-pecl

- after you have written your config.m4 do this:
- phpize
- ./configure
- make
- make install

then you get a .so, wich you can send to your customer.

bye,
--
------------------------------- ----------------------------------
Michael Bretterklieber          - http://www.bretterklieber.com
JAWA Management Software GmbH   - http://www.jawa.at
Tel: ++43-(0)316-403274-12      - GSM: ++43-(0)676-84 03 15 712
------------------------------- ----------------------------------
"...the number of UNIX installations has grown to 10, with more
expected..." - Dennis Ritchie and Ken Thompson, June 1972

---

## #2050 — Derick Rethans — 2003-05-28T08:12:05+00:00

URL: https://externals.io/message/2046#2050 · In reply to: #2046

> hi all,
>  i work on building my own external library that should be usable
> within php using the //dl(.) command. so i read it the docs about how
> to write extension but i felt somehow low left alone, cause the docs
> only just describes how to create extensions that are shipped with the
> source for being able to build a complete new php (and the code the
> documents contain isn't working either !!!). so what i'm looking for
> is a mechanism to built my extension on my local php installation
> (full sourc of everything available) and then just only send the
> library file (myext.so) to the customer, that itself just puts the lib
> somewhere to be loaded by php's //dl(.) command
>  
> are there any other docs / recources available than those from the 
> php-manual: en/zend.creating.php

http://pres.derickrethans.nl/ze-ext slides 20 to the end

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 International PHP Magazine                          http://php-mag.net/

---

## #2053 — Piotr Klaban — 2003-05-28T08:43:17+00:00

URL: https://externals.io/message/2046#2053 · In reply to: #2048

> - after you have written your config.m4 do this:
> - phpize
> - ./configure

And one do not need to run ./configure with arguments ?
 ./configure --with-extension --enable-shared=extension

Best regards,

-- 
Piotr Klaban
