[pyOpenSSL] DLL load failed.

Jean-Paul Calderone exarkun at divmod.com
Thu Apr 30 20:42:43 CEST 2009


On Thu, 30 Apr 2009 11:37:55 -0700, patrick flaherty <patf at well.com> wrote:
>
>Hello Jean-Paul,
>
>As you can see below I copied ssleay32.a to c:\python25\Lib, however the 
>build (link/ld) fails.
>>
>>L:\pf\Python\pyOpenSSL>dir c:\python25\lib\ss*.a
>>  Volume in drive C has no label.
>>  Volume Serial Number is F818-DFCA
>>
>>  Directory of c:\python25\lib
>>
>>03/27/2009  06:32 AM           171,812 ssleay32.a
>>                1 File(s)        171,812 bytes
>>                0 Dir(s)  103,286,464,512 bytes free
>>
>>L:\pf\Python\pyOpenSSL>
>>
>>
>>L:\pf\Python\pyOpenSSL>setup.py build_ext -Ic:/openssl32/include -c mingw32
>>running build_ext
>>building 'OpenSSL.crypto' extension
>>writing build\temp.win32-2.5\Release\src\crypto\crypto.def
>>x:\pf\cygwin\bin\gcc.exe -mno-cygwin -shared -s 
>>build\temp.win32-2.5\Release\src
>>\crypto\crypto.o build\temp.win32-2.5\Release\src\crypto\x509.o 
>>build\temp.win32
>>-2.5\Release\src\crypto\x509name.o 
>>build\temp.win32-2.5\Release\src\crypto\pkey.
>>o build\temp.win32-2.5\Release\src\crypto\x509store.o 
>>build\temp.win32-2.5\Relea
>>se\src\crypto\x509req.o build\temp.win32-2.5\Release\src\crypto\x509ext.o 
>>build\
>>temp.win32-2.5\Release\src\crypto\pkcs7.o 
>>build\temp.win32-2.5\Release\src\crypt
>>o\pkcs12.o build\temp.win32-2.5\Release\src\crypto\netscape_spki.o 
>>build\temp.wi
>>n32-2.5\Release\src\util.o c:\Python25\lib\ssleay32.a 
>>build\temp.win32-2.5\Relea
>>se\src\crypto\crypto.def -LC:\Python25\libs -LC:\Python25\PCBuild -leay32 
>>-lWs2_
>>32 -lpython25 -lmsvcr71 -o build\lib.win32-2.5\OpenSSL\crypto.pyd
>>/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld: 
>>cannot fi
>>nd -leay32
>>collect2: ld returned 1 exit status
>>error: command 'gcc' failed with exit status 1
>I think the key part might
>
>-leay32
>
>I don't know gcc in detail but my guess is that this statement makes the gcc 
>link/ld look for libeay32.dll - not ssleay32.a
>

It looks like gcc is being told to look in C:\Python25\libs - not C:\Python25\lib.  Perhaps that is causing the trouble?

By the way, with the release of pyOpenSSL 0.9, Windows binary eggs are
available for Python 2.3 and Python 2.5 (Python 2.4 and Python 2.6 are
giving me some problems).  You might want to check out
http://pypi.python.org/pypi/pyOpenSSL/0.9 and see if the pre-built version
works for you.

Jean-Paul




More information about the pyopenssl-users mailing list