Using knutclient-0.8.6 and nut-2.0.0_r1 I get a "no connect to server" error from knutclient. I unmasked and emerged knutclient-0.9_pre1 and it connected fine using the same configuration from 0.8.6. Suggest unmasking knutclient-0.9_pre1 $ emerge --info Portage 2.1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-suspend2-r9 x86_64) ================================================================= System uname: 2.6.16-suspend2-r9 x86_64 AMD Sempron(tm) Processor 2800+ Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.12-r6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X a52 aac akode alsa asf automount avi bash-completion berkdb bitmap-fonts bzip2 cli crypt cups curl curlwrappers dlloader dri dvb dvd dvdr dvdread emboss encode fam ffmpeg flac foomaticdb fortran gif glibc-omitfp gphoto2 gs gstreamer gtk gtk2 hal imagemagick imap imlib ipv6 isdnlog jpeg kde kdeenablefinal lzw lzw-tiff maildir mjpeg moznoirc mp3 mpeg ncurses nls nptl nsplugin ogg oggvorbis opengl pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection rtc samba sdl session spell spl ssl startup-notification swat tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales v4l2 vdr vorbis x264 xml xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_via video_cards_fbdev video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The problem with 0.8.6 does appear to be specific to amd64. Knutclient-0.8.6 running on my x86 box can connect to upsd on the amd64 box without error. I also tried compiling knutclient-0.8.6 with gcc-3.4.4 on the amd64 box but it gave the same error as when compiled with gcc-4.1.1.
Well, no one ever responded to this bug. But in the mean time 0.9 has been released and unmasked in portage rendering this issue moot.