GNOME Bugzilla – Bug 610657
[patch] Linking fails due to multiple definition of _PyGObject_API, etc.
Last modified: 2010-02-22 11:22:30 UTC
Created attachment 154364 [details] [review] patch On platforms with picky linkers (e.g. MacOS X/Darwin), rhythmbox will not link with python support enabled because symbols like _PyGObject_API (from PyGtk-related headers) are multiply defined. The attached patch #define's NO_IMPORT_PYGOBJECT and NO_IMPORT_PYGTK everywhere where pygobject.h and pygtk.h are used except for shell/rb-python-module.c (where the PyGtk init functions are called) to avoid this.
pushed as commit ab102ef, thanks.