Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbol causes sasl.saslwrapper module to fail to load #6

Open
andrewbenton opened this issue Oct 13, 2016 · 3 comments
Open

Comments

@andrewbenton
Copy link

On Fedora23 using Anaconda 2/3 I'm getting an import error on sasl.saslwrapper with an undefined symbol _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE. This prevents other libraries like pyhive from being used

@wesm
Copy link
Contributor

wesm commented Oct 16, 2016

@andrewbenton Fedora 23 ships with GCC 5.x, which has a new std::string ABI -- did you build this library from source? We may need to add -D_GLIBCXX_USE_CXX11_ABI=0 to this package build. Any other info about your environment I can try to advise on how to fix

@andrewbenton
Copy link
Author

I built it from source since it wasn't packaged with anaconda. I found later that when I run the built version with the system version of python, it works. What other information would you find useful?

@wesm
Copy link
Contributor

wesm commented Oct 17, 2016

Got it. Yes, this means you need to build any C++ code with the flag "-D_GLIBCXX_USE_CXX11_ABI=0" if you're using it with Anaconda — you can use the approach from here

https://github.com/apache/kudu/blob/1c668742679bb00b5c851c80071c3232aa68441a/python/setup.py#L119

There may be a way to do this with an environment variable that doesn't require modifying setup.py. Can you see if that works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants