Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49251

Re: "unresolved externals" error message building pywin32 for pypy

Newsgroups comp.lang.python
Date 2013-06-26 04:54 -0700
References <fc3a91b4-ff27-4ff9-ab60-23e43f4a9474@googlegroups.com>
Message-ID <88f2a496-0416-4352-89b8-68126ba2b4be@googlegroups.com> (permalink)
Subject Re: "unresolved externals" error message building pywin32 for pypy
From joshanderson99@gmail.com

Show all headers | View raw


On Wednesday, 26 June 2013 12:57:32 UTC+10, jasonve...@gmail.com  wrote:
> Hi,
> 
> 
> 
> I get an "unresolved externals" error message when building pywin32 for pypy, as listed below.  Both are the latest versions, amauryfa-pywin32-pypy-2a1da51e8152 and pypy-2.0.2.  As per build requirements, VS2012 and Win 7 SDD are installed.
> 
> 
> 
> Not sure what the error msg indicates, but maybe the python lib in linking is missing some required functions.
> 
> 
> 
> Possible cause of error may be a python installation on the same system (build could be using python lib instead of pypy lib), but python has been removed from path, and its folder name has also been changed.
> 
> 
> 
> Any suggestions as to cause of this error would be appreciated.
> 
> 
> 
> Thanks
> 
> 
> 
> Jason
> 
> 
> 
> 
> 
> H:> pypy setup.py install
> 
> 
> 
> Building pywin32 2.7.217.1
> 
> running install
> 
> running build
> 
> running build_py
> 
> running build_ext
> 
> Found version 0x601 in H:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\SDKDDKVER.H
> 
> building 'pywintypes' extension
> 
> ...
> 
> 
> 
> H:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:H:\pypy-2.0.2\include /LIBPATH:build\temp.win32-2.7\Release /LIBPATH:H:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib advapi32.lib user32.lib ole32.lib oleaut32.lib /EXPORT:initpywintypes build\temp.win32-2.7\Release\win32\src\PyACL.obj build\temp.win32-2.7\Release\win32\src\PyDEVMODE.obj build\temp.win32-2.7\Release\win32\src\PyHANDLE.obj build\temp.win32-2.7\Release\win32\src\PyIID.obj build\temp.win32-2.7\Release\win32\src\PyLARGE_INTEGER.obj build\temp.win32-2.7\Release\win32\src\PyOVERLAPPED.obj build\temp.win32-2.7\Release\win32\src\PySECURITY_ATTRIBUTES.obj build\temp.win32-2.7\Release\win32\src\PySECURITY_DESCRIPTOR.obj build\temp.win32-2.7\Release\win32\src\PySID.obj build\temp.win32-2.7\Release\win32\src\PyTime.obj build\temp.win32-2.7\Release\win32\src\PyUnicode.obj build\temp.win32-2.7\Release\win32\src\PyWAVEFORMATEX.obj build\temp.win32-2.7\Release\win32\src\PyWinTypesmodule.obj /OUT:build\lib.win32-2.7\pywin32_system32\pywintypes27.dll /IMPLIB:build\temp.win32-2.7\Release\win32\src\pywintypes27.lib /MANIFEST /MANIFEST:NO /MACHINE:x86 /BASE:0x1e7a0000 /DEBUG /PDB:build\temp.win32-2.7\Release\pywintypes.pdb
> 
> 
> 
> Creating library build\temp.win32-2.7\Release\win32\src\pywintypes27.lib and object build\temp.win32-2.7\Release\win32\src\pywintypes27.exp
> 
> 
> 
> PyTime.obj : error LNK2001: unresolved external symbol _PyArg_ParseTuple
> 
> PyWAVEFORMATEX.obj : error LNK2001: unresolved external symbol _PyArg_ParseTuple
> 
> 
> 
> PyWinTypesmodule.obj : error LNK2019: unresolved external symbol _PyArg_ParseTuple referenced in function "int __cdecl PyWinGlobals_Ensure(void)" (?PyWinGlobals_Ensure@@YAHXZ)
> 
> 
> 
> PyOVERLAPPED.obj : error LNK2001: unresolved external symbol _PyArg_ParseTuple
> 
> 
> 
> PySECURITY_ATTRIBUTES.obj : error LNK2001: unresolved external symbol _PyArg_ParseTuple
> 
> 
> 
> PySECURITY_DESCRIPTOR.obj : error LNK2001: unresolved external symbol _PyArg_ParseTuple
> 
> 
> 
> ...
> 
> 
> 
> build\lib.win32-2.7\pywin32_system32\pywintypes27.dll : fatal error LNK1120: 106 unresolved externals
> 
> 
> 
> error: command 'H:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.exe' failed with exit status 1120


Solution found:  the setup.py-generated link.exe command omitted python27.lib for some reason.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

"unresolved externals" error message building pywin32 for pypy jasonveldicott@gmail.com - 2013-06-25 19:57 -0700
  Re: "unresolved externals" error message building pywin32 for pypy joshanderson99@gmail.com - 2013-06-26 04:54 -0700

csiph-web