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 626996 - duplicate symbol _PyGObject_API in gi object files
duplicate symbol _PyGObject_API in gi object files
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-15 22:04 UTC by John Ralls
Modified: 2010-08-16 07:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John Ralls 2010-08-15 22:04:29 UTC
When building for OSX, pygobject compilation fails with an error "duplicate symbol _PyGObject_API in _gi_la_pygi-info.o and _gi_la_pygi-repository.o"

This is corrected by the following patch:
diff --git a/gi/pygi.h b/gi/pygi.h
index 96a0dde..93b5322 100644
--- a/gi/pygi.h
+++ b/gi/pygi.h
@@ -22,6 +22,7 @@
 #ifndef __PYGI_H__
 #define __PYGI_H__
 
+#define NO_IMPORT_PYGOBJECT
 #include <config.h>
 #include <pygobject.h>
Comment 1 Tomeu Vizoso 2010-08-16 07:58:34 UTC
Pushed, thanks!