Date: 05/15/01
- Next message: derick <email protected>: "[PHP-DEV] Bug #10869 Updated: bug in an example"
- Previous message: w.zakeyan <email protected>: "[PHP-DEV] Bug #10869: bug in an example"
- In reply to: Petr Cech: "[PHP-DEV] Bug in building standalone DSO modules"
- Next in thread: Petr Cech: "Re: [PHP-DEV] Bug in building standalone DSO modules"
- Reply: Petr Cech: "Re: [PHP-DEV] Bug in building standalone DSO modules"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, May 15, 2001 at 10:35:37AM +0200, Petr Cech wrote:
> Hi,
> I've been strugling for some time with the possibility of building some
> extension not inside of ext/ dir, but using phpize to just add some module
> later. Strangely, it didn't work - mostly. configure was created, Makefiles,
> config.h ... Just great, but the resulting .so did not. But only in some
> modules. And I fond also why:
>
> Modules don't #include config.h generated by the ./configure - including
> this right at the top fixes the problems.
>
> So, putting in every module and having phpize generate -DHAVE_CONFIG_H would
> make it really painless for everyone to build his favorite extension
>
> #ifdef HAVE_CONFIG_H
> #include "config.h"
> #endif
Another way (without changing extension) is to run configure as
CFLAGS="$CFLAGS -DHAVE_FOO=1 -DCOMPILE_DL_FOO=1" ./configure [options]
where FOO is the capitalized extension name.
I'd prefer your approach but it requires Stig Bakken's karma to change
this in PHP4 CVS. :-)
-- Sincerely yours, Alexander Bokovoy The Midgard Project | ALT Linux Team | Minsk Linux Users Group www.midgard-project.org | www.altlinux.ru | www.minsk-lug.net -- You won't skid if you stay in a rut. -- Frank Hubbard-- 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>
- Next message: derick <email protected>: "[PHP-DEV] Bug #10869 Updated: bug in an example"
- Previous message: w.zakeyan <email protected>: "[PHP-DEV] Bug #10869: bug in an example"
- In reply to: Petr Cech: "[PHP-DEV] Bug in building standalone DSO modules"
- Next in thread: Petr Cech: "Re: [PHP-DEV] Bug in building standalone DSO modules"
- Reply: Petr Cech: "Re: [PHP-DEV] Bug in building standalone DSO modules"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

