happens on both sparc and amd64... sparc-unknown-linux-gnu-gcc -O2 -pipe -Wall -g -o xchat-text fe-text.o -Wl,--export-dynamic ../common/libxchatcommon.a -lssl -lcrypto -ldl /usr/lib/libglib-2.0.so ../common/libxchatcommon.a(outbound.o)(.text+0x3b64): In function `cmd_setcursor': /usr/include/stdlib.h:382: undefined reference to `fe_set_inputbox_cursor' ../common/libxchatcommon.a(outbound.o)(.text+0x3be8): In function `cmd_settext': /var/tmp/portage/xchat-2.4.1/work/xchat-2.4.1/src/common/outbound.c:2319: undefined reference to `fe_set_inputbox_contents' ../common/libxchatcommon.a(plugin.o)(.text+0x10e0): In function `xchat_get_info': /var/tmp/portage/xchat-2.4.1/work/xchat-2.4.1/src/common/plugin.c:933: undefined reference to `fe_get_inputbox_contents' collect2: ld returned 1 exit status make[3]: *** [xchat-text] Error 1 make[3]: Leaving directory `/usr/tmp/portage/xchat-2.4.1/work/xchat-2.4.1/src/fe-text' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/tmp/portage/xchat-2.4.1/work/xchat-2.4.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/tmp/portage/xchat-2.4.1/work/xchat-2.4.1' make: *** [all] Error 2 !!! ERROR: net-irc/xchat-2.4.1 failed. !!! Function src_compile, Line 61, Exitcode 2 !!! Compile failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51-r3 (default-linux/amd64/2004.3/lib64, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r2 x86_64) ================================================================= System uname: 2.6.9-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.6 distcc 2.18.2 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer" DISTDIR="/mnt/raid0/gentoo/distfiles" FEATURES="autoaddcvs autoconfig ccache confcache cvs distlocks fixpackages sandbox sign userpriv userpriv_fakeroot usersandbox verify-rdepend" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/mnt/raid0/gentoo/packages-amd64" PORTAGE_TMPDIR="/mnt/raid0/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mnt/raid0/gentoo/gentoo-x86" SYNC="rsync://127.0.0.1/gentoo-portage" USE="amd64 3ds S3TC X X509 Xaw3d aac aalib accessibility acl acpi activefilter aim alsa amd apache2 apm artworkextra atlas audiofile avantgo avi bcmath berkdb bidi bindist bitmap-fonts bmp bzlib c++ calendar caps cddb cdparanoia cdr chroot clamav clanJavaScript clanVoice clearpasswd client clisp cmucl crypt cscope ctype cups curl curlwrappers dba dbase dbcp dbm dbx dedicated dga dio directfb divx4linux dmx dnd doc dv dvd dvdr dvdread edl emacs emacs-w3 encode esd ethereal evms2 evo exif expat ext-png ext-zlib extensions f77 faac faad fam fax fbcon fbdev ffmpeg flac flash flatfile fltk fluidsynth fortran freetype fs ftp gb gcj gcl gd gd-external gdbm ggi gif gimp gimpprint glade glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnuplot gnutls gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hbci iconv icq idl image imagemagick imap imlib imlib2 innodb input_devices_wacom ipalias ipv6 jabber jack java javacomm javamail javascript jbig jikes joystick jp2 jpeg junit justify kde ladcca lcd lcms libcaca libdsk libedit libg++ libgda libsamplerate libwww lids live lmtp log4j ltsp lua lucid lzo lzw lzw-tiff mad maildir makecheck matroska mcal md5sum mhash mikmod mime mixer mng mnogosearch motif mozcalendar mozctl mozdevelop mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msession msn mule multilib music mysql mysqli mythtv nas native ncurses neXt network nis nls nptl nptlonly nvidia nviz oav objc odbc offensive ofx oggvorbis oldworld openal opengl oscar oss ovrimos pam parse-clocks pcap pcmcia pcntl pcre pda pdf pdflib perl php pic pie plotutils png pnp portaudio posix postgres ppds prelude procmail psyco python qhull qt quicktime readline recode regexp rplay rtc ruby samba sasl sdk sdl server session sharedmem silc simplexml skey slang slp sndfile soap sockets socks5 sox speex spell spl sqlite src ssl svg sysvipc tcltk tcpd tetex tga theora tidy tiff timidity tokenizer transcode transparent-proxy truetype trusted type1 ucs2 usb v4l v4l2 vda vhosts videos vim-with-x virus-scan wddx wmf wsconvert wxwin wxwindows xchattext xemacs xface xforms xfs xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xrandr xsl xv xvid xvmc yahoo zeo zlib"
x86 (pentium4) too. It's obviously related to the building of the xchat in textual mode (xchattext USE flag). The problem is, afaik, that some functions needed by the lib (libxchatcommon.a) are inside fe-gtk.o (for example, fe-gtk/fe-gtk.c:fe_set_inputbox_contents (session *sess, char *text) ). We can insert in fe-text.c those calls with no function body, so that libxchatcommon won't find them unresolved. I'll attach a patch. Xchat's programmer shouldn't probably reference functions in the main executable while inside the lib... libraries should be independent from the executable they're linked against. But that's just mho, and not really pertinent :p.
Created attachment 44766 [details, diff] Patch
Created attachment 44767 [details] Ebuild for xchat-2.4.1-r1 The updated ebuild.
Fixed in CVS. Issue has also been fixed upstream. Thanks for reporting and providing a patch!