Gentoo's Bugzilla –
Attachment 267769 Details for
Bug 361231app-office/dia-0.97.1 - ld: /usr/lib64/python2.7/config/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC