GNOME Bugzilla – Bug 240461
redeclaration error in /evolution/mail/subscribe-dialog.c
Last modified: 2003-03-28 16:41:16 UTC
When we build evolution using Forte on S9, we met this error: /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -I../widgets -I../widgets/e-text -I../widgets/misc -I../camel -I.. -I../composer -I../composer -I../shell -I../shell -I../shell/importer -I../shell/importer -I../addressbook/backend -I../addressbook/backend -DORBIT2=1 -D_REENTRANT -I/opt/evolution/include/libxml2 -I/opt/evolution/include/gal-2.0 -I/opt/evolution/include/libgnomeprint-2.2 -I/opt/evolution/include/soup-2.0 -I/opt/evolution/include/libgnomeprintui-2.2 -I/opt/evolution/include/libgtkhtml-3.0 -I/usr/include/libgnome-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/linc-1.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/pango-1.0 -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/openwin/include -I/usr/include/libglade-2.0 -I/usr/include/gnome-vfs-module-2.0 -DEVOLUTION_DATADIR=\"/opt/evolution/share\" -DEVOLUTION_PRIVDATADIR=\"/opt/evolution/share/evolution/1.3\" -DEVOLUTION_GLADEDIR=\"/opt/evolution/share/evolution/1.3/glade\" -DEVOLUTION_ETSPECDIR=\"/opt/evolution/share/evolution/1.3/etspec\" -DEVOLUTION_ICONSDIR=\"/opt/evolution/share/evolution/1.3/images\" -DEVOLUTION_IMAGES=\"/opt/evolution/share/evolution/1.3/images\" -DEVOLUTION_GALVIEWSDIR=\"/opt/evolution/share/evolution/1.3/views\" -DEVOLUTION_BUTTONSDIR=\"/opt/evolution/share/evolution/1.3/images/buttons\" -DEVOLUTION_LOCALEDIR=\"/opt/evolution/share/locale\" -DEVOLUTION_UIDIR=\"/opt/evolution/share/evolution/1.3/ui\" -DCAMEL_PROVIDERDIR=\"/opt/evolution/lib/evolution/1.3/camel-providers\" -DMAIL_IMPORTERSDIR=\"/opt/evolution/lib/evolution/1.3/evolution-mail-importers\" -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_LOG_DOMAIN=\"evolution-mail\" -I/usr/local/include/ -I/opt/evolution/include -I/usr/local/nspr-4.2.2 -I/usr/local/nss-3.7.1 -I/usr/include -g -D_REENTRANT -mt -I/usr/local/include/ -I/opt/evolution/include -I/opt/evolution/nspr-4.2.2 -I/opt/evolution/nss-3.7.1 -I/usr/include -g -D_REENTRANT -mt -Wp,-MD,.deps/subscribe-dialog.pp -c subscribe-dialog.c -KPIC -DPIC -o subscribe-dialog.o "../camel/camel-folder-summary.h", line 71: warning: integer overflow detected: op "<<" "../addressbook/backend/ebook/e-destination.h", line 99: warning: syntax error: empty declaration "subscribe-dialog.c", line 456: warning: syntax error: empty declaration "subscribe-dialog.c", line 733: identifier redeclared: fe_check_for_children current : static function(pointer to struct _FolderETree {struct ETreeMemory {..} parent, pointer to void root, pointer to struct _GHashTable {..} scan_ops, pointer to struct _GHashTable {..} subscribe_ops, pointer to struct _GHashTable {..} node_full_name, pointer to struct _CamelStore {..} store, pointer to struct _EvolutionStorage {..} e_storage, pointer to char service_name, pointer to function(int, pointer to void) returning void activity_cb, pointer to void activity_data, int activity_level}, pointer to void) returning void previous: function() returning int : "subscribe-dialog.c", line 714 "subscribe-dialog.c", line 931: warning: syntax error: empty declaration "subscribe-dialog.c", line 1607: warning: syntax error: empty declaration cc: acomp failed for subscribe-dialog.c make[3]: *** [subscribe-dialog.lo] Error 1 make[3]: Leaving directory `/export/home/work/pkg_for_evo/evolution/mail' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/home/work/pkg_for_evo/evolution/mail' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/work/pkg_for_evo/evolution' make: *** [all-recursive-am] Error 2 Please see it.
Created attachment 42180 [details] [review] We use this patch to work around.
fixed in CVS. you needed to declare a prototype for fe_get_children() changing the return type to int is wrong.