From: Armin B. <arm...@de...> - 2005-09-23 14:20:49
|
Stefan Struhs wrote: > Hi all, > > I am getting the following make error if I try to compile > opensync-plugin-synce: > > Making all in src > make[2]: Entering directory > `/usr/src/opensync-plugin-synce/synce/src' > if /bin/sh ../libtool --tag=CC --mode=compile gcc > -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Werror > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/libxml2 -I/usr/local/include/opensync-1.0 -g > -O2 -MT synce_plugin.lo -MD -MP -MF ".deps/synce_plugin.Tpo" -c > -o synce_plugin.lo synce_plugin.c; \ > then mv -f ".deps/synce_plugin.Tpo" ".deps/synce_plugin.Plo"; > else rm -f ".deps/synce_plugin.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Werror > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/libxml2 -I/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 > In file included from synce_plugin.c:31: > synce_plugin.h:53: error: syntax error before '<<' token > synce_plugin.h:53: warning: no semicolon at end of struct or > union > synce_plugin.h:55: warning: type defaults to `int' in > declaration of `synce_plugin_environment' > synce_plugin.h:55: warning: data definition has no type or > storage class > synce_plugin.h:56: error: syntax error before '==' token > synce_plugin.h:57: warning: type defaults to `int' in > declaration of `SyncePluginPtr' > synce_plugin.h:57: warning: data definition has no type or > storage class > synce_plugin.h:58: error: syntax error before '>>' token > synce_plugin.c: In function `initialize': > synce_plugin.c:51: error: `env' undeclared (first use in this > function) > synce_plugin.c:51: error: (Each undeclared identifier is > reported only once > synce_plugin.c:51: error: for each function it appears in.) > synce_plugin.c:63: warning: implicit declaration of function > `synce_parse_settings' > synce_plugin.c: In function `connect': > synce_plugin.c:91: error: `env' undeclared (first use in this > function) > synce_plugin.c:91: error: syntax error before ')' token > synce_plugin.c:205: error: syntax error before '<<' token > synce_plugin.c:215: error: `error' undeclared (first use in this > function) > synce_plugin.c: At top level: > synce_plugin.c:221: error: syntax error before '>>' token > synce_plugin.c: In function `m_report_contact_changes': > synce_plugin.c:266: error: `env' undeclared (first use in this > function) > synce_plugin.c:266: error: syntax error before ')' token > synce_plugin.c: In function `m_report_todo_changes': > synce_plugin.c:309: error: `env' undeclared (first use in this > function) > synce_plugin.c:309: error: syntax error before ')' token > synce_plugin.c: In function `m_report_cal_changes': > synce_plugin.c:356: error: `env' undeclared (first use in this > function) > synce_plugin.c:356: error: syntax error before ')' token > synce_plugin.c: In function `m_report_contact': > synce_plugin.c:404: error: `env' undeclared (first use in this > function) > synce_plugin.c:404: error: syntax error before ')' token > synce_plugin.c: In function `m_report_todo': > synce_plugin.c:472: error: `env' undeclared (first use in this > function) > synce_plugin.c:472: error: syntax error before ')' token > synce_plugin.c: In function `m_report_cal': > synce_plugin.c:542: error: `env' undeclared (first use in this > function) > synce_plugin.c:542: error: syntax error before ')' token > synce_plugin.c: In function `get_changeinfo': > synce_plugin.c:612: error: `env' undeclared (first use in this > function) > synce_plugin.c:612: error: syntax error before ')' token > synce_plugin.c: In function `commit_contacts_change': > synce_plugin.c:711: error: `env' undeclared (first use in this > function) > synce_plugin.c:711: error: syntax error before ')' token > synce_plugin.c: In function `commit_todo_change': > synce_plugin.c:789: error: `env' undeclared (first use in this > function) > synce_plugin.c:789: error: syntax error before ')' token > synce_plugin.c: In function `commit_cal_change': > synce_plugin.c:867: error: `env' undeclared (first use in this > function) > synce_plugin.c:867: error: syntax error before ')' token > synce_plugin.c: In function `sync_done': > synce_plugin.c:948: error: `env' undeclared (first use in this > function) > synce_plugin.c:948: error: syntax error before ')' token > synce_plugin.c: In function `disconnect': > synce_plugin.c:1007: error: `env' undeclared (first use in this > function) > synce_plugin.c:1007: error: syntax error before ')' token > synce_plugin.c: In function `finalize': > synce_plugin.c:1032: error: `env' undeclared (first use in this > function) > synce_plugin.c:1032: error: syntax error before ')' token > synce_plugin.c: In function `get_info': > synce_plugin.c:1051: error: syntax error before '<<' token > synce_plugin.c:1054: error: syntax error before '==' token > synce_plugin.c:1057: error: syntax error before '>>' token > synce_plugin.c:1082: error: syntax error before '<<' token > synce_plugin.c:1086: error: syntax error before '==' token > synce_plugin.c:1089: error: syntax error before '==' token > synce_plugin.c:1092: error: syntax error before '>>' token > make[2]: *** [synce_plugin.lo] Fehler 1 > make[2]: Leaving directory > `/usr/src/opensync-plugin-synce/synce/src' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory > `/usr/src/opensync-plugin-synce/synce' > make: *** [all] Fehler 2 > > The sources are the most recent from the repository. > > I guess, that the problems are caused by some SVN tags, but I am not > sure, if the compiler (gcc 3.3.6) should ignore these tags. E.g. my > synce_plugin.h looks like this (clipping): > > [...] > char *config_file; > <<<<<<< .mine > char *partnership_id_file; > } synce_plugin_environment; > ======= > } SyncePluginPtr; > >>>>>>> .r694 > [...] > > Is this correct? No this means a conflict of the source code. maybe you edited the source before. if you dont want to keep your own changes, do svn revert on the file mentioned above and it will use the newest file from subversion. > > Thanks for your help!!! > > Regards, > Stefan |