{"action":"created","issue":{"url":"https://api.github.com/repos/astra-toolbox/astra-toolbox/issues/44","repository_url":"https://api.github.com/repos/astra-toolbox/astra-toolbox","labels_url":"https://api.github.com/repos/astra-toolbox/astra-toolbox/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/astra-toolbox/astra-toolbox/issues/44/comments","events_url":"https://api.github.com/repos/astra-toolbox/astra-toolbox/issues/44/events","html_url":"https://github.com/astra-toolbox/astra-toolbox/issues/44","id":149375011,"number":44,"title":"Missing XMLNode addOption","user":{"login":"adler-j","id":2202312,"avatar_url":"https://avatars.githubusercontent.com/u/2202312?v=3","gravatar_id":"","url":"https://api.github.com/users/adler-j","html_url":"https://github.com/adler-j","followers_url":"https://api.github.com/users/adler-j/followers","following_url":"https://api.github.com/users/adler-j/following{/other_user}","gists_url":"https://api.github.com/users/adler-j/gists{/gist_id}","starred_url":"https://api.github.com/users/adler-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adler-j/subscriptions","organizations_url":"https://api.github.com/users/adler-j/orgs","repos_url":"https://api.github.com/users/adler-j/repos","events_url":"https://api.github.com/users/adler-j/events{/privacy}","received_events_url":"https://api.github.com/users/adler-j/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-19T07:38:26Z","updated_at":"2016-04-19T10:16:28Z","closed_at":null,"body":"When installing astra and having everything set up, I get the following error when running `import astra`\r\n\r\n```\r\nImportError: astra/utils.so: undefined symbol: _ZN5astra7XMLNode9addOptionENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_\r\n```\r\n\r\ndemangling this we get\r\n\r\n```\r\nastra::XMLNode::addOption(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)\r\n```\r\n\r\nor more simply\r\n\r\n```\r\nastra::XMLNode::addOption(std::string, std::string)\r\n```\r\n\r\nEDIT:\r\n\r\nchecking `utils.so` with nm we find:\r\n\r\n```\r\nU _ZN5astra7XMLNode9addOptionENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_\r\n```\r\n\r\nso it is not defined in that file, in `libastra.so` a similar function is defined\r\n\r\n```\r\nT _ZN5astra7XMLNode9addOptionESsSs\r\n```\r\n```\r\nastra::XMLNode::addOption(std::string, std::string)\r\n```\r\n\r\nbut this is not the same. It would seem that parts of the library is built with c++11 support, and some parts are not."},"comment":{"url":"https://api.github.com/repos/astra-toolbox/astra-toolbox/issues/comments/211844500","html_url":"https://github.com/astra-toolbox/astra-toolbox/issues/44#issuecomment-211844500","issue_url":"https://api.github.com/repos/astra-toolbox/astra-toolbox/issues/44","id":211844500,"user":{"login":"adler-j","id":2202312,"avatar_url":"https://avatars.githubusercontent.com/u/2202312?v=3","gravatar_id":"","url":"https://api.github.com/users/adler-j","html_url":"https://github.com/adler-j","followers_url":"https://api.github.com/users/adler-j/followers","following_url":"https://api.github.com/users/adler-j/following{/other_user}","gists_url":"https://api.github.com/users/adler-j/gists{/gist_id}","starred_url":"https://api.github.com/users/adler-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adler-j/subscriptions","organizations_url":"https://api.github.com/users/adler-j/orgs","repos_url":"https://api.github.com/users/adler-j/repos","events_url":"https://api.github.com/users/adler-j/events{/privacy}","received_events_url":"https://api.github.com/users/adler-j/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T10:16:27Z","updated_at":"2016-04-19T10:16:27Z","body":"Update: the above is indeed the issue, by setting\r\n\r\n```python\r\nos.environ['CC'] = 'gcc-4.8'\r\nos.environ['CXX'] = 'g++-4.8'\r\n```\r\n\r\nin `builder.py`, the issue is fixed. Perhaps you can make sure that `builder.py` is somehow correctly fed the correct flags as given by the user. That should fix this."}}