Missing -lpython2.7 when linking ceph-dencoder
Hi Kefu,
This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking boost_python.
Now I remember we had this problem when we reworked the find_package(python) stuff.
Any suggestions other than starting to bisect this?
--WjW
Quoted 10 lines · Willem Jan Withagen
Hi Kefu,
This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking
boost_python.Now I remember we had this problem when we reworked the
find_package(python)stuff.
Any suggestions other than starting to bisect this?
Right,
It is the other way around....
Boost linking just always includes boost_python which in turn misses -lpython to be successful.
So now the question is, why am I getting boost_python there?
--WjW
Quoted 12 lines · Willem Jan Withagen
Quoted 10 lines · Willem Jan Withagen
Hi Kefu,
This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking
boost_python.Now I remember we had this problem when we reworked the
find_package(python)stuff.
Any suggestions other than starting to bisect this?
Quoted 6 lines
Right,
It is the other way around....
Boost linking just always includesboost_pythonwhich in turn misses -lpython to be successful.
So now the question is, why am I gettingboost_pythonthere?
The standard include Boost code in Cmake returns all available libraries. So for now I'm manually removing
/usr/local/lib/libboost_python.so
from the Boost_LIBRARIES.
Now REMOVE_ITEM does not use regual expressions, so it is hardcoded. Which looks sort of clumsy.
I'll submit a PR for this.
--WjW
Quoted 8 lines · Willem Jan Withagen
Quoted 7 lines · Willem Jan Withagen
Quoted 6 lines · Willem Jan Withagen
Hi Kefu,
This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking
boost_python.
Willem, could you pastebin the error message somewhere, so i can take a look at it?
Quoted 29 lines
Quoted 11 lines
Quoted 4 lines
Now I remember we had this problem when we reworked the
find_package(python)stuff.
Any suggestions other than starting to bisect this?Right,
It is the other way around....
Boost linking just always includesboost_pythonwhich in turn misses -lpython to be successful.
So now the question is, why am I gettingboost_pythonthere?The standard include Boost code in Cmake returns all available libraries. So for now I'm manually removing
/usr/local/lib/libboost_python.so
from theBoost_LIBRARIES.Now
REMOVE_ITEMdoes not use regual expressions, so it is hardcoded. Which looks sort of clumsy.I'll submit a PR for this.
--WjW
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Regards Kefu Chai