Thanks Marc,
It really helped in that sense that it become more obvious what is
happening at
all.
The trouble with zend API examples from zend.com was that somehow they
bring
into configure script \r characters. Pretty dumb reason but sometimes it
can
cause
a lot of troubles. Now I can compile and build dynamic modules , but a
task goes
far
beyond that. My module has to be linked with some external libraries
such as
OpenSSL.
What I need is a static link (I guess). Things like --enable-static or
--disable-shared
does not make any difference somehow.
On the mentioned zend.com I found following:
----------------------------
Note: Compiling and linking manually as a static module into the PHP
binary
involves
very long instructions and thus is not discussed here. (It's not very
efficient
to type all those commands.)
-----------------------------
Any ideas where such instructions could be found, or how to force
"configure"
make a static module ?
Help appreciated.
Marc Boeren wrote:
> I had a couple of problems as well, but managed it after a while.
> Please read the README.SELF-CONTAINED-EXTENSIONS in the php-folder, as it
> helps.
>
> In short, create a config.m4 like this
>
> PHP_ARG_ENABLE(dbx,whether to enable dbx,
> [ --enable-dbx Enable dbx])
>
> if test "$PHP_DBX" != "no"; then
> PHP_EXTENSION(dbx, $ext_shared)
> fi
>
> and replace dbx with whatever your module is called.
> Create a Makefile.in like this
>
> LTLIBRARY_SHARED_NAME = dbx.la
> LTLIBRARY_SOURCES = dbx.c dbx_mysql.c dbx_odbc.c
>
> include $(top_srcdir)/build/dynlib.mk
>
> where you include all your c source files.
>
> I then found that the phpize-script returned an error for some AC_WHATEVER
> thing it couldn't find, so I ran (from my modules src folder)
>
> phpize
> /usr/local/bin/aclocal
> /usr/local/bin/autoconf
> /usr/local/bin/autoheader
> /usr/local/bin/libtoolize -f -c
>
> phpize generates this AC_ error, but by running the next four commands (that
> are at the end of phpize) by hand I got it to work...
> Then it's simply
>
> ./configure --with-php-config=/usr/local/bin/php-config
> make
> make install
>
> And voila!
>
> Hope this helps!
>
> Cheerio, Marc.
--
Viktors Krebss, [EMAIL PROTECTED]
DELFI Interactive, http://www.delfi.lv/
tel: +371-7777748, mob: +371-9243923, fax: +371-7777701
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]