Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437232 - net-misc/proxychains-3.1 fails to compile with sys-libs/glibc-2.15
Summary: net-misc/proxychains-3.1 fails to compile with sys-libs/glibc-2.15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 447174 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-04 20:24 UTC by Maxim Kammerer
Modified: 2012-12-14 00:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2012-10-04 20:24:23 UTC
sys-devel/gcc-4.5.4
sys-libs/glibc-2.15-r2

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -Os -march=pentium3 -mtune=core2 -mfpmath=sse -fomit-frame-pointer -pipe -Wp,-MD,.deps/libproxychains.pp -c libproxychains.c  -fPIC -DPIC -o .libs/libproxychains.o
libproxychains.c:291:5: error: conflicting types for 'getnameinfo'
/usr/include/netdb.h:679:12: note: previous declaration of 'getnameinfo' was here
make[3]: *** [libproxychains.lo] Error 1

In libproxychains.c:

int getnameinfo (const struct sockaddr * sa,
            socklen_t salen, char * host,
            socklen_t hostlen, char * serv,
            socklen_t servlen, unsigned int flags)

In netdb.h:

extern int getnameinfo (__const struct sockaddr *__restrict __sa,
            socklen_t __salen, char *__restrict __host,
            socklen_t __hostlen, char *__restrict __serv,
            socklen_t __servlen, int __flags);

Changing flags type to int makes the compilation succeed (the internal variable is an int anyway).
Comment 1 Maxim Kammerer 2012-10-04 20:26:20 UTC
Err... ignore the comment about the internal variable.
Comment 2 Maxim Kammerer 2012-10-04 21:27:42 UTC
See also the patch agains glibc-2.15 in bug #408427.
Comment 3 Tim Harder gentoo-dev 2012-10-04 22:29:31 UTC
Fixed in proxychains-3.1_p20110225-r1 in CVS.
Comment 4 Tim Harder gentoo-dev 2012-12-14 00:30:24 UTC
*** Bug 447174 has been marked as a duplicate of this bug. ***