I had the same issue and i think i resolved it.
Linux ... 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
in proxychains/libproxychains.c
i changed the function to look like this and it compiled without problems. The same function is declared in /usr/include/netdb.h. Hope someone can use this info. Cheers
I had the same issue and i think i resolved it.
Linux ... 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
in proxychains/ libproxychains. c
i changed the function to look like this and it compiled without problems. The same function is declared in /usr/include/ netdb.h. Hope someone can use this info. Cheers
//int getnameinfo (const struct sockaddr * sa,
// socklen_t salen, char * host,
// socklen_t hostlen, char * serv,
// socklen_t servlen, unsigned int flags)
// size_t hostlen, char * serv,
// size_t servlen, int flags)
int getnameinfo (__const struct sockaddr *__restrict __sa,
socklen_ t __salen, char *__restrict __host,
socklen_ t __hostlen, char *__restrict __serv,
socklen_ t __servlen, int __flags)
{
init_ lib();
if(!proxychain s_resolver) { o(__sa, __salen, __host, __hostlen,
__serv, __servlen, __flags) ;
if(__ hostlen)
strncpy( __host, inet_ntoa( SOCKADDR_ 2(*__sa) ),__hostlen) ;
if(__ servlen)
snprintf( __serv, __servlen, "%d",ntohs( SOCKPORT( *__sa)) );
PDEBUG( "getnameinfo: %s %s\n", __host, __serv);
int ret = 0;
if(!init_l)
ret = true_getnameinf
} else {
}
return ret;
}