[tahoe-dev] seeking volunteer for an hour's labor Re: [tahoe-lafs] #773: run through installation on Windows

Shawn Willden shawn-tahoe at willden.org
Sun Jul 26 09:54:30 PDT 2009


On Sunday 26 July 2009 10:04:50 am Shawn Willden wrote:
> I'm sure I could work around this by installing MSVC.  I guess I'll do
> that, though I hate it.

Well... even that has problems :-)

------
Creating library build\temp.win32-2.6\Release\cryptopp\_pycryptopp.lib and 
object build\temp.win32-2.6\Release\cryptopp\_pycryptopp.exp
_pycryptoppmodule.obj : error LNK2019: unresolved external symbol "void 
__cdecl init_sha256(struct _object *)" (?init_sha256@@YAXPAU_object@@@Z) 
referenced in function _init_pycryptopp 
build\lib.win32-2.6\pycryptopp\_pycryptopp.pyd : fatal error LNK1120: 1 
unresolved externals
error: Setup script exited with error: command '"C:\Program Files\Microsoft 
Visual Studio 9.0\VC\BIN\link.exe"' failed with exit status 1120
------

This seems very odd.  Unresolved external?  Hmm.  I can't figure out where 
this stuff is actually being built to go look at the details.

Trying to see where these files are located, I ran the build again.  
Interestingly, this time it didn't even fiddle with pycryptopp BUT it failed 
to build zfec 1.4.5:

-------
cl : Command line warning D9002 : ignoring unknown option '-std=c99'
_fecmodule.c
zfec/_fecmodule.c(120) : warning C4018: '<' : signed/unsigned mismatch
zfec/_fecmodule.c(557) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(557) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(557) : error C2143: syntax error : missing ')' before 'type'
zfec/_fecmodule.c(557) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(557) : error C2065: 'i' : undeclared identifier
zfec/_fecmodule.c(557) : warning C4018: '<' : signed/unsigned mismatch
zfec/_fecmodule.c(557) : warning C4552: '<' : operator has no effect; expected 
operator with side-effect
zfec/_fecmodule.c(557) : error C2065: 'i' : undeclared identifier
zfec/_fecmodule.c(557) : error C2059: syntax error : ')'
zfec/_fecmodule.c(558) : error C2146: syntax error : missing ';' before 
identifier 'printf'
zfec/_fecmodule.c(558) : error C2065: 'i' : undeclared identifier
zfec/_fecmodule.c(569) : error C2143: syntax error : missing ';' 
before 'const'
zfec/_fecmodule.c(570) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(571) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(579) : error C2275: 'fec_t' : illegal use of this type as an 
expression
        c:\documents and settings\administrator\local 
settings\temp\easy_install-zdrtxo\zfec-1.4.5\zfec\fec.h(
15) : see declaration of 'fec_t'
zfec/_fecmodule.c(579) : error C2059: syntax error : 'const'
zfec/_fecmodule.c(580) : error C2065: 'fec' : undeclared identifier
zfec/_fecmodule.c(580) : warning C4047: 'function' : 'const fec_t *' differs 
in levels of indirection from 'int'
zfec/_fecmodule.c(580) : warning C4024: 'fec_encode' : different types for 
formal and actual parameter 1
zfec/_fecmodule.c(580) : error C2065: 'blocks' : undeclared identifier
zfec/_fecmodule.c(580) : warning C4047: 'function' : 'const gf *const *const ' 
differs in levels of indirection from 'int'
zfec/_fecmodule.c(580) : warning C4024: 'fec_encode' : different types for 
formal and actual parameter 2
zfec/_fecmodule.c(580) : error C2065: 'outblocks' : undeclared identifier
zfec/_fecmodule.c(580) : warning C4047: 'function' : 'gf *const *const ' 
differs in levels of indirection from 'int'
zfec/_fecmodule.c(580) : warning C4024: 'fec_encode' : different types for 
formal and actual parameter 3
zfec/_fecmodule.c(580) : error C2065: 'block_nums' : undeclared identifier
zfec/_fecmodule.c(580) : warning C4047: 'function' : 'const unsigned int 
*const ' differs in levels of indirection from 'int'
zfec/_fecmodule.c(580) : warning C4024: 'fec_encode' : different types for 
formal and actual parameter 4
zfec/_fecmodule.c(589) : error C2143: syntax error : missing ';' 
before 'const'
zfec/_fecmodule.c(590) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(591) : error C2143: syntax error : missing ';' before 'type'
zfec/_fecmodule.c(593) : error C2065: 'fec' : undeclared identifier
zfec/_fecmodule.c(593) : warning C4047: 'function' : 'const fec_t *' differs 
in levels of indirection from 'int'
zfec/_fecmodule.c(593) : warning C4024: 'fec_decode' : different types for 
formal and actual parameter 1
zfec/_fecmodule.c(593) : error C2065: 'inpkts' : undeclared identifier
zfec/_fecmodule.c(593) : warning C4047: 'function' : 'const gf *const *const ' 
differs in levels of indirection from 'int'
zfec/_fecmodule.c(593) : warning C4024: 'fec_decode' : different types for 
formal and actual parameter 2
zfec/_fecmodule.c(593) : error C2065: 'outpkts' : undeclared identifier
zfec/_fecmodule.c(593) : warning C4047: 'function' : 'gf *const *const ' 
differs in levels of indirection from 'int'
zfec/_fecmodule.c(593) : warning C4024: 'fec_decode' : different types for 
formal and actual parameter 3
zfec/_fecmodule.c(593) : error C2065: 'indexes' : undeclared identifier
zfec/_fecmodule.c(593) : warning C4047: 'function' : 'const unsigned int 
*const ' differs in levels of indirection from 'int'
zfec/_fecmodule.c(593) : warning C4024: 'fec_decode' : different types for 
formal and actual parameter 4
error: Setup script exited with error: command '"C:\Program Files\Microsoft 
Visual Studio 9.0\VC\BIN\cl.exe"'
failed with exit status 2
------

Seems like some serious disagreement between the code and Microsoft's compiler 
about what C should look like.  Or a very wrong verions of a zfec header 
file.

I'm not sure what to try next.  I guess I'll go back to 2.5 and the mingw 
compiler.

	Shawn.


More information about the tahoe-dev mailing list