User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2) Gecko/20060417 Firefox/1.5.0.2 (Mac Community Build, ElFurbe) Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2) Gecko/20060417 Firefox/1.5.0.2 (Mac Community Build, ElFurbe) cc -xO4 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DEXO_API_SUBJECT_TO_CHANGE -DEXO_COMPILATION -DG_LOG_DOMAIN=\"exo\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBEXO_VERSION_API=\"0.3\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/xfce4 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -DG_DISABLE_CAST_CHECKS -c exo-toolbars-model.c -KPIC -DPIC -o .libs/libexo_0_3_la-exo-toolbars-model.o "/usr/local/include/xfce4/libxfce4util/libxfce4util-config.h", line 31: warning: syntax error: empty declaration "/usr/local/include/xfce4/libxfce4util/libxfce4util-config.h", line 45: warning: syntax error: empty declaration "/usr/local/include/xfce4/libxfce4util/xfce-generics.h", line 31: warning: syntax error: empty declaration "/usr/local/include/xfce4/libxfce4util/xfce-generics.h", line 96: warning: syntax error: empty declaration "/usr/local/include/xfce4/libxfce4util/xfce-kiosk.h", line 31: warning: syntax error: empty declaration "/usr/local/include/xfce4/libxfce4util/xfce-kiosk.h", line 43: warning: syntax error: empty declaration "../exo/exo-config.h", line 32: warning: syntax error: empty declaration "../exo/exo-config.h", line 76: warning: syntax error: empty declaration "../exo/exo-string.h", line 32: warning: syntax error: empty declaration "../exo/exo-string.h", line 55: warning: syntax error: empty declaration "../exo/exo-toolbars-model.h", line 33: warning: syntax error: empty declaration "../exo/exo-toolbars-model.h", line 183: warning: syntax error: empty declaration "../exo/exo-toolbars-private.h", line 33: warning: syntax error: empty declaration "../exo/exo-toolbars-private.h", line 44: warning: syntax error: empty declaration "exo-toolbars-model.c", line 530: syntax error before or at: { "exo-toolbars-model.c", line 530: cannot recover from previous errors cc: acomp failed for exo-toolbars-model.c make[3]: *** [libexo_0_3_la-exo-toolbars-model.lo] Error 1 Reproducible: Always Steps to Reproduce: Compile using Sun Studio Pro...
I'm going to ignore the warnings for now. It's because I add ';' after G_BEGIN_DECLS/G_END_DECLS.
Hm, it seems to be a problem with xfce-generics.h in libxfce4util.
Created attachment 597 Patch for libxfce4util Can you try with this patch?
Committed with revision 22724. 2006-08-12 Benedikt Meurer <benny@xfce.org> * libxfce4util/xfce-generics.h(xfce_stack_top): Enable compilation with compilers other than gcc. Bug #1851.
*** Bug 2232 has been marked as a duplicate of this bug. ***
I added the patch and now it doesn't compile at: "exo-toolbars-model.c", line 163: warning: argument #6 is incompatible with prototype: prototype: pointer to void : "../exo/exo-private.h", line 41 argument : pointer to function(pointer to struct _ExoToolbarsModel {struct _GObject {..} __parent__, pointer to struct _ExoToolbarsModelPrivate {..} priv}) returning void "exo-toolbars-model.c", line 778: syntax error before or at: { "exo-toolbars-model.c", line 778: undefined symbol: stack "exo-toolbars-model.c", line 778: warning: improper pointer/integer combination: op "=" "exo-toolbars-model.c", line 778: left operand of "->" must be pointer to struct/union "exo-toolbars-model.c", line 778: left operand of "->" must be pointer to struct/union "exo-toolbars-model.c", line 778: left operand of "->" must be pointer to struct/union "exo-toolbars-model.c", line 778: left operand of "->" must be pointer to struct/union "exo-toolbars-model.c", line 778: syntax error before or at: ) "exo-toolbars-model.c", line 778: warning: syntax error: empty declaration "exo-toolbars-model.c", line 779: cannot recover from previous errors cc: acomp failed for exo-toolbars-model.c make[3]: *** [libexo_0_3_la-exo-toolbars-model.lo] Error 1 make[3]: Leaving directory `/usr/local/src/rpm-packages/BUILD/exo-0.3.1.8beta2/exo' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/src/rpm-packages/BUILD/exo-0.3.1.8beta2/exo' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/rpm-packages/BUILD/exo-0.3.1.8beta2' make: *** [all] Error 2 I am now compiling with version 0.3.1.8-beta2
Created attachment 753 Patch for xfce_stack_new Try this patch in addition to the other patch. It should fix the problem.
(In reply to comment #7) > Created an attachment (id=753) [edit] > Patch for xfce_stack_new > > Try this patch in addition to the other patch. It should fix the problem. > I applied the patch and this is the new error: cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. "-DDEFAULT_XDG_CACHE_HOME=\"~/.cache\"" "-DDEFAULT_XDG_DATA_HOME=\"~/.local/share\"" "-DDEFAULT_XDG_CONFIG_HOME=\"~/.config\"" -DDEFAULT_XDG_DATA_DIRS=\"/usr/local/share:/usr/local/share:/usr/share\" -DDEFAULT_XDG_CONFIG_DIRS=\"/usr/local/etc/xdg:/usr/local/etc/xfce4:/etc/xdg\" -DDATADIR=\"/usr/local/share\" -DSYSCONFDIR=\"/usr/local/etc\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -DG_LOG_DOMAIN=\"libxfce4util\" -DKIOSKDIR=\"/usr/local/etc/xdg/xfce4/kiosk\" -DKIOSKDEF=\"ALL\" -DLIBXFCE4UTIL_COMPILATION -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -DG_DISABLE_CAST_CHECKS -c libxfce4util-enum-types.c -KPIC -DPIC -o .libs/libxfce4util_la-libxfce4util-enum-types.o "../libxfce4util/libxfce4util-config.h", line 31: warning: syntax error: empty declaration "../libxfce4util/libxfce4util-config.h", line 49: warning: syntax error: empty declaration "../libxfce4util/xfce-generics.h", line 31: warning: syntax error: empty declaration "../libxfce4util/xfce-generics.h", line 59: warning: argument mismatch "../libxfce4util/xfce-generics.h", line 59: syntax error before or at: ) "../libxfce4util/xfce-generics.h", line 64: cannot recover from previous errors cc: acomp failed for libxfce4util-enum-types.c make[3]: *** [libxfce4util_la-libxfce4util-enum-types.lo] Error 1 make[3]: Leaving directory `/usr/local/src/rpm-packages/BUILD/libxfce4util-4.3.90.2/libxfce4util' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/src/rpm-packages/BUILD/libxfce4util-4.3.90.2/libxfce4util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/rpm-packages/BUILD/libxfce4util-4.3.90.2' make: *** [all] Error 2
Created attachment 758 Next try Ups, typo. This one should work (hopefully :-).
(In reply to comment #9) > Created an attachment (id=758) [edit] > Next try > > Ups, typo. This one should work (hopefully :-). > That worked, thanks!
Committed with revision 22947. 2006-08-30 Benedikt Meurer <benny@xfce.org> * libxfce4util/xfce-generics.h: Enable compilation with Sun Studio Pro. Bug #1851.