Re: [PHP-DEV] Err : Invalid library From: Andrei Zmievski (andrei <email protected>)
Date: 03/13/01

On Tue, 13 Mar 2001, Alexander Bokovoy wrote:
> 2. PHP-GTK suffers from other bug. It is also a problem with build
> environment: when you do
>
> #include "php_config.h"
>
> in SCE module, then main PHP4 php_config.h which is installed on the
> system is included, not locally created php_config.h which contains
> proper definitions of HAVE_PHP_GTK and COMPILE_DL_PHP_GTK symbols.
>
> In the CVS version of PHP4 header file which is generated as SCE config
> file is renamed to config.h from php_config.h few days ago. But modules
> themselves were not updated, so there are no modules in PHP4 than really
> include config.h from the current directory, so HAVE_MODULENAME will be
> undefined for all of them (if they are compiled as SCE) and all code
> will be skipped due
>
> #if HAVE_MODULENAME
> <actual code>
> #endif
>
> in most of them.
>
> This particulary touches PHP-GTK, mysql, dba, and most of other modules.
>
> Solution for PHP-GTK is to pass -DHAVE_PHP_GTK=1 -DCOMPILE_DL_PHP_GTK=1 to configure
> through CFLAGS. Or fix SCE build environment (macros in acinclude.m4, pear/pear.m4
> and #include "php_config.h" in all modules).

Alex,

Good job of tracking this down. I fixed php-gtk to use config.h.

-Andrei

"Try to spend the next 30 seconds not thinking
 about a blue-eyed polar bear." -Feodor Dostoevsky

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>