From: Remy C. C. <dev...@sm...> - 2004-02-27 14:56:05
|
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 |