From: Armin B. <arm...@de...> - 2005-08-23 22:24:10
|
Someone tried this several days ago, but his compiler did not complain. so his opensync crashed of course. The problem is that im casting between (void *) and (int) which works on 32 bit but will fail on 64 bit of course due to the size differences. Is there any way around this, besides using temp variables? On Tue, 2005-08-23 at 10:36 -0500, Jason Sievert wrote: > Has anyone tried it on amd64 OS? I am running gentoo 64bit and > opensync failes to compile. Here is the error that I get. > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 > -I/usr/lib64/glib-2.0/include -Wall -I/usr/include/libxml2 -Werror > -DOPENSYNC_PLUGINDIR=\"/usr/local/lib/opensync/plugins\" > -DOPENSYNC_CONFIGDIR=\"/usr/local/share/opensync/defaults\" > -DOPENSYNC_FORMATSDIR=\"/usr/local/lib/opensync/formats\" -g -O2 -MT > opensync_debug.lo -MD -MP -MF .deps/opensync_debug.Tpo -c > opensync_debug.c -fPIC -DPIC -o .libs/opensync_debug.o > opensync_debug.c: In function `osync_trace': > opensync_debug.c:64: warning: cast from pointer to integer of different size > opensync_debug.c:102: warning: cast to pointer from integer of different size > opensync_debug.c:102: warning: cast to pointer from integer of different size > make[2]: *** [opensync_debug.lo] Error 1 > make[2]: Leaving directory `/home/jsievert/Desktop/libopensync-0.17/opensync' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/jsievert/Desktop/libopensync-0.17' > make: *** [all] Error 2 > > > Thanks, > Jason > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Opensync-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensync-users |