Re: Error compiling Glib perl bindings on win32/camelbox



On 7/13/2012 at  1:16 AM, Jeffrey Ray <jeffrey hallock gmail com> wrote:
I attempted compile the perl bindings (version 1.261) I get this output
error when running perl Makefile.pl

GMainLoop.xs: In function `XS_Glib__IO_add_watch':

GMainLoop.xs:556: warning: passing arg 1 of `g_io_channel_win32_new_socket'
make
s integer from pointer without a cast


Just a casting issue. It casts it to a HANDLE, but win32_get_osfhandle returns a intptr_t, and 
g_io_channel_win32_new_socket expects a gint.

Attached fixes it.


Regards,
Martin



Vrywaringsklousule / Disclaimer:  http://www.nwu.ac.za/it/gov-man/disclaimer.html 

Attachment: Glib-1.1261-cast-fix.patch
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]