errors while building a program with Python

jeffstatin at yahoo.com jeffstatin at yahoo.com
Sun Oct 21 18:52:43 CEST 2007


Hi,

I'm trying to build a program (MixMinion) with Python 2.5.1, MSVS 2003
SP1 and Windows XP Home SP2 but I'm getting a couple of errors.

Here are the two errors I am getting:
(1) .\contrib\OpenSSL\lib\Builder5\ssleay32.lib : fatal error LNK1136:
invalid or corrupt file
(2) error: command '"C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link.exe"' failed with exit status 1136


Here is the terminal output log:
------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Owner>cd C:\MixMinion\Mixminion-0.0.8alpha3

C:\MixMinion\Mixminion-0.0.8alpha3>python setup.py build
Host is little-endian
C:\Python25\Lib\config\Makefile
running build
running build_py
creating build\lib.win32-2.5
creating build\lib.win32-2.5\mixminion
copying lib\mixminion\benchmark.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\BuildMessage.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\ClientAPI.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\ClientDirectory.py -> build
\lib.win32-2.5\mixminion
copying lib\mixminion\ClientMain.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\ClientUtils.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Common.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Config.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Crypto.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Filestore.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Fragments.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Main.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\MMTPClient.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\NetUtils.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\Packet.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\ScheduleUtils.py -> build
\lib.win32-2.5\mixminion
copying lib\mixminion\ServerInfo.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\SExpression.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\test.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\testSupport.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\ThreadUtils.py -> build\lib.win32-2.5\mixminion
copying lib\mixminion\TLSConnection.py -> build
\lib.win32-2.5\mixminion
copying lib\mixminion\__init__.py -> build\lib.win32-2.5\mixminion
creating build\lib.win32-2.5\mixminion\server
copying lib\mixminion\server\DNSFarm.py -> build
\lib.win32-2.5\mixminion\server
copying lib\mixminion\server\EventStats.py -> build
\lib.win32-2.5\mixminion\serv
er
copying lib\mixminion\server\HashLog.py -> build
\lib.win32-2.5\mixminion\server
copying lib\mixminion\server\MMTPServer.py -> build
\lib.win32-2.5\mixminion\serv
er
copying lib\mixminion\server\Modules.py -> build
\lib.win32-2.5\mixminion\server
copying lib\mixminion\server\PacketHandler.py -> build
\lib.win32-2.5\mixminion\s
erver
copying lib\mixminion\server\Pinger.py -> build\lib.win32-2.5\mixminion
\server
copying lib\mixminion\server\ServerConfig.py -> build
\lib.win32-2.5\mixminion\se
rver
copying lib\mixminion\server\ServerKeys.py -> build
\lib.win32-2.5\mixminion\serv
er
copying lib\mixminion\server\ServerMain.py -> build
\lib.win32-2.5\mixminion\serv
er
copying lib\mixminion\server\ServerQueue.py -> build
\lib.win32-2.5\mixminion\ser
ver
copying lib\mixminion\server\__init__.py -> build
\lib.win32-2.5\mixminion\server

creating build\lib.win32-2.5\mixminion\directory
copying lib\mixminion\directory\DirCGI.py -> build
\lib.win32-2.5\mixminion\direc
tory
copying lib\mixminion\directory\Directory.py -> build
\lib.win32-2.5\mixminion\di
rectory
copying lib\mixminion\directory\DirFormats.py -> build
\lib.win32-2.5\mixminion\d
irectory
copying lib\mixminion\directory\DirMain.py -> build
\lib.win32-2.5\mixminion\dire
ctory
copying lib\mixminion\directory\ServerInbox.py -> build
\lib.win32-2.5\mixminion\
directory
copying lib\mixminion\directory\ServerList.py -> build
\lib.win32-2.5\mixminion\d
irectory
copying lib\mixminion\directory\__init__.py -> build
\lib.win32-2.5\mixminion\dir
ectory
running build_ext
building 'mixminion._minionlib' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\src
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /
nologo /Ox
 /MD /W3 /GX /DNDEBUG -DMM_L_ENDIAN=1 -I.\contrib\OpenSSL\include -I.
\contrib\op
enssl\include -Isrc -IC:\Python25\include -IC:\Python25\PC /Tcsrc/
crypt.c /Fobui
ld\temp.win32-2.5\Release\src/crypt.obj
crypt.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /
nologo /Ox
 /MD /W3 /GX /DNDEBUG -DMM_L_ENDIAN=1 -I.\contrib\OpenSSL\include -I.
\contrib\op
enssl\include -Isrc -IC:\Python25\include -IC:\Python25\PC /Tcsrc/
aes_ctr.c /Fob
uild\temp.win32-2.5\Release\src/aes_ctr.obj
aes_ctr.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /
nologo /Ox
 /MD /W3 /GX /DNDEBUG -DMM_L_ENDIAN=1 -I.\contrib\OpenSSL\include -I.
\contrib\op
enssl\include -Isrc -IC:\Python25\include -IC:\Python25\PC /Tcsrc/
main.c /Fobuil
d\temp.win32-2.5\Release\src/main.obj
main.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /
nologo /Ox
 /MD /W3 /GX /DNDEBUG -DMM_L_ENDIAN=1 -I.\contrib\OpenSSL\include -I.
\contrib\op
enssl\include -Isrc -IC:\Python25\include -IC:\Python25\PC /Tcsrc/
tls.c /Fobuild
\temp.win32-2.5\Release\src/tls.obj
tls.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /
nologo /Ox
 /MD /W3 /GX /DNDEBUG -DMM_L_ENDIAN=1 -I.\contrib\OpenSSL\include -I.
\contrib\op
enssl\include -Isrc -IC:\Python25\include -IC:\Python25\PC /Tcsrc/
fec.c /Fobuild
\temp.win32-2.5\Release\src/fec.obj
fec.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /
DLL /nologo
 /INCREMENTAL:NO /LIBPATH:.\contrib\OpenSSL\lib\Builder5 /LIBPATH:.
\contrib\open
ssl\lib\builder5 /LIBPATH:C:\Python25\libs /LIBPATH:C:
\Python25\PCBuild ssleay32
.lib libeay32.lib advapi32.lib /EXPORT:init_minionlib build
\temp.win32-2.5\Relea
se\src/crypt.obj build\temp.win32-2.5\Release\src/aes_ctr.obj build
\temp.win32-2
.5\Release\src/main.obj build\temp.win32-2.5\Release\src/tls.obj build
\temp.win3
2-2.5\Release\src/fec.obj /OUT:build\lib.win32-2.5\mixminion
\_minionlib.pyd /IMP
LIB:build\temp.win32-2.5\Release\src\_minionlib.lib
.\contrib\OpenSSL\lib\Builder5\ssleay32.lib : fatal error LNK1136:
invalid or co
rrupt file
error: command '"C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link
.exe"' failed with exit status 1136

C:\MixMinion\Mixminion-0.0.8alpha3>
--------------------------------------------------------

Thanks




More information about the Python-list mailing list