This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: The _ssl build process for 2.3.5 is broken
Type: Stage:
Components: Windows Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: loewis, robertcheung
Priority: normal Keywords:

Created on 2005-09-16 07:27 by robertcheung, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg26293 - (view) Author: Robert Cheung (robertcheung) Date: 2005-09-16 07:27
I have attempted to build the _ssl library for 2.3.5
and it is broken (see attached output 1).  Basically it
is complaining that the _ssl.pyd file could not be
build because several symbols
(GetUserObjectInformation, etc) could not be linked. 
Those symbols are suppose to be located in
User32.[lib|dll].  Appending User32.lib to line 15 of
_ssl.mak fixed this problem (see attachment 2).

Hopefully this will be helpful for other people that
also had build problems with the ssl library.

Regards
Robert Cheung

-------- Attached output 1--------------
C:\downloads\python\Python-2.3.5\PCbuild>python
build_ssl.py
Found a working perl at 'C:\Perl\bin\perl.exe'
Found an SSL directory at
'C:\downloads\python\openssl-0.9.8'
Executing nmake over the ssl makefiles...
Building OpenSSL
        copy nul+ .\crypto\buildinf.h tmp32\buildinf.h
nul
.\crypto\buildinf.h
        1 file(s) copied.
        cl /nologo ../Modules/_ssl.c
C:\downloads\python\openssl-0.9.8/out32/libeay32.lib
C:\downloads\python\openssl-0.9.8/out32/ssleay32.lib
/Ox /MD /LD /Fox86-temp-release/_ssl\_ssl.obj -I
../Include -I ../PC -I
C:\downloads\python\openssl-0.9.8/inc32 /link
/out:_ssl.pyd gdi32.lib wsock32.lib /libpath:C:\downloads\p
ython\openssl-0.9.8/out32 libeay32.lib ssleay32.lib _ssl.c
   Creating library _ssl.lib and object _ssl.exp
libeay32.lib(cryptlib.obj) : error LNK2019: unresolved
external symbol __imp__GetUserObjectInformationW@20
referenced in function _OPENSSL_isservice
libeay32.lib(cryptlib.obj) : error LNK2019: unresolved
external symbol __imp__GetProcessWindowStation@0
referenced in function _OPENSSL_isservice
libeay32.lib(cryptlib.obj) : error LNK2019: unresolved
external symbol __imp__GetDesktopWindow@0 referenced in
function _OPENSSL_isservice
libeay32.lib(cryptlib.obj) : error LNK2019: unresolved
external symbol __imp__MessageBoxIndirectA@4 referenced
in function _OPENSSL_showfatal
_ssl.pyd : fatal error LNK1120: 4 unresolved externals
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

------------ Attachment 2 -----------------
_ssl.mak line 15 -
LIBS=gdi32.lib wsock32.lib /libpath:$(SSL_LIB_DIR)
libeay32.lib ssleay32.lib User32.lib
msg26294 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-09-25 04:38
Logged In: YES 
user_id=21627

You are using an unsupported version of OpenSSL. Please try
the version mentioned in PCbuild/readme.txt.
msg26295 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-10-08 10:07
Logged In: YES 
user_id=21627

Closing as invalid.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42375
2005-09-16 07:27:47robertcheungcreate