GNOME Bugzilla – Bug 342455
gfig plug-in has multiply-defined symbols
Last modified: 2006-06-27 08:07:24 UTC
Please describe the problem: When building with -fno-common, the linker chokes on the following multiply-defined symbols in plug-ins/gfig/: multiple definition of `dobj_class' multiple definition of `gfig_context' multiple definition of `gfig_drawable' multiple definition of `gfig_list' multiple definition of `org_scale_x_factor' multiple definition of `org_scale_y_factor' multiple definition of `top_level_dlg' multiple definition of `undo_level' multiple definition of `undo_table' These symbols are erroneously declared as non-static and non-extern in gfig-dialog.h, gfig-dobject.h and gfig.h. Steps to reproduce: Build GIMP with -fno-common. Actual results: Expected results: Does this happen every time? Other information:
Really a minor issue, but we should fix this for 2.4.
Created attachment 67959 [details] [review] Patch to put extern variables where they belong Sigh... am I the only one building with -fno-common? Five-minute job here, please tweak formatting as appropriate, etc.
Daniel, you are probably the only one who is fiddling with compiler options at all. For everyone else the defaults are just fine.
2006-06-27 Sven Neumann <sven@gimp.org> * plug-ins/gfig/gfig-dialog.[ch] * plug-ins/gfig/gfig-dobject.h * plug-ins/gfig/gfig.[ch]: put extern variables where they belong. Patch from Daniel Richard G. (bug #342455).