Compilation failure on Mac OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Poppler Python Bindings |
Fix Committed
|
High
|
Gian Mario Tagliaretti |
Bug Description
I had big problems trying to compile poppler-python on Mac OS X Snow Leopard (10.6), using Python 2.6.4, PyGTK 2.16.0 and PyGobject 2.18.0 from DarwinPorts..
At link time, ld failed when creating poppler.so with the following message:
"ld: duplicate symbol: _PyGObject_API"
I tried adding "#define NO_IMPORT_
"ld: duplicate symbol: _PyGtk_API"
In the end I just added "#define NO_IMPORT" in popplermodule.c, just before pygobject.h and pygtk.h are included, and it worked fine.
This #define should be added in popplermodule.c, for example in a "#if defined(__APPLE__) && defined(__MACH__)" block if it is not needed for other platforms.
Thanks Thomas, should be fixed now