Re: [PHP-DEV] Shared library extensions

2001-04-19 Thread md

Hello Rasmus:

Thanks for the reply.  I am working with 4.0.4pl1 PHP

I was hoping it would just work, but I cannot get it to work.

Where do I go to get information about config.m4 type files? I have no
idea
how to manage Makefile.in and config.m4 files?  What tools read these
files? (libtool?)
Where is the documentation for these tools?

The README.EXT_SKEL mentions that I have to remove 3 comments from
config.m4 to get it to work.  
What 3 lines do I remove comments from?

This is where my knowledge is weak right now, controlling the input
files.  The actual coding of the module
is the easy part.  

Mark Diener


Rasmus Lerdorf wrote:
> 
> It should just work.  --enable-modname=shared
> and then do a 'make' and you should find your .so in the modules/
> directory.
> 
> -Rasmus
> 
> On Thu, 19 Apr 2001, md wrote:
> 
> > I am getting very close on making a GNU compiled C extension for PHP4
> > using ext_skel.
> >
> >
> > Where does one look to understand what is going on inside the config.m4
> > file (m4 files in general)
> >
> > It is a mystery on how to make a shared library .so file available to
> > PHP4.
> >
> > That is the problem.
> >
> > How to go from a --enable-modname format where the extension in compiled
> > into libphp4.so
> > to a shared library .so file where PHP4 can use the dl("TEST.SO) call to
> > make those functions available.
> >
> > Any help and tips would be appreciated.
> >
> > Mark Diener
> > [EMAIL PROTECTED]
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Shared library extensions

2001-04-19 Thread Rasmus Lerdorf

It should just work.  --enable-modname=shared
and then do a 'make' and you should find your .so in the modules/
directory.

-Rasmus

On Thu, 19 Apr 2001, md wrote:

> I am getting very close on making a GNU compiled C extension for PHP4
> using ext_skel.
>
>
> Where does one look to understand what is going on inside the config.m4
> file (m4 files in general)
>
> It is a mystery on how to make a shared library .so file available to
> PHP4.
>
> That is the problem.
>
> How to go from a --enable-modname format where the extension in compiled
> into libphp4.so
> to a shared library .so file where PHP4 can use the dl("TEST.SO) call to
> make those functions available.
>
> Any help and tips would be appreciated.
>
> Mark Diener
> [EMAIL PROTECTED]
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Shared library extensions

2001-04-19 Thread md

I am getting very close on making a GNU compiled C extension for PHP4
using ext_skel.


Where does one look to understand what is going on inside the config.m4
file (m4 files in general)

It is a mystery on how to make a shared library .so file available to
PHP4.

That is the problem. 

How to go from a --enable-modname format where the extension in compiled
into libphp4.so
to a shared library .so file where PHP4 can use the dl("TEST.SO) call to
make those functions available.

Any help and tips would be appreciated.

Mark Diener
[EMAIL PROTECTED]

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]