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)


{
        int ret = 0;
        if(!init_l)
                init_lib();
        if(!proxychains_resolver) {
                ret = true_getnameinfo(__sa,__salen,__host,__hostlen,
                                __serv,__servlen,__flags);
        } else {
                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);
        return ret;
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935377

Title:
  proxychains version 3.1-3 FTBFS on i386 in precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/proxychains/+bug/935377/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to