[ZODB-Dev] ZODB 3 crashes with MSVC 7.0 compiler

D. John Anderson john@AppMagic.com
Tue, 08 Oct 2002 18:24:19 -0700


I just built ZODB3 with the current shipping version of Microsoft's 
compiler (7.0) for Windows and noticed that while running the demo, 
Python 2.2.1 (also built with MSVC 7.0) dies because tp_init for the 
ExtensionClass module is pointing to a bad address. I've double checked 
that I'm using the right C runtime and the compiler options all look ok. 
Works fine under Linux. Anybody got any ideas?

Here's the output from my distutils build (I'm using a modified 
distutils, since shipping one doesn't support the 7.0 compiler either):

running build_ext
building 'ExtensionClass' extension
creating build\temp.win32-2.2
creating build\temp.win32-2.2\Debug
C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\cl.exe /c /nologo 
/Od /MDd /W3 /GX /Z7 /D_DEBUG -ID:\John\osaf\debug\bin\include 
-ID:\John\osaf\debug\bin\PC 
/TcD:\John\osaf\ZODB3\ExtensionClass\src\ExtensionClass.c 
/Fobuild\temp.win32-2.2\Debug\ExtensionClass.objExtensionClass.c
C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\link.exe /DLL 
/nologo /INCREMENTAL:no /pdb:None /DEBUG 
/LIBPATH:D:\John\osaf\debug\bin\libs 
/LIBPATH:D:\John\osaf\debug\bin\PCBuild /EXPORT:initExtensionClass 
build\temp.win32-2.2\Debug\ExtensionClass.obj 
/OUT:build\lib.win32-2.2\ExtensionClass_d.pyd 
/IMPLIB:build\temp.win32-2.2\Debug\ExtensionClass_d.lib

John Anderson