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

problem importing neo_cgi : missing crc32 #8

Open
GoogleCodeExporter opened this issue Nov 15, 2015 · 3 comments
Open

problem importing neo_cgi : missing crc32 #8

GoogleCodeExporter opened this issue Nov 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link



$ cd /usr/local/lib/python2.4/site-packages/site-packages$ python -c "import 
neo_cgi"
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: ./neo_cgi.so: undefined symbol: crc32

I am sure you assumed it would come from zlib.h ... not on my system!

I imagine this has to do with Config.CompressionEnabled.

Linux 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 
x86_64 x86_64 GNU/Linux

Original issue reported on code.google.com by [email protected] on 16 Aug 2012 at 8:47

@GoogleCodeExporter
Copy link
Author

just to get it to import I commented this out:

clearsilver-0.10.5$ diff cs/csparse_before.c cs/csparse.c 
4148c4148
<       { "string.crc", 1, _builtin_str_crc},
---
>      // { "string.crc", 1, _builtin_str_crc},

not a fix, but perhaps a work around.

Original comment by [email protected] on 16 Aug 2012 at 9:06

@GoogleCodeExporter
Copy link
Author

also, just a note that my system is 64bit...

Original comment by [email protected] on 17 Aug 2012 at 2:02

@GoogleCodeExporter
Copy link
Author

I found this patch fixing the import error (seems to be a quite old problem: 
https://bugzilla.altlinux.org/show_bug.cgi?id=11798#c2 )

--- clearsilver-0.10.5/python/setup.py  2007-07-12 04:43:33.000000000 +0200
+++ b/python/setup.py   2013-12-20 17:15:10.148975435 +0100
@@ -56,7 +56,7 @@ for line in string.split(rules, "\n"):
       if lib not in LIBRARIES:
        inserted.append(lib)
    sys.stderr.write("adding lib %s\n" % lib)
-    LIBRARIES = inserted + LIBRARIES
+    LIBRARIES = LIBRARIES + inserted
   elif var == "LDFLAGS":
     matches = re.findall("-L(\S+)", val)
     inserted = []

Original comment by [email protected] on 20 Dec 2013 at 4:24

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

No branches or pull requests

1 participant