Newsgroup: it.comp.lang.c++
Titolo: Mi deciftate questi errori?

Ho provato a ricompilare i rogenti di putty 
(
http://www.tartarus.org/~simon/putty-snapshots/putty-src.zip
)
Ottengo questi errori:
winnet.c
c:\putty-src\windows\winnet.c(20) : error C2079: 'in6addr_any' uses 
undefined struct 'in6_addr'
c:\putty-src\windows\winnet.c(20) : error C2065: 'IN6ADDR_ANY_INIT' : 
undeclared identifier
c:\putty-src\windows\winnet.c(20) : error C2099: initializer is not a 
constant
c:\putty-src\windows\winnet.c(21) : error C2079: 'in6addr_loopback' uses 
undefined struct 'in6_addr'
c:\putty-src\windows\winnet.c(21) : error C2065: 'IN6ADDR_LOOPBACK_INIT' : 
undeclared identifier
c:\putty-src\windows\winnet.c(21) : error C2099: initializer is not a 
constant
c:\putty-src\windows\winnet.c(168) : error C2146: syntax error : missing ')' 
before identifier 'salen'
c:\putty-src\windows\winnet.c(168) : error C2081: 'socklen_t' : name in 
formal parameter list illegal
c:\putty-src\windows\winnet.c(168) : error C2061: syntax error : identifier 
'salen'
c:\putty-src\windows\winnet.c(168) : error C2059: syntax error : ';'
c:\putty-src\windows\winnet.c(168) : error C2059: syntax error : ','
c:\putty-src\windows\winnet.c(168) : error C2059: syntax error : ')'
c:\putty-src\windows\winnet.c(168) : error C2061: syntax error : identifier 
'p_getnameinfo'
c:\putty-src\windows\winnet.c(168) : error C2059: syntax error : ';'
c:\putty-src\windows\winnet.c(195) : error C2065: 'p_getnameinfo' : 
undeclared identifier
c:\putty-src\windows\winnet.c(195) : error C2065: 't_getnameinfo' : 
undeclared identifier
c:\putty-src\windows\winnet.c(195) : error C2146: syntax error : missing ';' 
before identifier 'GetProcAddress'
c:\putty-src\windows\winnet.c(368) : error C2079: 'hints' uses undefined 
struct 'addrinfo'
c:\putty-src\windows\winnet.c(370) : error C2224: left of '.ai_family' must 
have struct/union type
c:\putty-src\windows\winnet.c(371) : warning C4133: 'function' : 
incompatible types - from 'int *' to 'const struct addrinfo *'
c:\putty-src\windows\winnet.c(372) : error C2037: left of 'ai_family' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(407) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(407) : warning C4022: 'memcpy' : pointer 
mismatch for actual parameter 2
c:\putty-src\windows\winnet.c(407) : error C2198: 'memcpy' : too few actual 
parameters
c:\putty-src\windows\winnet.c(412) : error C2063: 'p_getnameinfo' : not a 
function
c:\putty-src\windows\winnet.c(412) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(475) : error C2037: left of 'ai_next' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(476) : error C2037: left of 'ai_next' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(477) : error C2037: left of 'ai_family' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(511) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(511) : error C2037: left of 'ai_addrlen' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(512) : warning C4047: 'function' : 'unsigned 
long ' differs in levels of indirection from 'char *'
c:\putty-src\windows\winnet.c(512) : warning C4024: 'fAddrToStr' : different 
types for formal and actual parameter 2
c:\putty-src\windows\winnet.c(512) : warning C4133: 'function' : 
incompatible types - from 'int *' to 'struct _WSAPROTOCOL_INFOA *'
c:\putty-src\windows\winnet.c(512) : error C2198: 'fAddrToStr' : too few 
actual parameters
c:\putty-src\windows\winnet.c(571) : warning C4013: 'IN6_IS_ADDR_LOOPBACK' 
undefined; assuming extern returning int
c:\putty-src\windows\winnet.c(571) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(577) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(578) : error C2198: 'ipv4_is_local_addr' : too 
few actual parameters
c:\putty-src\windows\winnet.c(608) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(609) : warning C4022: 'memcpy' : pointer 
mismatch for actual parameter 2
c:\putty-src\windows\winnet.c(609) : error C2198: 'memcpy' : too few actual 
parameters
c:\putty-src\windows\winnet.c(611) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(612) : error C2027: use of undefined type 
'in6_addr'
        c:\putty-src\windows\winnet.c(20) : see declaration of 'in6_addr'
c:\putty-src\windows\winnet.c(612) : error C2198: 'memcpy' : too few actual 
parameters
c:\putty-src\windows\winnet.c(747) : error C2037: left of 'ai_family' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(843) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(847) : error C2037: left of 'ai_addr' 
specifies undefined struct/union 'addrinfo'
c:\putty-src\windows\winnet.c(1048) : error C2115: '=' : incompatible types
c:\putty-src\windows\winnet.c(1050) : error C2115: '=' : incompatible types
c:\putty-src\windows\winnet.c(1421) : error C2079: 'isa' uses undefined 
struct 'sockaddr_storage'
c:\putty-src\windows\winnet.c(1436) : error C2224: left of '.ss_family' must 
have struct/union type
Error executing cl.exe.

 Ottengo questi errori:
Perche' se ti decifriamo gli errori poi risolvi i problemi? Leggi bene
le istruzioni e se non ne vieni a capo cerca un forum adatto a porre
questo tipo di domande. it.comp.lang.c++ non lo e' perche' i sorgenti
sono in C e fanno riferimento ad una specifica piattaforma: per farla
breve sei OT.
Ciao,
Nicola

  per farla breve sei OT.
Ok, chiedo scusa.
Grazie.