Re: can't load the shared extension module in php-4.0.4RC6
| From: | Rui Hirokawa | Date: | Thu, 21 Dec 2000 23:24:37 +0000 |
| Subject: | Re: can't load the shared extension module in php-4.0.4RC6 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42090@lists.php.net to get a copy of this message | ||
I analysed this problem.
The source code of the all extension module are including
php.h, and php.h includes php_config.h.
When I make some module as dynamic extension module (foo.so),
phpize and configure outputs the php_config.h in local directory
(e.g. php4/ext/pgsql/php_config.h) which includes
some important definition (e.g. #define HAVE_PGSQL 1).
But there is also php_config.h in main directory,
the compiler includes the main php_config.h only,
so php_config.h in local directory is never included in
the compiling time.
In the previous version (>= php-4.0.3pl1), /usr/local/include/php/main/php_config.h is
located in /usr/local/include/php/, so the compiler successfully included
the local php_config.h.
I think the location of php_config.h or the include path should be
changed.
On Sat, 16 Dec 2000 17:22:31 +0900
Rui Hirokawa <louis@cityfujisawa.ne.jp> wrote:
>
> I install the php-4.0.4RC6 in Redhat-6.2 based Linux system.
>
> I made the shared extension module for PostgreSQL and some other modules,
> but I couldn't load these module dynamically.
>
> I compiled the module as follows,
>
> -> phpize
> -> ./configure --with-pgsql
> -> make install
>
> And,I defined the extension directory in /usr/local/lib/php.ini,
>
> extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20001214;
> extension=pgsql.so
>
> It worked fine in php-4.0.3pl1, but not work in php-4.0.4RC6.
>
> For examples, If executed php in command line, the warning
> is caused and the shared module (pgsql.so) couldn't be loaded.
>
> -> /usr/local/bin/php -v
> Content-type: text/html
>
> PHP Warning: Invalid library (maybe not a PHP library) 'pgsql.so' in Unknown on
> line 0
> 4.0.4RC6
>
>
>
> --
> ----------------------------------------------------------
> Rui Hirokawa <louis@cityfujisawa.ne.jp>
> maintainer of japanese PHP manual <hirokawa@php.net>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
----------------------------------------------------------
Rui Hirokawa <louis@cityfujisawa.ne.jp>
maintainer of japanese PHP manual <hirokawa@php.net>