[Zope-dev] Compiling of the DynPersist module (ZPatterns)
Morten W. Petersen
morten@esol.no
30 Oct 2000 16:44:10 +0100
After compiling the DynPerist module, I try to import it in the Python
interpreter:
"""
morten@slakka:/usr/local/Zope/lib/python/Products/ZPatterns > gcc -o DynPersist.so -c DynPersist.c -I../../ZODB -I../../../Components/ExtensionClass -I/usr/include/python1.5
morten@slakka:/usr/local/Zope/lib/python/Products/ZPatterns > python
Python 1.5.2 (#1, Mar 11 2000, 13:03:53) [GCC 2.95.2 19991024 (release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import DynPersist
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: ./DynPersist.so: ELF file's phentsize not the expected size
>>>
"""
Any ideas what I'm doing wrong (is it maybe the compiler)?
Thanks in advance.
-Morten