Summary: | dev-python/pythonmagick-0.7 fails to work with --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | René 'Necoro' Neumann <gentoo> |
Component: | New packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
pythonmagick's config.log
build and config log |
Description
René 'Necoro' Neumann
2008-12-20 23:02:21 UTC
Created attachment 176001 [details]
pythonmagick's config.log
Well ... compiling boost with LDFLAGS="-Wl,--no-undefined" makes it abort in boost_python... So - I guess boost needs a fix so that pythonmagick can work. The problem here is that the missing symbols here come from /usr/lib/libpython${PV}.so, so the most sane solution in most of the cases will not be correct here. Probably best move here would be to change the check they are using with one that doesn't fail for a python module (as I suspect this could be reproduced for any python module). I do not understand. The problem is, that boost_python uses python-calls, but does not link against libpython. So I think, this could be solved by correctly linking boost_python :) Changing the check in pythonmagick ... well is not possible (because it will _always_ fail with --as-needed). And even if it would: This would just be a workaround and not a fix (i.e. fix the symptom but not the problem). It doesn't link to python, but it still works: didn't you wonder why ? It's a python module - when it's used, it's loaded by python, so it already has all of those symbols in memory. But the python lib has ${PV} part for good reason - that why linking this with libpython may not be a good idea. Then again, I may be wrong. fixed in the just committed 0.8. Created attachment 194065 [details] build and config log I have build pythonmagic-0.8,but it have a run error,as fellow: >>> import PythonMagick Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/PythonMagick/__init__.py", line 1, in <module> import _PythonMagick ImportError: /usr/lib/python2.5/site-packages/PythonMagick/_PythonMagick.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv I see you say this bug had fix in pythonmagic-0.8 in "http://bugs.gentoo.org/show_bug.cgi?id=251809",but it came again. please help me ,thank you very much . |