From: A. <re...@am...> - 2005-10-03 17:30:32
|
Waiting for an answer from the synce-devel maintainer, I wanted to go further compiling the synce plugin. I came back to what is in CVS by redoing a checkout and created a rra directory containing all the include files provided by synce-devel-0.9.1-3.fc4. I'm using the last gcc provided with the FC4: gcc-4.0.1-4.fc4 So, now, configure works like a charm and I have no include errors since rra/ is there. But, I have compilation errors :-( Here is the traces. gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/home/amourouxr/Tools/usr/local/include/rra -I/home/amourouxr/Tools/usr/local/include -Wall -Werror -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/home/amourouxr/Tools/usr/local/include/opensync-1.0 -g -O2 -MT synce_plugin.lo -MD -MP -MF .deps/synce_plugin.Tpo -c synce_plugin.c -fPIC -DPIC -o .libs/synce_plugin.o cc1: warnings being treated as errors synce_plugin.c: In function 'm_report_todo_changes': synce_plugin.c:256: warning: pointer targets in passing argument 1 of 'osync_print_binary' differ in signedness synce_plugin.c: In function 'm_report_cal_changes': synce_plugin.c:304: warning: pointer targets in passing argument 1 of 'osync_print_binary' differ in signedness After removing the two lines (calls to osync_print_binary seems to be only for debugging purposes), everything compiles fine. I'll try synchronisation tomorrow. one comment below about your answer, armin. > I think the correct way is to do it like this: > > rra and synce get installed into a directory ${includedir}/rra-$version/rra > > this way its possible to use the rra/ prefix in the #include statement > (which works also a sort of a namespace so includes dont overlap) but it > is also possible to install several versions separately. I'm not sure it's really interesting to have the version in the directory name. It makes things difficult for the developper using the library since it has to provide configuration files managing the version information and cannot rely on a default location. If the maintainer of the package really want to allow several installations of the same package, he has to make that package relocatable. Thus, with a simple --with-rra=DIR, you can use different version of the library. Regards RemyA -- E-mail : Re...@Am... Web : http://www.amouroux.org/ Yahoo Id: kelkooremya |