Re: Err : Invalid library

From: Date: Tue, 13 Mar 2001 18:03:03 +0000
Subject: Re: Err : Invalid library
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-48821@lists.php.net to get a copy of this message
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

« previous php.dev (#48821) next »