From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 15:33:59 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D625E1065670 for ; Fri, 16 Jan 2009 15:33:59 +0000 (UTC) (envelope-from frank@ilse.behrens.de) Received: from post.behrens.de (post.behrens.de [IPv6:2a01:170:1023::1:2]) by mx1.freebsd.org (Postfix) with ESMTP id 331CC8FC1B for ; Fri, 16 Jan 2009 15:33:58 +0000 (UTC) (envelope-from frank@ilse.behrens.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=behrens.de; h=from:to:date:mime-version:subject:in-reply-to:references:content-type:content-transfer-encoding:content-description; s=pinky1; t=1232120036; i=frank@ilse.behrens.de; bh=vVExt4HiuyOt8Axl8/+OrDJbSTg2zLpKHlJ25Y3PKog=; b=wA+pwkIdKtAZrqK5Qhsa5YMhuSARyFPauVfLxKQLonmrr6cHsMDUVuncfHbAdhHjB+tr/rLOXi7EHUWxzBzuNg== Received: from sun.behrens ([IPv6:2a01:170:1023:0:f99a:fb92:4e7a:ac88]) by post.behrens.de (8.14.3/8.14.2) with ESMTP(MSA) id n0GFXsxM022127 for ; Fri, 16 Jan 2009 16:33:54 +0100 (CET) (envelope-from frank@ilse.behrens.de) Message-Id: <200901161533.n0GFXsxM022127@post.behrens.de> From: "Frank Behrens" To: freebsd-java@freebsd.org Date: Fri, 16 Jan 2009 16:33:54 +0100 MIME-Version: 1.0 Priority: normal In-reply-to: References: X-mailer: Pegasus Mail for Windows (4.31, DE v4.31 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Hashcash: 1:23:090116:freebsd-java@freebsd.org::7Ztgf9FLIro2dgQx:0000000007mi+ Subject: Re: openjdk 7 error in socket X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 15:34:00 -0000 Ronald Klop wrote on 16 Jan 2009 14:50: > On Fri, 16 Jan 2009 13:51:29 +0100, Ronald Klop > wrote: > > I just build openjdk 7 on FreeBSD 7.1-amd64. > > > > I've problems running something which makes a network connection. > > java.net.SocketException: Invalid argument >... > The option -Djava.net.preferIPv4Stack=true helps, but it is a little > inconvenient to add it to all java invocations. I asume a better fix is in > the make? Or are there better workarounds? I don't know the code in openjdk, but I guess it suffers from the same architectural deficiencies as JDK 1.6. (http://diario.beerensalat.info/2008/10/12/java_and_ipv6_on_bsd.html but I did not evaluate client sockets) -- Frank Behrens, Osterwieck, Germany PGP-key 0x5B7C47ED on public servers available.