Compilation failure on Mac OS X

Bug #474138 reported by Thomas Jost
8
This bug affects 1 person
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_PYGOBJECT" in popplermodule.c. ld still failed, but with another message:
"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.

Revision history for this message
Gian Mario Tagliaretti (gianmt) wrote :

Thanks Thomas, should be fixed now

Changed in poppler-python:
assignee: nobody → Gian Mario Tagliaretti (gianmt)
importance: Undecided → High
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.