From dev-python at smartology.nl Fri Feb 27 15:53:28 2004 From: dev-python at smartology.nl (Remy C. Cool) Date: Fri, 27 Feb 2004 15:53:28 +0100 Subject: [pyOpenSSL] Build on Windows with Python 2.3.3 Message-ID: <200402271553.28046.dev-python@smartology.nl> Having read all info on compiling Openssl-0.9.7c and pyOpenSSL-0.5.1 with Ming32 under Windows, I started the (never ending?) journey. Compiling OpenSSL went flawlessly (ms/mingw32.bat) and all test's ran without problems. Compiling pyOpenSSL got stuck on not finding the library libeay32. Then I remembered that mingw appends lib to the library names automatically, so after removing lib from libeay32 and changing ssleay32 into ssl32 in setup.py, it got back on track. "----------- SETUP.PY BUILD_EXT -----------" running build_ext building 'OpenSSL.crypto' extension creating build\temp.win32-2.3 creating build\temp.win32-2.3\Release creating build\temp.win32-2.3\Release\src creating build\temp.win32-2.3\Release\src\crypto ... src/crypto/crypto.c:20: warning: `CVSid' defined but not used .... (same type of message) .... src/crypto/x509name.c:15: warning: `CVSid' defined but not used ... src/rand/rand.c:19:1: warning: "WIN32" redefined src/rand/rand.c:1:1: warning: this is the location of the previous definition src/ssl/context.c: In function `ssl_Context_set_info_callback': src/ssl/context.c:734: warning: assignment from incompatible pointer type src/ssl/context.c:15: warning: `CVSid' defined but not used ... C:\PYTHON23\lib\distutils\dist.py:213: UserWarning: 'licence' distribution option is deprecated; use 'license' ... src/ssl/connection.c: In function `ssl_Connection_renegotiate_pending': src/ssl/connection.c:465: warning: unused variable `ret' "----------- SETUP.PY BUILD -----------" running build running build_py copying .\__init__.py -> build\lib.win32-2.3\OpenSSL copying .\tsafe.py -> build\lib.win32-2.3\OpenSSL running build_ext C:\PYTHON23\lib\distutils\dist.py:213: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) "----------- SETUP.PY INSTALL -----------" running install running install_lib copying build\lib.win32-2.3\OpenSSL\crypto.pyd -> C: \PYTHON23\Lib\site-packages\OpenSSL copying build\lib.win32-2.3\OpenSSL\rand.pyd -> C: \PYTHON23\Lib\site-packages\OpenSSL copying build\lib.win32-2.3\OpenSSL\SSL.pyd -> C: \PYTHON23\Lib\site-packages\OpenSSL C:\PYTHON23\lib\distutils\dist.py:213: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) As you can see, no (real) problems, but importing OpenSSL in python fails. Rand imports OK, but crypto and SSL give the error that the DLL can not be found on the system. I first had problems with rand too, but a recompile solved that problem. Now the other 2. Anyone with a clue, pointers or perhaps a working module for python 2.3 ? Remy Cool From itamar at itamarst.org Fri Feb 27 16:57:00 2004 From: itamar at itamarst.org (Itamar Shtull-Trauring) Date: Fri, 27 Feb 2004 10:57:00 -0500 Subject: [pyOpenSSL] Build on Windows with Python 2.3.3 In-Reply-To: <200402271553.28046.dev-python@smartology.nl> References: <200402271553.28046.dev-python@smartology.nl> Message-ID: <1077896491.5800.7.camel@sheriffpony> We added a download of pyOpenSSL for windows on the twisted site recently: http://twistedmatrix.com/products/download#TwistedDeps The 2.2 one may not be built with a recent version of OpenSSL, but the 2.3 one probably is. -- Itamar Shtull-Trauring http://itamarst.org Looking for a job: http://itamarst.org/resume.html