the compile output: [...] i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -DSOCKS -c chat-commands.c In file included from network.h:12, from chat-commands.c:22: /usr/include/netdb.h:634: error: conflicting types for `Rgetaddrinfo' /usr/include/socks.h:113: error: previous declaration of `Rgetaddrinfo' make[3]: *** [chat-commands.o] Error 1 [...] Reproducible: Always Steps to Reproduce: 1. emerge irssi # emerge info Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2800+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 26 2005, 18:39:17)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r4 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache digest distlocks fixpackages sfperms" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.mirrors.pair.com ftp://gentoo.mirrors.pair.com" LANG="de_AT@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/overlays/local /usr/local/portage/overlays/gentoo-de" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X X509 Xaw3d aac aalib acl acpi acpi4linux aim alsa apache2 async audiofile avi bash-completion bdf berkdb bindist bitmap-fonts calendar cap caps cddb cdparanoia cdrom chroot codecs crypt css cups curl curlwrappers dba devmap dga dio divx4linux drac dts dv dvd dvdr emboss encode esd evms2 evo exif f77 faac faad fam fbcon fbdev ffmpeg flac flatfile fltk fluidsynth fmod font-server foomaticdb foreign-package foreign-sysvinit fortran freetype ftp gb gcj gd gif gimp gimpprint gpm graphviz gs gtk gtk2 icq idea ieee1394 imagemagick imap imlib imlib2 inifile innodb insecure-drivers ipv6 ipv6arpa jabber javascript jbig jp2 jpeg lcms ldap libg++ libsamplerate libwww live lm_sensors lufsusermount lzo lzw lzw-tiff mad maildir mbox mdb mikmod mime mmap mmx mng motif mozcalendar mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn mysql ncurses network nls no-htdocs ntlm odbc oggvorbis opengl pam pcre pdflib perl php png pnp posix pthreads python qt quicktime readline real rtc ruby samba sasl sdl shared sharedmem slang slp sockets socks5 sox speedo spell sse ssl svg svga sysvipc szip tcpd tga threads tidy tiff transcode truetype truetype-fonts type1 type1-fonts usb v4l2 vcd winbind wmf xanim xfs xine xinerama xml2 xmlrpc xmms xosd xpm xsl xv xvid zlib video_cards_3dfx video_cards_gamma video_cards_i810 video_cards_i830 video_cards_matrox video_cards_rage128 video_cards_radeon video_cards_sis" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
tried to install previous ebuilds like irssi-0.8.10_rc5.ebuild and irssi-0.8.9-r1.ebuild, but this produced the same error. # qpkg -f /usr/include/netdb.h sys-libs/glibc * # qpkg -f /usr/include/socks.h net-misc/dante * currently installed: dante-1.1.15-r1 glibc-2.3.4.20050125 maybe these versions are conflicting?
It's USE="socks5" that seems to mess things up. I'll take a look later today.
hi sven, its true: 'use="-socks5" emerge irssi' compiles wihtout any problems now. How you figured this out?
Two things in this line: > /usr/include/socks.h:113: error: previous declaration of `Rgetaddrinfo' It mentions socks.h and Rgetaddrinfo. socks.h is used for aliasing the normal network functions to functions that perform transparent socks-wrapping. Rgetaddrinfo is the socks-version of getaddrinfo. And a look at your USE line from emerge --info showed that you've got the socks5 USE flag activated. And the irssi ebuild has optional socks5 support.
I added a patch to net-irc/irssi-0.8.10_rc5-r1 that should fix this error. Please give it a test.