Re: [PHP-GTK-DEV] Shared Extensions
by Steph Fox other posts by this author
Jun 19 2007 7:26PM messages near this date
[PHP-GTK-DEV] Shared Extensions
|
Re: [PHP-GTK-DEV] Shared Extensions
Hi Anant,
What took you guys so long anyway? ;)
COMPILE_DL_* is the PHP version of events, and PHP-GTK is a PHP extension.
So of course, when writing my first and only extension, I copied the #define
format I saw in php_gtk.c. After all, "It works on my box..."
Please don't commit any fixes without testing on both platforms first, in
case that's been inadvertently used to distinguish between platforms
somewhere deep in the source. But it's just a case of testing for
extname=="php-gtk" in the EXTENSION() definition, where it says:
cflags = "/D COMPILE_DL_" + EXT + "2 /D " + EXT + "_EXPORTS=1" + cflags;
and adapting accordingly.
- Steph
> Hi All,
>
> Bob (Majdak Jr.) has figured out why shared extensions haven't been
> working on *nix all this while, and I've traced the issue to this commit:
>
> http://cvs.php.net/viewvc.cgi/php-gtk/ext/libglade/php_libglade.c?r1=1.7&r2=1.8
>
> That commit changes #ifdef PHP_GTK_COMPILE_DL_LIBGLADE to #ifdef
> COMPILE_DL_LIBGLADE2. Apparently the windows build system defines
> COMPILE_DL_<extension>2, but the *nix system is still defining
> PHP_GTK_COMPILE_DL_<extension> whenever a shared extension is to be built.
>
> This has carried on into all the other extensions too, with the result
> being that none of them build as a shared .so on *nix.
>
> Can we agree on a single #define please? :)
>
> Cheers,
> --
> Anant
>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Anant Narayanan
Steph Fox
Steph
Tom Rogers
Bob Majdak Jr
|