>I am building my custom php extension. For the windows platform it went
>fine, but I still have a problems on Linux.
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.
--
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]