php extension problem
| From: | Pierre Ancelot | Date: | Mon, 25 Oct 2004 17:19:49 +0000 |
| Subject: | php extension problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200266@lists.php.net to get a copy of this message | ||
Hi !
I am having some trouble creating a php extension.
as show in the documentation i did a ./ext_skel --extname=mymodule
which created the directory mymodule
i edited the config.m4 file to tune it to something very basic :
PHP_ARG_WITH(mymodule, for mymodule support,
[ --with-mymodule Include mymodule support])
if test "$PHP_MYMODULE" != "no"; then
PHP_NEW_EXTENSION(mymodule, mymodule.c, $ext_shared)
fi
saved and went to the base of the source tree...
pierre@debian:/usr/src/php4-4.3.9$ ./buildconf
You should not run buildconf in a release package.
use buildconf --force to override this check.
pierre@debian:/usr/src/php4-4.3.9$ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13 and automake-1.5.
buildconf: libtool version 1.5.6 (ok)
rebuilding configure
autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
configure.in:147: the top level
pierre@debian:/usr/src/php4-4.3.9$
then, i been looking up if the module was taken
pierre@debian:/usr/src/php4-4.3.9$ ./configure --help | grep -i mymodule
pierre@debian:/usr/src/php4-4.3.9$
and.... no, it's not.... any idea ? something i did wrong ?
thank you :)