! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
libexo 0.3.1.6beta1 does not compile with Sun Studio Pro
Status:
RESOLVED: FIXED
Priority:
Very High
Severity:
blocker

Comments

Description Leo Zhadanovsky 2006-05-25 19:11:57 CEST
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...
Comment 1 Benedikt Meurer editbugs 2006-06-06 12:10:38 CEST
I'm going to ignore the warnings for now. It's because I add ';' after G_BEGIN_DECLS/G_END_DECLS.
Comment 2 Benedikt Meurer editbugs 2006-06-06 12:14:54 CEST
Hm, it seems to be a problem with xfce-generics.h in libxfce4util.
Comment 3 Benedikt Meurer editbugs 2006-06-06 12:15:48 CEST
Created attachment 597 
Patch for libxfce4util

Can you try with this patch?
Comment 4 Benedikt Meurer editbugs 2006-08-12 16:04:51 CEST
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.

Comment 5 Benedikt Meurer editbugs 2006-08-28 19:19:59 CEST
*** Bug 2232 has been marked as a duplicate of this bug. ***
Comment 6 Leo Zhadanovsky 2006-08-28 20:19:01 CEST
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
Comment 7 Benedikt Meurer editbugs 2006-08-28 20:46:52 CEST
Created attachment 753 
Patch for xfce_stack_new

Try this patch in addition to the other patch. It should fix the problem.
Comment 8 Leo Zhadanovsky 2006-08-28 21:26:52 CEST
(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
Comment 9 Benedikt Meurer editbugs 2006-08-29 16:39:42 CEST
Created attachment 758 
Next try

Ups, typo. This one should work (hopefully :-).
Comment 10 Leo Zhadanovsky 2006-08-29 21:56:48 CEST
(In reply to comment #9)
> Created an attachment (id=758) [edit]
> Next try
> 
> Ups, typo. This one should work (hopefully :-).
> 

That worked, thanks!
Comment 11 Benedikt Meurer editbugs 2006-08-30 10:20:57 CEST
Committed with revision 22947.

2006-08-30	Benedikt Meurer <benny@xfce.org>

	* libxfce4util/xfce-generics.h: Enable compilation with Sun Studio
	  Pro. Bug #1851.

Bug #1851

Reported by:
Leo Zhadanovsky
Reported on: 2006-05-25
Last modified on: 2009-10-09
Duplicates (1):
  • 2232 libexo does not compile with Sun Studio 11

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
0.3.1.1svn

Attachments

Patch for libxfce4util (703 bytes, patch)
2006-06-06 12:15 CEST , Benedikt Meurer
no flags
Patch for xfce_stack_new (1.14 KB, patch)
2006-08-28 20:46 CEST , Benedikt Meurer
no flags
Next try (1.19 KB, patch)
2006-08-29 16:39 CEST , Benedikt Meurer
no flags

Additional information