During emerge of rhino, the process fails with java.net.NoRouteToHostException: No route to host Reproducible: Always Steps to Reproduce: 1. emerge rhino 2. 3. Actual Results: >>> emerge (3 of 6) dev-java/rhino-1.5-r5 to / >>> md5 src_uri ;-) rhino1_5R5.zip >>> Unpacking source... >>> Unpacking rhino1_5R5.zip to /var/tmp/portage/rhino-1.5-r5/work >>> Source unpacked. Buildfile: build.xml properties: init: [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/classes [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/rhino1_5R5 [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/rhino1_5R5/src [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/rhino1_5R5/toolsrc [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/rhino1_5R5/examples [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/rhino1_5R5/docs [mkdir] Created dir: /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/rhino1_5R5/docs/apidocs compile: properties: compile: [javac] Compiling 109 source files to /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/classes [copy] Copying 2 files to /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/classes properties: get-swing-ex: [get] Getting: http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip [get] Error getting http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip to /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/swingExSrc.zip BUILD FAILED /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build.xml:51: Following error occured while executing this line /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/toolsrc/build.xml:23: java.net.NoRouteToHostException: No route to host Total time: 5 seconds !!! ERROR: dev-java/rhino-1.5-r5 failed. !!! Function src_compile, Line 25, Exitcode 1 !!! compilation error Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5-rc3-mm1) ================================================================= System uname: 2.6.5-rc3-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.4 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc noauto sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts artswrappersuid avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls nptl oci8 oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
I forogot to mention that this machine is behind a firewall and I have to use proxies to access the outside. Both http_proxy and ftp_proxy is set in the environment.
I'm hitting a similar error, probably due to the fact that I'm behind a firewall. get-swing-ex: [get] Getting: http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip [get] Error getting http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip to /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build/swingExSrc.zip BUILD FAILED /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/build.xml:51: Following error occured while executing this line /var/tmp/portage/rhino-1.5-r5/work/rhino1_5R5/toolsrc/build.xml:23: java.net.ConnectException: Connection refused
This looks like a dupe of Bug #46582. I'll let a java herder mark it as such though.
*** This bug has been marked as a duplicate of 46582 ***