From owner-freebsd-ports@FreeBSD.ORG Wed May 19 21:20:49 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 763DE106567A for ; Wed, 19 May 2010 21:20:49 +0000 (UTC) (envelope-from stacy@Millions.Ca) Received: from mail-gw-0.millions.ca (www.millions.ca [96.53.2.246]) by mx1.freebsd.org (Postfix) with ESMTP id 479678FC1F for ; Wed, 19 May 2010 21:20:48 +0000 (UTC) Received: from bonsai.millions.ca (Bonsai.Millions.Ca [192.168.64.4]) by oak.millions.ca (8.14.2/8.14.2) with ESMTP id o4JLKh2O088177; Wed, 19 May 2010 15:20:43 -0600 (MDT) (envelope-from stacy@millions.ca) Message-ID: <4BF4562B.5060208@millions.ca> Date: Wed, 19 May 2010 15:20:43 -0600 From: Stacy Millions User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.5pre) Gecko/20100518 Thunderbird/3.1b2 MIME-Version: 1.0 To: Damian Gerow References: <4BF39021.8080005@bsdforen.de> <4BF44923.5090101@millions.ca> <20100519205008.GB68124@plebeian.afflictions.org> In-Reply-To: <20100519205008.GB68124@plebeian.afflictions.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:20:49 -0000 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 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. -stacy