manuelluis / clearsilver

Automatically exported from code.google.com/p/clearsilver
Other
0 stars 0 forks source link

problem importing neo_cgi : missing crc32 #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

$ 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 brianh...@gmail.com on 16 Aug 2012 at 8:47

GoogleCodeExporter commented 9 years ago
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 brianh...@gmail.com on 16 Aug 2012 at 9:06

GoogleCodeExporter commented 9 years ago
also, just a note that my system is 64bit...

Original comment by brianh...@gmail.com on 17 Aug 2012 at 2:02

GoogleCodeExporter commented 9 years ago
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 Alexande...@googlemail.com on 20 Dec 2013 at 4:24