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 352268 - Location of G_GNUC_INTERNAL breaks Solaris build
Location of G_GNUC_INTERNAL breaks Solaris build
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: libgimp
2.3.x
Other Solaris
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-08-21 16:55 UTC by Damien Carbery
Modified: 2008-01-15 14:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Move G_GNUC_INTERNAL to the start of the line (31.08 KB, patch)
2006-08-21 16:57 UTC, Damien Carbery
none Details | Review

Description Damien Carbery 2006-08-21 16:55:52 UTC
gimp makes extensive use of the G_GNUC_INTERNAL macro.
For the Solaris forte compiler this must be placed at the start of the line.

Can you please apply the attached patch - it moves the macro 73 times.
This will not affect gcc - it does not care where the macro is placed.
Comment 1 Damien Carbery 2006-08-21 16:57:03 UTC
Created attachment 71318 [details] [review]
Move G_GNUC_INTERNAL to the start of the line
Comment 2 Damien Carbery 2006-08-21 16:59:20 UTC
See also 350606 (gtk-engines) and 352981 (glib).
350606 has a link to a cairo change where they resolved this issue with a private macro.
Comment 3 Sven Neumann 2006-08-21 17:59:01 UTC
I would apply the patch but it needs some more work before it can be applied. As it stands, it completely breaks the horizontal alignment in the header files.
Comment 4 Sven Neumann 2006-08-22 07:34:12 UTC
Bug #352981 (glib) does not exist. Damien, if you refer to other bugs in Bugzilla, please prepend "bug " to the bug number so that Bugzilla creates a link.
Comment 5 Damien Carbery 2006-08-22 09:40:32 UTC
Darn, one digit wrong. bug 342981 is the glib bug about this issue.
Comment 6 Sven Neumann 2006-08-22 12:23:43 UTC
Just realized that large parts of the patch affect autogenerated code. I will have a look at changing the code generator. That will probably catch most places where G_GNUC_INTERNAL is being used.
Comment 7 Sven Neumann 2006-08-22 13:19:04 UTC
Should be FIXED now. Please reopen if there are still problems.

2006-08-22  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpwire.h
	* libgimpbase/gimpreloc.h
	* libgimp/gimpdrawablepreview.h
	* libgimp/gimptile.h
	* libgimp/gimpunitcache.h
	* libgimpthumb/gimpthumb-utils.h
	* libgimpwidgets/gimpcolorarea.h
	* libgimpwidgets/gimphelpui.h: moved G_GNUC_INTERNAL before the
	return value (bug #352268).

	* tools/pdbgen/lib.pl : changed code generation rules to place
	G_GNUC_INTERNAL before the return value.

	* libgimp/*_pdb.h: regenerated.