From owner-freebsd-ports@FreeBSD.ORG Wed May 19 21:25:17 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C66291065674 for ; Wed, 19 May 2010 21:25:17 +0000 (UTC) (envelope-from dgerow@afflictions.org) Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by mx1.freebsd.org (Postfix) with ESMTP id 7EBCA8FC17 for ; Wed, 19 May 2010 21:25:17 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAAv080vO+L5V/2dsb2JhbACdenK+bIUQBIwv X-IronPort-AV: E=Sophos;i="4.53,265,1272859200"; d="scan'208";a="64599081" Received: from 206-248-190-85.dsl.teksavvy.com (HELO shell.afflictions.org) ([206.248.190.85]) by ironport2-out.pppoe.ca with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 May 2010 17:25:16 -0400 Received: from shell.afflictions.org (shell.afflictions.org [172.20.143.66]) by shell.afflictions.org (8.14.4/8.14.4) with ESMTP id o4JLPF4Y090008; Wed, 19 May 2010 17:25:15 -0400 (EDT) (envelope-from dgerow@afflictions.org) Received: (from dwg@localhost) by shell.afflictions.org (8.14.4/8.14.4/Submit) id o4JLPFCa090005; Wed, 19 May 2010 17:25:15 -0400 (EDT) (envelope-from dgerow@afflictions.org) X-Authentication-Warning: shell.afflictions.org: dwg set sender to dgerow@afflictions.org using -f Date: Wed, 19 May 2010 17:25:15 -0400 From: Damian Gerow To: Stacy Millions Message-ID: <20100519212514.GC68124@plebeian.afflictions.org> References: <4BF39021.8080005@bsdforen.de> <4BF44923.5090101@millions.ca> <20100519205008.GB68124@plebeian.afflictions.org> <4BF4562B.5060208@millions.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BF4562B.5060208@millions.ca> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Dominic Fandrey , freebsd-ports@freebsd.org Subject: Re: OpenJDK6 not building X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2010 21:25:17 -0000 Stacy Millions wrote: : On 05/19/10 14:50, Damian Gerow wrote: : > Stacy Millions wrote: : > : On 05/19/10 01:15, Dominic Fandrey wrote: : > : : > :> java.net.SocketException: Invalid argument : > :> at java.net.PlainSocketImpl.socketConnect(Native Method) : > :> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) : > : : > : I have seen that before... Have you enabled IPv6 support? Have you set : > : the system property java.net.preferIPv4Stack=true? Perhaps setting the : > : environment variable JAVAVM_OPTS thusly will help : > : JAVAVM_OPTS="-Djava.net.preferIPv4Stack=true" : > : > There are no AAAA records for jaxp.dev.java.net, so preferring v4 won't help : > much. : : AAAA records are not part of the issue... if you want a quick and dirty : test, try this Regardless, I tried with java.net.preferIPv4Stack=true, and it had no effect. : 1. download http://javassh.org/download/jta26.jar this is a java/swing : telnet client : : 2. Run : java -jar jta26.jar : and you get: : Socket: can't connect: java.net.SocketException: Invalid argument : : 3. Run : java -Djava.net.preferIPv4Stack=true -jar jta26.jar : and it works (assuming there is a telnet server there to connect to) : : At least that is how things behave for me. That seems ... counter-intuitive.