Problem running pecl-gen
| From: | Bruce M. Axtens | Date: | Tue, 19 Oct 2010 08:20:46 +0000 |
| Subject: | Problem running pecl-gen | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-7784@lists.php.net to get a copy of this message | ||
Okay, below is the session cut and pasted from VirtualBox. Aside from the warning about mcrypt.so, what's more pressing is the PHP Fatal error on line 274.
Kind regards,
Bruce.
P.S. Before I get told to install the latest version, let me point out that I have done this, such that attempting to do it again gives "pear/CodeGen_PECL is already installed and is the same as the released version 1.1.3
install failed"
--
$ uname -a
Linux bruce-laptop 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux
$ pecl-gen --extname=foo --proto=foo.proto
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mcrypt.so' - /usr/lib/php5/20090626+lfs/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
Warning: Missing argument 2 for CodeGen_PECL_Element_Function::setProto(), called in /usr/share/php/CodeGen/PECL/Command.php on line 189 and defined in /usr/share/php/CodeGen/PECL/Element/Function.php on line 270
Notice: Undefined variable: extension in /usr/share/php/CodeGen/PECL/Element/Function.php on line 274
PHP Fatal error: Call to a member function haveVersion() on a non-object in /usr/share/php/CodeGen/PECL/Element/Function.php on line 274
PHP Stack trace:
PHP 1. {main}() /usr/share/php/CodeGen/PECL/Cli.php:0
PHP 2. CodeGen_PECL_Command->extSkelCompat() /usr/share/php/CodeGen/PECL/Cli.php:35
PHP 3. CodeGen_PECL_Element_Function->setProto() /usr/share/php/CodeGen/PECL/Command.php:189
--
foo.proto contains:
mixed foo(mixed bar) Foobar
int inc(int i) Increment
int dec(int i) Decrement