Fw: [PHP-GTK-DEV] Error-killing
| From: | Steph | Date: | Thu, 22 Sep 2005 17:45:55 +0000 |
| Subject: | Fw: [PHP-GTK-DEV] Error-killing | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-1685@lists.php.net to get a copy of this message | ||
Fixed. It needs this patch, and it needs gen_gtk.c to be included at the
end of php_gtk+.h. If Andrei will allow me to do that, we have the means of
building extensions now, give or take a couple of minor alterations to
confutils.js for the doze sector.
Whether php_gtk_libglade2.dll actually works is a different matter,
naturally :)
- Steph
----- Original Message -----
From: "Steph" <steph@zend.com>
To: "Andrei" <andrei@gravitonic.com>
Cc: "PHP-GTK dev" <php-gtk-dev@lists.php.net>
Sent: Thursday, September 22, 2005 4:27 AM
Subject: [PHP-GTK-DEV] Error-killing
> Creating library Release\php-gtk2.lib and object Release\php-gtk2.exp
> gen_libglade.c
> php_libglade.c
> Creating library Release\php_gtk_libglade.lib and object
> Release\php_gtk_libglade.exp
> gen_libglade.obj : error LNK2001: unresolved external symbol
> _phpg_handle_gerror
> gen_libglade.obj : error LNK2001: unresolved external symbol
_gtk_globals_id
> gen_libglade.obj : error LNK2001: unresolved external symbol _gtkwidget_ce
> gen_libglade.obj : error LNK2001: unresolved external symbol
> _phpg_construct_exception
> gen_libglade.obj : error LNK2001: unresolved external symbol _gobject_ce
> Release\php_gtk_libglade.dll : fatal error LNK1120: 5 unresolved externals
> NMAKE : fatal error U1077: '"C:\PROGRA~1\MICROS~3\VC98\BIN\link.exe"' :
> return code '0x460'
> Stop.
>
> Attached API-giving patch gets rid of the first of those. Three of the
> others are in php-gtk2.lib anyway, and I don't know why they aren't being
> picked up from there. The rank outsider is gtkwidget_ce, which turns up
as
> 'unresolved' even after I added #include "ext/gtk+/gen_gtk.h" to
> libglade.overrides to replace the missing 'included include'.
>
> Naming's going to be an issue in this extension anyway I think, but it'd
be
> nice to get it as far as compiling...
>
> I'm about to update CVS with what I have, just in case anyone's feeling
> bright.
>
> - Steph
>
>
>
>
----------------------------------------------------------------------------
----
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Index: main/php_gtk.h =================================================================== RCS file: /repository/php-gtk/main/php_gtk.h,v retrieving revision 1.116 diff -u -r1.116 php_gtk.h --- main/php_gtk.h 13 Sep 2005 17:05:12 -0000 1.116 +++ main/php_gtk.h 22 Sep 2005 02:55:56 -0000 @@ -301,7 +301,7 @@ return ce; } -zend_bool phpg_handle_gerror(GError **error TSRMLS_DC); +PHP_GTK_API zend_bool phpg_handle_gerror(GError **error TSRMLS_DC); static inline gchar* phpg_to_utf8(const gchar *str, zend_uint str_len, gsize *utf8_len, zend_bool *free_orig TSRMLS_DC) {
Index: main/php_gtk.h =================================================================== RCS file: /repository/php-gtk/main/php_gtk.h,v retrieving revision 1.116 diff -u -r1.116 php_gtk.h --- main/php_gtk.h 13 Sep 2005 17:05:12 -0000 1.116 +++ main/php_gtk.h 22 Sep 2005 02:55:56 -0000 @@ -301,7 +301,7 @@ return ce; } -zend_bool phpg_handle_gerror(GError **error TSRMLS_DC); +PHP_GTK_API zend_bool phpg_handle_gerror(GError **error TSRMLS_DC); static inline gchar* phpg_to_utf8(const gchar *str, zend_uint str_len, gsize *utf8_len, zend_bool *free_orig TSRMLS_DC) {