libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-O1 -Wl,--as-needed -o .libs/simple simple.o ../src/.libs/libssh2.so make[2]: Leaving directory `/var/tmp/portage/net-libs/libssh2-1.2.6/work/libssh2-1.2.6/tests' make check-TESTS make[2]: Entering directory `/var/tmp/portage/net-libs/libssh2-1.2.6/work/libssh2-1.2.6/tests' PASS: simple Fingerprint: 86 AD B2 21 33 60 65 3D 9A 29 86 DE 22 99 DA 18 CC BA D3 AC Authentication methods: publickey,password,keyboard-interactive Authentication by public key failed! FAIL: ssh2.sh =========================================== 1 of 2 tests failed Please report to libssh2-devel@cool.haxx.se =========================================== make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-libs/libssh2-1.2.6/work/libssh2-1.2.6/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/net-libs/libssh2-1.2.6/work/libssh2-1.2.6/tests' make: *** [check-recursive] Error 1 * ERROR: net-libs/libssh2-1.2.6 failed: Portage 2.2_rc67_p30 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r0, 2.6.35-rc4 x86_64) ================================================================= System uname: Linux-2.6.35-rc4-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1 Timestamp of tree: Unknown app-shells/bash: 4.1_p7 dev-lang/python: 2.6.5-r3, 3.1.2-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://localhost/gentoo-portage" USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri extras fortran gcj gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
When I run the tests on my system, I get the following in my syslog: sshd<auth/info>: sshd[23463]: Server listening on 0.0.0.0 port 4711. sshd<auth/info>: sshd[23463]: Server listening on :: port 4711. sshd<auth/err>: sshd[23463]: error: Couldn't create pid file "/var/run/sshd.pid": Permission denied sshd<auth/info>: sshd[23483]: Invalid user username from 127.0.0.1 sshd<auth/info>: sshd[23483]: input_userauth_request: invalid user username sshd<auth/info>: sshd[23483]: Failed none for invalid user username from 127.0.0.1 port 46252 ssh2 sshd<auth/info>: sshd[23483]: Failed publickey for invalid user username from 127.0.0.1 port 46252 ssh2 sshd<auth/info>: sshd[23483]: Received disconnect from 127.0.0.1: 11: Normal Shutdown sshd<auth/info>: sshd[23463]: Received signal 15; terminating.
Tests work if run without portage, seems they need network connectivity. Probably the best we can do is just disable them with RESTRICT="test" ?
Added workaround to disable the failing tests again in 1.3.0 in CVS.