compiling on 64-bit system

Asked by vishy

I am trying to compile pidgin-webkit on 64-bit fedora 13 and getting following error.

$ -> make
gcc -c webkit.c -o webkit.o -O2 -Wall -fpic -g -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/atk-1.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/lib/gtk-2.0/include -I/usr/include -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include `pkg-config --cflags gtk+-2.0 pidgin` `pkg-config --cflags webkit-1.0`
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from /usr/include/glib-2.0/gobject/gtype.h:26,
                 from /usr/include/glib-2.0/gobject/gboxed.h:26,
                 from /usr/include/glib-2.0/glib-object.h:25,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from webkit.c:27:
/usr/include/glib-2.0/glib/gthread.h: In function ‘g_once_init_enter’:
/usr/include/glib-2.0/glib/gthread.h:348: error: size of array ‘type name’ is negative
webkit.c: In function ‘gtk_smiley_tree_lookup’:
webkit.c:755: warning: cast from pointer to integer of different size
webkit.c:756: warning: cast from pointer to integer of different size
webkit.c:780: warning: cast from pointer to integer of different size
webkit.c:781: warning: cast from pointer to integer of different size
webkit.c: In function ‘pidgin_webkit_write_conv’:
webkit.c:906: warning: cast from pointer to integer of different size
make: *** [webkit.o] Error 1

Can i get some help to fix this issue.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Pidgin-WebKit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mario Cianciolo (udda) said :
#1

this happens when you try to do automatic type conversions (cast) from two types of different size like when trying to cast a pointer to a int.
In 32 bit architecture, sizeof(int) = sizeof(void*) = 4, but in 64 bit sizeof(void*) = 8, and a conversion to int is no longer valid. Try substitute the typename int to long wherever this warning appears.

Revision history for this message
daqron (daqron) said :
#2

Did anyone get this to work? Changing stuff in the code is a little over my head, but if there is source code available that will compile on a 64-bit system I would love to get it. Thanks!

Revision history for this message
Chow Loong Jin (hyperair) said :
#3

Perhaps a better question to ask would be why are you even casting pointers into integers and/or vice versa?

Revision history for this message
Petr Sedlacek (piit79) said :
#4

Just wanted to say that I've just compiled the "karmic-fixes" branch of the pidgin-webkit plugin on Maverick x86_64 without any problem and it seems to be working so far! I'm really glad. Now to get the history to save in a half-inteligent format and Pidgin will be usable.

Can you help with this problem?

Provide an answer of your own, or ask vishy for more information if necessary.

To post a message you must log in.