proxychains version 3.1-3 FTBFS on i386 in precise

Bug #935377 reported by Andreas Moog
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
proxychains (Ubuntu)
Fix Released
High
Adam Conrad
Precise
Won't Fix
High
Unassigned

Bug Description

This is a semi-automatic report based on the latest archive rebuild results [1].
Apologies if it reaches you in error.

Excerpt from the buildlog:

make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/build/buildd/proxychains-3.1/proxychains/docs/en'
make[5]: Entering directory `/build/buildd/proxychains-3.1/proxychains/docs'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/build/buildd/proxychains-3.1/proxychains/docs'
make[4]: Leaving directory `/build/buildd/proxychains-3.1/proxychains/docs'
make[4]: Entering directory `/build/buildd/proxychains-3.1/proxychains'
/bin/bash ../libtool --mode=compile i686-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -c libproxychains.c
mkdir .libs
 i686-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wp,-MD,.deps/libproxychains.pp -c libproxychains.c -fPIC -DPIC -o .libs/libproxychains.o
libproxychains.c:337:5: error: conflicting types for 'getnameinfo'
/usr/include/netdb.h:679:12: note: previous declaration of 'getnameinfo' was here
make[4]: *** [libproxychains.lo] Error 1
make[4]: Leaving directory `/build/buildd/proxychains-3.1/proxychains'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/buildd/proxychains-3.1/proxychains'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/proxychains-3.1'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/build/buildd/proxychains-3.1'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20120209-1807
FAILED [dpkg-buildpackage died]

The full buidlog can be found at https://launchpad.net/ubuntu/+archive/test-rebuild-20120201/+build/3167217/+files/buildlog_ubuntu-precise-i386.proxychains_3.1-3_FAILEDTOBUILD.txt.gz.

[1] http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20120201-precise.html

Tags: ftbfs precise
Andreas Moog (ampelbein)
Changed in proxychains (Ubuntu):
importance: Undecided → High
Revision history for this message
ruut3rz (ruut3rz) wrote :

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;
}

Revision history for this message
ruut3rz (ruut3rz) wrote :

Basically just took the declaration from /usr/include/netdb.h
and changed the variables in the function to match, like "__serv".
Cheers

Revision history for this message
Adam Conrad (adconrad) wrote :

All that mangling was entirely unnecessary, the complaint was simply 'unsigned int' versus 'int' on the declaration of 'flags'.

Changed in proxychains (Ubuntu):
status: New → Fix Committed
assignee: nobody → Adam Conrad (adconrad)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package proxychains - 3.1-4ubuntu2

---------------
proxychains (3.1-4ubuntu2) raring; urgency=low

  * Fix debian/patches/600-ftbfs-getnameinfo.patch to build on amd64.
 -- Adam Conrad <email address hidden> Sun, 02 Dec 2012 05:46:50 -0700

Changed in proxychains (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Moog (ampelbein) wrote :

Precise is EoL, setting task to Won't Fix.

Changed in proxychains (Ubuntu Precise):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.