[pywin32-bugs] [ pywin32-Patches-1404103 ] patch to setup.py for adsi build
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-01-12 23:05:49
|
Patches item #1404103, was opened at 2006-01-12 18:29 Message generated for change (Settings changed) made by tmick You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=1404103&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Trent Mick (tmick) Assigned to: Mark Hammond (mhammond) Summary: patch to setup.py for adsi build Initial Comment: Mark, I've found that the pywin32 build always fails while building the 'adsi' extension with the following error unless I add user32.lib and advapi32.lib to the setup of libraries for it (patch attached). ----------------------------------------------------- Creating library build\temp.win32-2.4\Release\com/win32comext/adsi/src\adsi.l ib and object build\temp.win32-2.4\Release\com/win32comext/adsi/src\adsi.exp PyADSIUtil.obj : error LNK2019: unresolved external symbol __imp__wsprintfA refe renced in function "struct _object * __cdecl PyADSIObject_FromADSVALUE(struct _a dsvalue &)" (?PyADSIObject_FromADSVALUE@@YAPAU_object@@AAU_adsvalue@@@Z) PyADSIUtil.obj : error LNK2019: unresolved external symbol __imp__GetSecurityDes criptorLength@4 referenced in function "struct _object * __cdecl PyADSIObject_Fr omADSVALUE(struct _adsvalue &)" (?PyADSIObject_FromADSVALUE@@YAPAU_object@@AAU_a dsvalue@@@Z) build\lib.win32-2.4\win32comext/adsi\adsi.pyd : fatal error LNK1120: 2 unresolve d externals error: command '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link .exe"' failed with exit status 1120 ----------------------------------------------------- My build is on Win2k with the "Windows Server 2003 SP1 SDK" (the latest according to http://www.microsoft.com/msdownload/platformsdk/sdkupdate/). I presume you (and Roger and others) don't have the same local patch in your setup.py so I'm not sure what the difference is that you can build and I cannot. Thoughts on add this patch? ---------------------------------------------------------------------- >Comment By: Trent Mick (tmick) Date: 2006-01-12 23:05 Message: Logged In: YES user_id=34892 Patch applied. /cvsroot/pywin32/pywin32/setup.py,v <-- setup.py new revision: 1.33; previous revision: 1.32 ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2006-01-12 23:04 Message: Logged In: YES user_id=771074 It appears I also had to add these to my setup.py to get it to build, although I can't tell exactly when I did so. Roger ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=1404103&group_id=78018 |