From: <Rob...@cs...> - 2005-09-28 01:52:06
|
Hi, I have been trying to build - * pyOpenSSL (0.6) * WinXP * Visual C v7.0=20 * Python 2.3.5 * OpenSSL 0.9.8 and encountered the following error - --- C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\openssl-0.9.8\inc32 -IC:\repositories\python2.3.5\pybuild\Python-2.3.5\include -IC:\repositories\python2.3.5\pybuild\Python-2.3.5\PC/Tcsrc/ssl/context. c /Fobuild\temp.win32-2.3\Release\src/ssl/context.obj context.c c:\repositories\python2.3.5\pybuild\pyOpenSSL-0.6\src\crypto\x509name.h( 27) : er ror C2059: syntax error : '(' c:\repositories\python2.3.5\pybuild\pyOpenSSL-0.6\src\crypto\x509name.h( 30) : er ror C2059: syntax error : '}' ... ... --- Basically on line 27 of src\crypto\x509name.h, the typedef X509_NAME has been overridden by a #define in wincrypt.h. To Fix this problem we need to add the following lines to x509name.h (anywhere after the #include and before the crypto_X509NameObj structure) - --- #ifdef OPENSSL_SYS_WIN32 #undef X509_NAME /* Wincrypt.h overrides this */ #endif --- I hope this helps. Regards Robert Cheung |