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

Unresolved symbol with _tc.so linked against libtokyocabinet.a #11

Open
tedoc2000 opened this issue Jun 9, 2010 · 0 comments
Open

Unresolved symbol with _tc.so linked against libtokyocabinet.a #11

tedoc2000 opened this issue Jun 9, 2010 · 0 comments

Comments

@tedoc2000
Copy link

If you want to link in libtokyocabinet.a (Instead of .so) then importing _tc.so fails with:
ImportError: ./_tc.so: undefined symbol: inflateEnd

This is because the link command does not link against -lbz2 and -lz

changing "libraries" in setup.py to:
libraries = [ ['tokyocabinet', ['tchdb.h']], ['bz2', ['bzlib.h']], ['z', ['zlib.h']] ]

Fixed the problem for me.

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

1 participant