After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 593608 - unnamed unions is not built-able with sun cc
unnamed unions is not built-able with sun cc
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: General
unspecified
Other opensolaris
: Normal major
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-08-31 05:26 UTC by Halton Huo
Modified: 2009-08-31 17:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.31 KB, patch)
2009-08-31 06:52 UTC, Jean Bréfort
none Details | Review
remove unamed union (791 bytes, patch)
2009-08-31 07:27 UTC, Halton Huo
none Details | Review

Description Halton Huo 2009-08-31 05:26:06 UTC
I'm building libgoffice git-master code with sun cc. But fails with following error:

        argument : pointer to const unsigned char
"go-style.c", line 1787: improper member use: outline
"go-style.c", line 1789: improper member use: line
"go-style.c", line 1870: improper member use: outline
"go-style.c", line 1870: improper member use: outline
"go-style.c", line 1871: improper member use: outline
"go-style.c", line 1871: improper member use: outline
"go-style.c", line 1872: improper member use: line
"go-style.c", line 1872: improper member use: line
"go-style.c", line 1894: improper member use: outline
"go-style.c", line 1895: improper member use: outline
"go-style.c", line 1904: improper member use: line
"go-style.c", line 1905: improper member use: line
"go-style.c", line 1927: improper member use: outline
"go-style.c", line 1928: improper member use: outline
"go-style.c", line 1929: improper member use: line
"go-style.c", line 1930: improper member use: line
cc: acomp failed for go-style.c
Comment 1 Jean Bréfort 2009-08-31 05:58:04 UTC
I thought that anonymous unions were standard. Seems I was wrong, sorry. Will fix as soon as possible.
Comment 2 Jean Bréfort 2009-08-31 06:52:58 UTC
Created attachment 142100 [details] [review]
proposed patch

Seems this does not break anything else.
Comment 3 Halton Huo 2009-08-31 06:59:54 UTC
Jean, your patch fixes just a piece. I'm still working on it. Will offer here later.

(In reply to comment #2)
> Created an attachment (id=142100) [details]
> proposed patch
> 
> Seems this does not break anything else.
Comment 4 Halton Huo 2009-08-31 07:27:40 UTC
Created attachment 142102 [details] [review]
remove unamed union

Sorry, Jean, your patch works fine on Solaris. I just rework this patch to remove the already committed part for go-styled-object.c.

The line "#define outline line" seems ugly. Need we convert usage ->outline to ->line?
Comment 5 Jean Bréfort 2009-08-31 08:01:58 UTC
Of course, it is just a quick fix. If it was easy to drop all the outline stuff, it would have been done since several years. We need to communicate that outline will be deprecated in future versions so that every project using GOStyle updates its code accordingly.
Comment 6 Halton Huo 2009-08-31 08:42:00 UTC
(In reply to comment #5)
> Of course, it is just a quick fix. If it was easy to drop all the outline
> stuff, it would have been done since several years. We need to communicate that
> outline will be deprecated in future versions so that every project using
> GOStyle updates its code accordingly.
So need I work out the patch?
Comment 7 Jean Bréfort 2009-08-31 10:14:18 UTC
I'll do when time permits.
Comment 8 Jean Bréfort 2009-08-31 17:32:50 UTC
Just deprectaed GOStyle::outline. Fixed.