From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 16:38:58 2009 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABA8C10656C6 for ; Sun, 11 Jan 2009 16:38:58 +0000 (UTC) (envelope-from andy.lavr@reactor-xg.kiev.ua) Received: from mail.reactor-xg.kiev.ua (reactor-xg.kiev.ua [77.87.33.247]) by mx1.freebsd.org (Postfix) with ESMTP id EBDBE8FC08 for ; Sun, 11 Jan 2009 16:38:55 +0000 (UTC) (envelope-from andy.lavr@reactor-xg.kiev.ua) Received: from mail.reactor-xg.kiev.ua (mail.reactor-xg.kiev.ua [77.87.33.247]) by mail.reactor-xg.kiev.ua (Reactor-XG Mailer System) with ESMTP id n0BFxDxG014249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 11 Jan 2009 17:59:13 +0200 (EET) (envelope-from andy.lavr@reactor-xg.kiev.ua) Authentication-Results: mail.reactor-xg.kiev.ua; sender-id=pass header.from=andy.lavr@reactor-xg.kiev.ua; auth=pass (PLAIN); spf=pass smtp.mfrom=andy.lavr@reactor-xg.kiev.ua Message-ID: <496A1751.1070503@reactor-xg.kiev.ua> Date: Sun, 11 Jan 2009 17:59:13 +0200 From: "Andrei V. Lavreniyuk" Organization: Technica-03, Inc. User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: java@FreeBSD.org X-Enigmail-Version: 0.95.6 OpenPGP: Content-Type: multipart/mixed; boundary="------------020309090404020105030606" X-Virus-Scanned: ClamAV 0.94.2/8850/Sun Jan 11 01:20:01 2009 on mail.reactor-xg.kiev.ua X-Virus-Status: Clean Cc: Subject: Patch ant.sh.in for FreeBSD ports devel/apache-ant X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andy.lavr@gmail.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2009 16:38:59 -0000 This is a multi-part message in MIME format. --------------020309090404020105030606 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Hi! View attache files - patch-ant.sh.in -- Best regards, Andrei V. Lavreniyuk. --------------020309090404020105030606 Content-Type: text/plain; name="patch-ant.sh.in" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-ant.sh.in" --- ant.sh.in.orig 2006-09-07 11:15:39.000000000 +0300 +++ ant.sh.in 2009-01-11 17:57:02.605297141 +0200 @@ -79,4 +79,4 @@ exit 1 fi -exec "${JAVACMD}" ${ANT_OPTS} -classpath "${LOCALCLASSPATH}" -Dant.home="${DATADIR}" org.apache.tools.ant.launch.Launcher ${ANT_ARGS} -lib "${CLASSPATH}" "$@" +exec "${JAVACMD}" ${ANT_OPTS} -classpath "${LOCALCLASSPATH}" -Dant.home="${DATADIR}" org.apache.tools.ant.launch.Launcher ${ANT_ARGS} -lib "${ANT_LIB}" "$@" --------------020309090404020105030606-- From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 19:44:45 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 91A6F106566B for ; Sun, 11 Jan 2009 19:44:45 +0000 (UTC) (envelope-from jguojun@gmail.com) Received: from smtp120.sbc.mail.sp1.yahoo.com (smtp120.sbc.mail.sp1.yahoo.com [69.147.64.93]) by mx1.freebsd.org (Postfix) with SMTP id 642928FC14 for ; Sun, 11 Jan 2009 19:44:45 +0000 (UTC) (envelope-from jguojun@gmail.com) Received: (qmail 44875 invoked from network); 11 Jan 2009 19:18:05 -0000 Received: from unknown (HELO ?192.168.2.6?) (jguojun@75.36.164.103 with plain) by smtp120.sbc.mail.sp1.yahoo.com with SMTP; 11 Jan 2009 19:18:04 -0000 X-YMail-OSG: LIdBPNAVM1k4Dh64Wi6auc18I_LCZIv4_li0sH8L3E.mBMxXbyd03lg6EvgauU7paOibUj5UisD0Rwt5Rc1qSRx5OOvIjoh2pXTQlbbKFYrcF2gqLrGBMyHG2bmfFXN3sH50EX5xVnCl0wcm1V.gCA_XbPHBDGme8JpgAmrE57wLssKT3YU9B5d6BgkS X-Yahoo-Newman-Property: ymail-3 Message-ID: <496A45E8.7070304@gmail.com> Date: Sun, 11 Jan 2009 11:18:00 -0800 From: "Jin Guojun[VFF]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080929 X-Accept-Language: en, zh, zh-CN MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: failed on 7.1-R 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: Sun, 11 Jan 2009 19:44:45 -0000 In 7.1-RELEASE, jdk16 build requires tzupdater-1_3_6, but Sun has updated tzupdater to 1_3_11-2008i. Is possible just to change the TZUPDATE_VERSION and checksum in Makefile to make build proceed? or is more thing needed to be tuned to make jdk16 build work? Thanks, -Jin From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 20:10:13 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 BC1F71065673 for ; Sun, 11 Jan 2009 20:10:13 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 9B6E78FC0A for ; Sun, 11 Jan 2009 20:10:13 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 30973 invoked from network); 11 Jan 2009 20:10:12 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 11 Jan 2009 20:10:12 -0000 Message-ID: <496A5075.8050708@telenix.org> Date: Sun, 11 Jan 2009 15:03:01 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: freebsd-java@FreeBSD.org X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: javadoc authoring tool? 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: Sun, 11 Jan 2009 20:10:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Trying to finish up a learning prject of mine (for java and eclipse), and only need to generate the javadoc comments. Anybody know if there's a good FreeBSD port for javadoc authoring? Or, what's your favorite? I could write it without that, but I'm trying here to learn as many good tools as I can, and so I want a authoring tool if I can get one (I can't find (yet) any feature of eclipse to do this). Thanks. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklqUHQACgkQz62J6PPcoOlk+wCfXPLrBFVegUjyv1835unCDIRi daQAniLA46HX1uA23Cp4qJ04RvX4SdoR =gR8t -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 22:15:00 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 CCE4B106566C for ; Sun, 11 Jan 2009 22:15:00 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7345F8FC12 for ; Sun, 11 Jan 2009 22:15:00 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id AD02528449 for ; Mon, 12 Jan 2009 06:14:59 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 3F116EC7321; Mon, 12 Jan 2009 06:14:59 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id JUetUTh3Mpq0; Mon, 12 Jan 2009 06:14:54 +0800 (CST) Received: from charlie.delphij.net (c-67-188-86-134.hsd1.ca.comcast.net [67.188.86.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id CC34AEB08E1; Mon, 12 Jan 2009 06:14:52 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=TWwUvzeCfv1H5sA8ReBAaKVbVitQwITDSr9OTmz4sYTP5PK7q8GfXlTkJD799O3MU MfXo+hliZh909PAeFIwFA== Message-ID: <496A6F59.9090508@delphij.net> Date: Sun, 11 Jan 2009 14:14:49 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: "Jin Guojun[VFF]" References: <496A45E8.7070304@gmail.com> In-Reply-To: <496A45E8.7070304@gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: failed on 7.1-R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2009 22:15:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,Jin, Jin Guojun[VFF] wrote: > In 7.1-RELEASE, jdk16 build requires tzupdater-1_3_6, but Sun has > updated tzupdater to 1_3_11-2008i. > > Is possible just to change the TZUPDATE_VERSION and checksum in Makefile > to make build proceed? > or is more thing needed to be tuned to make jdk16 build work? I think you may want to update your ports tree (portsnap fetch extract). The latest jdk16 port uses 1_3_11-2008i. - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklqb1kACgkQi+vbBBjt66CpwACeJIghTiy58nrj+F80XnhWA+vN XL8AoMK7p5ji/12cHsXrth0GZyKQK+8d =lgh/ -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 22:30:46 2009 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C4E1106566B for ; Sun, 11 Jan 2009 22:30:46 +0000 (UTC) (envelope-from hq@freebsd.org) Received: from 29.mail-out.ovh.net (29.mail-out.ovh.net [87.98.216.213]) by mx1.freebsd.org (Postfix) with SMTP id 7E69D8FC19 for ; Sun, 11 Jan 2009 22:30:45 +0000 (UTC) (envelope-from hq@freebsd.org) Received: (qmail 15402 invoked by uid 503); 11 Jan 2009 22:04:28 -0000 Received: from b6.ovh.net (HELO mail412.ha.ovh.net) (213.186.33.56) by 29.mail-out.ovh.net with SMTP; 11 Jan 2009 22:04:28 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 11 Jan 2009 22:04:04 -0000 Received: from amarseille-256-1-143-212.w90-10.abo.wanadoo.fr (HELO ?192.168.1.14?) (herve.quiroz@trancecode.org@90.10.238.212) by ns0.ovh.net with SMTP; 11 Jan 2009 22:04:03 -0000 Message-ID: <496A6CCF.8010709@FreeBSD.org> Date: Sun, 11 Jan 2009 23:03:59 +0100 From: Herve Quiroz User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: andy.lavr@gmail.com References: <496A1751.1070503@reactor-xg.kiev.ua> In-Reply-To: <496A1751.1070503@reactor-xg.kiev.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 7841611377285048839 X-Ovh-Remote: 90.10.238.212 (amarseille-256-1-143-212.w90-10.abo.wanadoo.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Cc: java@FreeBSD.org Subject: Re: Patch ant.sh.in for FreeBSD ports devel/apache-ant 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: Sun, 11 Jan 2009 22:30:46 -0000 Hi Andrei, Andrei V. Lavreniyuk wrote: > View attache files - patch-ant.sh.in I think your patch is right. And I think we'll have to fix some of the Ant task ports (e.g. textproc/ant-xinclude-task) which install JAR files into ${JAVAJARDIR} rather than ${ANT_HOME}/lib. Greg, do you think this change could be commited without a test run? Herve From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 22:39:58 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 15621106566C for ; Sun, 11 Jan 2009 22:39:58 +0000 (UTC) (envelope-from jguojun@gmail.com) Received: from smtp126.sbc.mail.sp1.yahoo.com (smtp126.sbc.mail.sp1.yahoo.com [69.147.65.185]) by mx1.freebsd.org (Postfix) with SMTP id DA2CC8FC13 for ; Sun, 11 Jan 2009 22:39:57 +0000 (UTC) (envelope-from jguojun@gmail.com) Received: (qmail 14430 invoked from network); 11 Jan 2009 22:39:57 -0000 Received: from unknown (HELO ?192.168.2.6?) (jguojun@75.36.164.103 with plain) by smtp126.sbc.mail.sp1.yahoo.com with SMTP; 11 Jan 2009 22:39:57 -0000 X-YMail-OSG: 6kfTqFEVM1my_0bX.hutSu3jnWWS0ssHpOvU1szpRKFkts6lJNP9xLASSssY62E8YLp0rLlO_doxg7G8NXipBvUug8sOR0eWuC5PHYzzhQCwlsKtNCgRFpvdWfnJJ1Zi0VzitqYJcIc1ipbficKnekWi X-Yahoo-Newman-Property: ymail-3 Message-ID: <496A753C.6050704@gmail.com> Date: Sun, 11 Jan 2009 14:39:56 -0800 From: "Jin Guojun[VFF]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20080929 X-Accept-Language: en, zh, zh-CN MIME-Version: 1.0 To: d@delphij.net References: <496A45E8.7070304@gmail.com> <496A6F59.9090508@delphij.net> In-Reply-To: <496A6F59.9090508@delphij.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: failed on 7.1-R 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: Sun, 11 Jan 2009 22:39:58 -0000 Xin LI wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi,Jin, > >Jin Guojun[VFF] wrote: > > >>In 7.1-RELEASE, jdk16 build requires tzupdater-1_3_6, but Sun has >>updated tzupdater to 1_3_11-2008i. >> >>Is possible just to change the TZUPDATE_VERSION and checksum in Makefile >>to make build proceed? >>or is more thing needed to be tuned to make jdk16 build work? >> >> > >I think you may want to update your ports tree (portsnap fetch extract). > The latest jdk16 port uses 1_3_11-2008i. > > I have successfully built jdk16 under 7.1-R by modifying TZUPDATE_VERSION and checksum in Makefile. I just wonder if such build will causing some problem. I will try and if I encounter any problem, I will rebuild it from portsnal. Thanks for the information. -Jin From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 22:51:27 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 9F7A81065675 for ; Sun, 11 Jan 2009 22:51:27 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 45DDF8FC1C for ; Sun, 11 Jan 2009 22:51:27 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 7DCF228448 for ; Mon, 12 Jan 2009 06:51:26 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 3DF6FEC3AD2; Mon, 12 Jan 2009 06:51:26 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id 12J-2xNKH8jD; Mon, 12 Jan 2009 06:51:21 +0800 (CST) Received: from charlie.delphij.net (c-67-188-86-134.hsd1.ca.comcast.net [67.188.86.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 165D4EB6187; Mon, 12 Jan 2009 06:51:19 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=CqJUNEkzM8MnPdE69V7EyOWPzH/FmIkSc5XihyLiKociJ8ChbraS6O7VX726SXPxo fjOaZ7D5gB1MDIRmtO3MA== Message-ID: <496A77E4.1040508@delphij.net> Date: Sun, 11 Jan 2009 14:51:16 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: "Jin Guojun[VFF]" References: <496A45E8.7070304@gmail.com> <496A6F59.9090508@delphij.net> <496A753C.6050704@gmail.com> In-Reply-To: <496A753C.6050704@gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: d@delphij.net, freebsd-java@freebsd.org Subject: Re: failed on 7.1-R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2009 22:51:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jin Guojun[VFF] wrote: > Xin LI wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi,Jin, >> >> Jin Guojun[VFF] wrote: >> >> >>> In 7.1-RELEASE, jdk16 build requires tzupdater-1_3_6, but Sun has >>> updated tzupdater to 1_3_11-2008i. >>> >>> Is possible just to change the TZUPDATE_VERSION and checksum in Makefile >>> to make build proceed? >>> or is more thing needed to be tuned to make jdk16 build work? >>> >> >> I think you may want to update your ports tree (portsnap fetch extract). >> The latest jdk16 port uses 1_3_11-2008i. >> >> > I have successfully built jdk16 under 7.1-R by modifying > TZUPDATE_VERSION and checksum in Makefile. > I just wonder if such build will causing some problem. I will try and if > I encounter any problem, > I will rebuild it from portsnal. I don't think it would be some runtime problem except stale timezone data, depends on your application and whether you care :) Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklqd+QACgkQi+vbBBjt66Dp/QCfWVMmr2vuRQ9kXrn4QGOBTVsn Z5MAnj1mmC0ES8qLEwUlaZRpDefNKwXI =ypIc -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Mon Jan 12 01:20:40 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 C6CB1106564A for ; Mon, 12 Jan 2009 01:20:40 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id 47BC38FC08 for ; Mon, 12 Jan 2009 01:20:35 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id n0C0cXVR005679; Mon, 12 Jan 2009 01:38:33 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Mon, 12 Jan 2009 01:38:32 +0100 User-Agent: KMail/1.9.10 References: <496A5075.8050708@telenix.org> In-Reply-To: <496A5075.8050708@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901120138.32812.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Chuck Robey Subject: Re: javadoc authoring tool? 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: Mon, 12 Jan 2009 01:20:41 -0000 On Sunday 11 January 2009 21:03:01 Chuck Robey wrote: > Trying to finish up a learning prject of mine (for java and eclipse), and > only need to generate the javadoc comments. Anybody know if there's a good > FreeBSD port for javadoc authoring? Or, what's your favorite? I could > write it without that, but I'm trying here to learn as many good tools as I > can, and so I want a authoring tool if I can get one (I can't find (yet) > any feature of eclipse to do this). I don't know exactly what you mean by javadoc "authoring", but eclipse has pretty neat auto completing javadoc support. If by generating javadoc you mean automatic @param generation, then yes, eclipse does that too. The generate javadoc menu item also works pretty well ;-). It's all I ever needed for my javadoc needs. Cheers, Pieter de Goeje From owner-freebsd-java@FreeBSD.ORG Mon Jan 12 08:05:56 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 98B25106566C for ; Mon, 12 Jan 2009 08:05:56 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 30CEC8FC13 for ; Mon, 12 Jan 2009 08:05:56 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 9048 invoked by uid 2001); 12 Jan 2009 08:05:55 -0000 Date: Mon, 12 Jan 2009 02:05:55 -0600 From: "Rick C. Petty" To: Chuck Robey Message-ID: <20090112080555.GB8590@keira.kiwi-computer.com> References: <496A5075.8050708@telenix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <496A5075.8050708@telenix.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@FreeBSD.org Subject: Re: javadoc authoring tool? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2009 08:05:57 -0000 On Sun, Jan 11, 2009 at 03:03:01PM -0500, Chuck Robey wrote: > > Trying to finish up a learning prject of mine (for java and eclipse), and only > need to generate the javadoc comments. Anybody know if there's a good FreeBSD > port for javadoc authoring? Or, what's your favorite? I could write it without > that, but I'm trying here to learn as many good tools as I can, and so I want a > authoring tool if I can get one (I can't find (yet) any feature of eclipse to do > this). You mean aside from /usr/local/bin/javadoc (which comes with any jdk)? Are you talking about a program to compile the javadoc or a tool to help you write it? Eclipse makes authoring javadoc easy, since all you should need to do is type "/**" and either space or enter and it will auto-fill the expected attributes. -- Rick C. Petty From owner-freebsd-java@FreeBSD.ORG Mon Jan 12 11:06:55 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 C4DEE10656CE for ; Mon, 12 Jan 2009 11:06:55 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7EF0A8FC1E for ; Mon, 12 Jan 2009 11:06:55 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0CB6tu1092045 for ; Mon, 12 Jan 2009 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0CB6sTA092040 for freebsd-java@FreeBSD.org; Mon, 12 Jan 2009 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Jan 2009 11:06:54 GMT Message-Id: <200901121106.n0CB6sTA092040@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org 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: Mon, 12 Jan 2009 11:06:56 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o java/128948 java java/jdk16 built from source can't bind a socket, but o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/125583 java Java gui programs stop without error message o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/121420 java java/jdk16: Java applet fails to find class under fire o ports/121416 java java/jdk15 can't build if BIN environment variable is o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/115773 java [request] java.nio channel selectors should use kqueue o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/113467 java Multiple "missing return value" errors building JDK on o java/112595 java Java appletviewer frequently hangs (kse_release loop) o java/110912 java Java krb5 client leaks UDP connections o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/97461 java Diablo JDK does not report Update level in a format su o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext 29 problems total. From owner-freebsd-java@FreeBSD.ORG Tue Jan 13 19:15:54 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 F03D21065B87 for ; Tue, 13 Jan 2009 19:15:54 +0000 (UTC) (envelope-from kjkoster@kjkoster.org) Received: from www.kjkoster.org (kjkoster.org [80.101.182.197]) by mx1.freebsd.org (Postfix) with ESMTP id 822F78FC1E for ; Tue, 13 Jan 2009 19:15:53 +0000 (UTC) (envelope-from kjkoster@kjkoster.org) Received: from [192.168.0.1] (mac [192.168.0.1]) by www.kjkoster.org (8.14.3/8.14.3) with ESMTP id n0DJIufp081285; Tue, 13 Jan 2009 20:19:04 +0100 (CET) (envelope-from kjkoster@kjkoster.org) Message-Id: <9205CDBD-A78B-465E-A559-1762D1223FFC@kjkoster.org> From: Kees Jan Koster To: Milos Negovanovic In-Reply-To: <20090113165119.GD542@googlemail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 13 Jan 2009 20:15:44 +0100 References: <20090113124656.GB542@googlemail.com> <48AD78A1-3463-4342-A76E-497762B222E6@kjkoster.org> <20090113133624.GC542@googlemail.com> <20090113165119.GD542@googlemail.com> X-Mailer: Apple Mail (2.930.3) Cc: netbsd-java@NetBSD.org, freebsd-java@freebsd.org Subject: Re: lang/sun-jdk15 on amd64 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: Tue, 13 Jan 2009 19:15:56 -0000 Dear Milos, >> No idea, sorry. I always use the native build, because if I run into >> problems, they can be fixed by the Java porting team. The linux >> package >> is not open to such fixes. > > How do you manage to build native jdk? It depends on linux emulated > jdk > package (which core dumps for me). Hum. You ran into the bootstrap problem. Blech, I remember that one from way back when I hacked at the DEC Alpha port a little. Technically, building the JDK depends on any working JVM, not the linux one per se. There are two paths for you to take; find a working JVM for your box and edit the port dependency so that it uses that JVM, or do the bootstrap on another machine. I'm not sure what version of the JDK you need to bootstrap the JVM build. First path speaks for itself, I think. Second path is more likely to work, but very fiddly. First run the build until it cores. Then see the last command that the build tried to run. That command is most likely "${your-bootstrap-java-home}/bin/javac ..." What you can do is copy the extracted and half-built JDK sources onto (say) a Linux/amd64 system, then issue the failed command manually, then drag the half- built tree back to the target machine and continue the build. You can optimize this procedure if you study the command and its dependent files. I have done it in the past and it's not really as hard as it sounds. This is all from memory, so please check with Greg Lewis and the java porting team on how to proceed. They know a lot more tricks than I do. -- Kees Jan http://java-monitor.com/forum/ kjkoster@kjkoster.org 06-51838192 The secret of success lies in the stability of the goal. -- Benjamin Disraeli From owner-freebsd-java@FreeBSD.ORG Tue Jan 13 23:57:35 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 61C5A106568F for ; Tue, 13 Jan 2009 23:57:35 +0000 (UTC) (envelope-from he@uninett.no) Received: from smistad.uninett.no (smistad.uninett.no [IPv6:2001:700:1:0:211:9ff:fe8c:7386]) by mx1.freebsd.org (Postfix) with ESMTP id 6B44D8FC20 for ; Tue, 13 Jan 2009 23:57:34 +0000 (UTC) (envelope-from he@uninett.no) Received: from smistad.uninett.no (smistad.uninett.no [158.38.62.77]) by smistad.uninett.no (Postfix) with ESMTP id 6C92B21DC43; Wed, 14 Jan 2009 00:57:32 +0100 (CET) Date: Wed, 14 Jan 2009 00:57:32 +0100 (CET) Message-Id: <20090114.005732.160514572.he@uninett.no> To: kjkoster@kjkoster.org From: Havard Eidnes In-Reply-To: <9205CDBD-A78B-465E-A559-1762D1223FFC@kjkoster.org> References: <20090113165119.GD542@googlemail.com> <9205CDBD-A78B-465E-A559-1762D1223FFC@kjkoster.org> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Jan_14_00_57_32_2009_273)--" Content-Transfer-Encoding: 7bit Cc: netbsd-java@NetBSD.org, milos.negovanovic@googlemail.com, freebsd-java@freebsd.org Subject: Re: lang/sun-jdk15 on amd64 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: Tue, 13 Jan 2009 23:57:35 -0000 ----Next_Part(Wed_Jan_14_00_57_32_2009_273)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > >> No idea, sorry. I always use the native build, because if I > >> run into problems, they can be fixed by the Java porting > >> team. The linux package is not open to such fixes. > > > > How do you manage to build native jdk? It depends on linux > > emulated jdk package (which core dumps for me). > > Hum. You ran into the bootstrap problem. Blech, I remember that one = > from way back when I hacked at the DEC Alpha port a little. = > Technically, building the JDK depends on any working JVM, not the = > linux one per se. > > There are two paths for you to take; find a working JVM for your box = = > and edit the port dependency so that it uses that JVM, or do the = > bootstrap on another machine. Actually, only a few java commands are needed to be run by another java instance during the build. The attached documents how I went about getting a native jdk15 running for amd64. It can be done, but it's a little quirky to set up. Regards, - H=E5vard ----Next_Part(Wed_Jan_14_00_57_32_2009_273)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-Path: he@uninett.no Delivery-Date: Wed, 14 Jan 2009 00:53:16 +0100 Return-Path: X-Original-To: he@smistad.uninett.no Delivered-To: he@smistad.uninett.no Received: from tyholt.uninett.no (tyholt.uninett.no [IPv6:2001:700:1::eecb]) by smistad.uninett.no (Postfix) with ESMTP id 3F46C21DC43 for ; Wed, 14 Jan 2009 00:53:16 +0100 (CET) Received: from dike1b.uninett.no (dike1b.uninett.no [IPv6:2001:700:0:513::65]) by tyholt.uninett.no (Postfix) with ESMTP id 3767E2BACAE for ; Wed, 14 Jan 2009 00:53:16 +0100 (CET) X-Maildike-Whitelisted: Whitelisted client (global): 158.38.160.195 Received: from vestlia.uninett.no (vestlia.uninett.no [158.38.160.195]) by dike1b.uninett.no (Postfix) with ESMTP id 2FC80A20064 for ; Wed, 14 Jan 2009 00:53:16 +0100 (CET) Received: from vestlia.uninett.no (localhost [127.0.0.1]) by vestlia.uninett.no (Postfix) with ESMTP id 236E541A37 for ; Wed, 14 Jan 2009 01:00:50 +0100 (CET) Date: Fri, 01 Feb 2008 15:20:54 +0100 (CET) Message-Id: <20080201.152054.104033544.he@uninett.no> To: landonf@bikemonkey.org Cc: ltning@anduin.net, freebsd-java@freebsd.org Subject: Re: Sparc64 From: Havard Eidnes In-Reply-To: References: <6643EEC4-3DEE-479D-9EA1-F907CB31B345@bikemonkey.org> X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Feb__1_15_20_54_2008_627)--" Content-Transfer-Encoding: 7bit ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > What's the status of svr4 emulation on sparc64? I forgot a critical = > piece; One needs a bootstrap JVM, and bootstrapping off of Sun's VM = > would make things easier. One can use a bootstrap JVM from another host (and architecture) and some scripts which use ssh to the bootstrap host and sharing files via NFS -- that's how I bootstrapped the NetBSD/amd64 version using the NetBSD/i386 version. I've attached my notes and the scripts I used to do this. (Admittedly, I've since tweaked the scripts to use environment variables, so they've not been tested in their present form...) Best regards, - H=E5vard ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit My notes for using a JVM on NetBSD/i386 to bootstrap JVM on NetBSD/amd64: I used a set of script wrappers which ssh to another machine (in my case running NetBSD/i386, with its native java installed) which has the same directory tree available via NFS as on the target (amd64) machine, using the exact same paths. Substitute scripts were made for java, javac, javah, and jar, and the ALT_BOOTDIR was pointed to the directory tree containing those scripts. Some peculiarities were discovered: o java needs to be able to read from stdin. This means you can't use "ssh -n", which again means that the build job has to run in the foreground with access to the tty (yuk...). o javah gets at least once passed a class name with a $ in it. This causes issues because we get a double shell interpretation which leads to variable expansion; once on the local machine, once on the remote. To work around that problem I borrowed the "shquote" shell function from pkgsrc and tweaked the argument list using it (it's included). o the jar script sleeps 10 seconds because otherwise it would trip over "stale NFS file handle" problems when some files were copied in place (replaced) on the NFS server just prior to using "jar". Attached below is the set of scripts which I placed in /usr/pkg/java/ as boot-java/, packaged up as "boot-java.tar.gz". Set JAVA_BOOTHOST (your boot host) and JAVA_BOOTDIR (top of java directory tree on JAVA_BOOTHOST) in the environment to suit your config. I also include the "build-java" shell script I used (to be executed from the top of the Java source tree). ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="boot-java.tar.gz" H4sIABgqo0cAA+2a207bQBCGuY2fYutYmERKvD5LTUNLVVVtb5AoqpBYSJzY4ACNqTehFxCevWs7 do7kABvTNvNJ8WFtz2w8/me8m7SCoFe5cu6cnc2BsYFt02RrrNomHl+n7KjYVm3LtDVss3YVG6a+ Y26wTxl92nNChHZ8b/F5y47/o7TS+CutTndDPlaMv4ktzcRYi+KvatiA+OfARPyVaKPN3QeT88L4 a+zYMP5Gcp6q6Sp7Drj3ZA5bHv/iGxRHnvqC4Nabt7/dpuC1/QBR6qNKF0n33w5+HDQ+Hh4efzn8 fjxARCjIbRfJkivX2HJ0+NPXo4E8eoqQjETpg4j2dzWBky3htW/Wf8is/n3uPpbp39Cskf4NFfSf I+P6ryKlT0Pl9vpSSZ6I7NmgfuWm06pGJ10EIXJQpxsrsobcQChQ/1c/6HmsxRGFghNe0jrbZCsk DQ+5ouAGXY9vivHjtBD54ZJlxsxtUaKZ1T9/H0vrvzFW/20c6181dNB/Diys/8+V0nTtf6GdLZJj 7kzrP9yAj2X617E5M/6zLQz6zwH0dAK48bxbpOJExcMdDoU75DYyCCE/vJg54/9H3j6W1n9LT/Wv W6oe13/2IgD6z4G1x/8jWU4OFq7c64paNat4vSmA9c2B2nkyU/+5q3+F+q9l87+6aWvJ+79lgv5z YGPlf7Gc138JWM0eJIc1ma3//BPA8vn/sfqf/P6n6boF+s+B9cb/q1frpVMAa5sCaW+COfP/ub// G7ox0r+WvP+bGOp/HvyN8/+rp4ZVfwJ4lsWtSDhzYszdR6R/yzCe0r9q6Fb2/x/TTOb/NQPqfx4U 0ecw+ImYImjYFoQiF4QiSnMCUxLbSzjyev2wS1n6aDnta3rjUN9zkdN1UZIk0J0X0k7QRcFFdF2U ZLIEUuXVtaHBvZJwLwz7hd6yjBFlpHq0GEw0U8+ts89AyFobzEKDda8uqZNt0amixJao4iGVKucn iiLOnNKI3Tdov0V7dZkqZO+UNIkoEXJGSgohRFUu5eyqtkM9JKUu2R3JjpTjy0h0XbmUtaakt63e lOJUK55kRkT0MLQ47Koozeub2JwxWquNvC9wKY5cLTLhUac99T1TE1Pf85Q8kiI5J7ukTPZIidyT AXkgNfKO7JP3RCaIFM7KD2X2EcVF/WJ3Od0h4vK+sZi/tjoBAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAYD5/AAOW0OwAUAAA ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=build-java #!/usr/bin/env bash set -x export MAKE_VERBOSE=t unset LANG unset JAVA_HOME unset CLASSPATH unset LD_LIBRARY_PATH export ALT_MOTIF_DIR=/usr/pkg # export ALT_NSPR_PATH=/usr/pkg export ALT_NSPR_HEADERS_PATH=/usr/pkg/include/firefox/nspr export ALT_MOZILLA_HEADERS_PATH=/usr/pkg/include/firefox export SKIP_COMPARE_IMAGES=YES export DONT_ENABLE_IPV6=YES export ALT_BOOTDIR=/usr/pkg/java/boot-java # export ALT_BOOTDIR=/usr/pkg/java/jdk-1.5.0 # export ALT_BOOTDIR=/usr/pkg/java/sun-1.5 cd control/make/ gmake ----Next_Part(Fri_Feb__1_15_20_54_2008_627)---- ----Next_Part(Wed_Jan_14_00_57_32_2009_273)---- From owner-freebsd-java@FreeBSD.ORG Wed Jan 14 00:44: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 B1EB0106566B for ; Wed, 14 Jan 2009 00:44:59 +0000 (UTC) (envelope-from he@uninett.no) Received: from smistad.uninett.no (smistad.uninett.no [IPv6:2001:700:1:0:211:9ff:fe8c:7386]) by mx1.freebsd.org (Postfix) with ESMTP id B78968FC08 for ; Wed, 14 Jan 2009 00:44:58 +0000 (UTC) (envelope-from he@uninett.no) Received: from smistad.uninett.no (smistad.uninett.no [158.38.62.77]) by smistad.uninett.no (Postfix) with ESMTP id B8F7921DC43; Wed, 14 Jan 2009 01:44:57 +0100 (CET) Date: Wed, 14 Jan 2009 01:44:57 +0100 (CET) Message-Id: <20090114.014457.107701463.he@uninett.no> To: kjkoster@kjkoster.org From: Havard Eidnes In-Reply-To: <9205CDBD-A78B-465E-A559-1762D1223FFC@kjkoster.org> References: <20090113165119.GD542@googlemail.com> <9205CDBD-A78B-465E-A559-1762D1223FFC@kjkoster.org> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Jan_14_01_44_57_2009_902)--" Content-Transfer-Encoding: 7bit Cc: netbsd-java@NetBSD.org, milos.negovanovic@googlemail.com, freebsd-java@freebsd.org Subject: Re: lang/sun-jdk15 on amd64 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: Wed, 14 Jan 2009 00:45:00 -0000 ----Next_Part(Wed_Jan_14_01_44_57_2009_902)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable [[ re-posted with the correct MIME body type for the attachment -- sorry! ]] > >> No idea, sorry. I always use the native build, because if I > >> run into problems, they can be fixed by the Java porting > >> team. The linux package is not open to such fixes. > > > > How do you manage to build native jdk? It depends on linux > > emulated jdk package (which core dumps for me). > > Hum. You ran into the bootstrap problem. Blech, I remember that one = > from way back when I hacked at the DEC Alpha port a little. = > Technically, building the JDK depends on any working JVM, not the = > linux one per se. > > There are two paths for you to take; find a working JVM for your box = = > and edit the port dependency so that it uses that JVM, or do the = > bootstrap on another machine. Actually, only a few java commands are needed to be run by another java instance during the build. The attached documents how I went about getting a native jdk15 running for amd64. It can be done, but it's a little quirky to set up. Regards, - H=E5vard ----Next_Part(Wed_Jan_14_01_44_57_2009_902)-- Content-Type: Message/Rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Return-Path: he@uninett.no Delivery-Date: Wed, 14 Jan 2009 00:53:16 +0100 Return-Path: X-Original-To: he@smistad.uninett.no Delivered-To: he@smistad.uninett.no Received: from tyholt.uninett.no (tyholt.uninett.no [IPv6:2001:700:1::eecb]) by smistad.uninett.no (Postfix) with ESMTP id 3F46C21DC43 for ; Wed, 14 Jan 2009 00:53:16 +0100 (CET) Received: from dike1b.uninett.no (dike1b.uninett.no [IPv6:2001:700:0:513::65]) by tyholt.uninett.no (Postfix) with ESMTP id 3767E2BACAE for ; Wed, 14 Jan 2009 00:53:16 +0100 (CET) X-Maildike-Whitelisted: Whitelisted client (global): 158.38.160.195 Received: from vestlia.uninett.no (vestlia.uninett.no [158.38.160.195]) by dike1b.uninett.no (Postfix) with ESMTP id 2FC80A20064 for ; Wed, 14 Jan 2009 00:53:16 +0100 (CET) Received: from vestlia.uninett.no (localhost [127.0.0.1]) by vestlia.uninett.no (Postfix) with ESMTP id 236E541A37 for ; Wed, 14 Jan 2009 01:00:50 +0100 (CET) Date: Fri, 01 Feb 2008 15:20:54 +0100 (CET) Message-Id: <20080201.152054.104033544.he@uninett.no> To: landonf@bikemonkey.org Cc: ltning@anduin.net, freebsd-java@freebsd.org Subject: Re: Sparc64 From: Havard Eidnes In-Reply-To: References: <6643EEC4-3DEE-479D-9EA1-F907CB31B345@bikemonkey.org> X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Feb__1_15_20_54_2008_627)--" Content-Transfer-Encoding: 7bit ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > What's the status of svr4 emulation on sparc64? I forgot a critical = > piece; One needs a bootstrap JVM, and bootstrapping off of Sun's VM = > would make things easier. One can use a bootstrap JVM from another host (and architecture) and some scripts which use ssh to the bootstrap host and sharing files via NFS -- that's how I bootstrapped the NetBSD/amd64 version using the NetBSD/i386 version. I've attached my notes and the scripts I used to do this. (Admittedly, I've since tweaked the scripts to use environment variables, so they've not been tested in their present form...) Best regards, - H=E5vard ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit My notes for using a JVM on NetBSD/i386 to bootstrap JVM on NetBSD/amd64: I used a set of script wrappers which ssh to another machine (in my case running NetBSD/i386, with its native java installed) which has the same directory tree available via NFS as on the target (amd64) machine, using the exact same paths. Substitute scripts were made for java, javac, javah, and jar, and the ALT_BOOTDIR was pointed to the directory tree containing those scripts. Some peculiarities were discovered: o java needs to be able to read from stdin. This means you can't use "ssh -n", which again means that the build job has to run in the foreground with access to the tty (yuk...). o javah gets at least once passed a class name with a $ in it. This causes issues because we get a double shell interpretation which leads to variable expansion; once on the local machine, once on the remote. To work around that problem I borrowed the "shquote" shell function from pkgsrc and tweaked the argument list using it (it's included). o the jar script sleeps 10 seconds because otherwise it would trip over "stale NFS file handle" problems when some files were copied in place (replaced) on the NFS server just prior to using "jar". Attached below is the set of scripts which I placed in /usr/pkg/java/ as boot-java/, packaged up as "boot-java.tar.gz". Set JAVA_BOOTHOST (your boot host) and JAVA_BOOTDIR (top of java directory tree on JAVA_BOOTHOST) in the environment to suit your config. I also include the "build-java" shell script I used (to be executed from the top of the Java source tree). ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="boot-java.tar.gz" H4sIABgqo0cAA+2a207bQBCGuY2fYutYmERKvD5LTUNLVVVtb5AoqpBYSJzY4ACNqTehFxCevWs7 do7kABvTNvNJ8WFtz2w8/me8m7SCoFe5cu6cnc2BsYFt02RrrNomHl+n7KjYVm3LtDVss3YVG6a+ Y26wTxl92nNChHZ8b/F5y47/o7TS+CutTndDPlaMv4ktzcRYi+KvatiA+OfARPyVaKPN3QeT88L4 a+zYMP5Gcp6q6Sp7Drj3ZA5bHv/iGxRHnvqC4Nabt7/dpuC1/QBR6qNKF0n33w5+HDQ+Hh4efzn8 fjxARCjIbRfJkivX2HJ0+NPXo4E8eoqQjETpg4j2dzWBky3htW/Wf8is/n3uPpbp39Cskf4NFfSf I+P6ryKlT0Pl9vpSSZ6I7NmgfuWm06pGJ10EIXJQpxsrsobcQChQ/1c/6HmsxRGFghNe0jrbZCsk DQ+5ouAGXY9vivHjtBD54ZJlxsxtUaKZ1T9/H0vrvzFW/20c6181dNB/Diys/8+V0nTtf6GdLZJj 7kzrP9yAj2X617E5M/6zLQz6zwH0dAK48bxbpOJExcMdDoU75DYyCCE/vJg54/9H3j6W1n9LT/Wv W6oe13/2IgD6z4G1x/8jWU4OFq7c64paNat4vSmA9c2B2nkyU/+5q3+F+q9l87+6aWvJ+79lgv5z YGPlf7Gc138JWM0eJIc1ma3//BPA8vn/sfqf/P6n6boF+s+B9cb/q1frpVMAa5sCaW+COfP/ub// G7ox0r+WvP+bGOp/HvyN8/+rp4ZVfwJ4lsWtSDhzYszdR6R/yzCe0r9q6Fb2/x/TTOb/NQPqfx4U 0ecw+ImYImjYFoQiF4QiSnMCUxLbSzjyev2wS1n6aDnta3rjUN9zkdN1UZIk0J0X0k7QRcFFdF2U ZLIEUuXVtaHBvZJwLwz7hd6yjBFlpHq0GEw0U8+ts89AyFobzEKDda8uqZNt0amixJao4iGVKucn iiLOnNKI3Tdov0V7dZkqZO+UNIkoEXJGSgohRFUu5eyqtkM9JKUu2R3JjpTjy0h0XbmUtaakt63e lOJUK55kRkT0MLQ47Koozeub2JwxWquNvC9wKY5cLTLhUac99T1TE1Pf85Q8kiI5J7ukTPZIidyT AXkgNfKO7JP3RCaIFM7KD2X2EcVF/WJ3Od0h4vK+sZi/tjoBAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAYD5/AAOW0OwAUAAA ----Next_Part(Fri_Feb__1_15_20_54_2008_627)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=build-java #!/usr/bin/env bash set -x export MAKE_VERBOSE=t unset LANG unset JAVA_HOME unset CLASSPATH unset LD_LIBRARY_PATH export ALT_MOTIF_DIR=/usr/pkg # export ALT_NSPR_PATH=/usr/pkg export ALT_NSPR_HEADERS_PATH=/usr/pkg/include/firefox/nspr export ALT_MOZILLA_HEADERS_PATH=/usr/pkg/include/firefox export SKIP_COMPARE_IMAGES=YES export DONT_ENABLE_IPV6=YES export ALT_BOOTDIR=/usr/pkg/java/boot-java # export ALT_BOOTDIR=/usr/pkg/java/jdk-1.5.0 # export ALT_BOOTDIR=/usr/pkg/java/sun-1.5 cd control/make/ gmake ----Next_Part(Fri_Feb__1_15_20_54_2008_627)---- ----Next_Part(Wed_Jan_14_01_44_57_2009_902)---- From owner-freebsd-java@FreeBSD.ORG Wed Jan 14 12:50:13 2009 Return-Path: Delivered-To: java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE6D810657F2; Wed, 14 Jan 2009 12:50:13 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A4A4F8FC27; Wed, 14 Jan 2009 12:50:13 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (edwin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0ECoDgM044824; Wed, 14 Jan 2009 12:50:13 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0ECoDNn044814; Wed, 14 Jan 2009 12:50:13 GMT (envelope-from edwin) Date: Wed, 14 Jan 2009 12:50:13 GMT Message-Id: <200901141250.n0ECoDNn044814@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, java@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/130542: java/jdk16-doc changed distifo 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: Wed, 14 Jan 2009 12:50:14 -0000 Synopsis: java/jdk16-doc changed distifo Responsible-Changed-From-To: freebsd-ports-bugs->java Responsible-Changed-By: edwin Responsible-Changed-When: Wed Jan 14 12:50:13 UTC 2009 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=130542 From owner-freebsd-java@FreeBSD.ORG Wed Jan 14 13:01:23 2009 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25E55106566B for ; Wed, 14 Jan 2009 13:01:23 +0000 (UTC) (envelope-from jsa@wickedmachine.net) Received: from mephisto.wickedmachine.net (tn-76-7-136-60.dhcp.embarqhsd.net [76.7.136.60]) by mx1.freebsd.org (Postfix) with ESMTP id 0FA108FC30 for ; Wed, 14 Jan 2009 13:01:19 +0000 (UTC) (envelope-from jsa@wickedmachine.net) Received: from mephisto.wickedmachine.net (localhost [127.0.0.1]) by mephisto.wickedmachine.net (8.14.3/8.14.3) with ESMTP id n0ECf1cu074241; Wed, 14 Jan 2009 07:41:02 -0500 (EST) (envelope-from jsa@wickedmachine.net) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-send-pr-version: gtk-send-pr 0.4.9 X-GNATS-Notify: Date: Wed, 14 Jan 2009 07:41:02 -0500 From: "Joseph S. Atkinson" Message-Id: <1231936862.63728@mephisto.wickedmachine.net> To: "FreeBSD gnats submit" Cc: java@FreeBSD.org Subject: java/jdk16-doc changed distifo 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: Wed, 14 Jan 2009 13:01:23 -0000 >Submitter-Id: current-users >Originator: Joseph S. Atkinson >Organization: Kinda messy >Confidential: no >Synopsis: java/jdk16-doc changed distifo >Severity: non-critical >Priority: low >Category: ports >Class: update >Release: FreeBSD 7.1-RELEASE-p2 i386 >Environment: System: FreeBSD 7.1-RELEASE-p2 #2: Wed Jan 14 02:45:00 EST 2009 jsa@mephisto.wickedmachine.net:/usr/obj/usr/src/sys/MEPHISTO >Description: About to study Java for college classes, decided to install documentation. Following the instructions given, you no longer recieve the distfile required. Sun appears to have moved to versioning (and pluralizing!) the docs as well... >How-To-Repeat: Download and place distfile as per instructions given by `make`, then run `make install` again. It will not detect the distfile. Simply renaming the distfile to the appropriate title will show a checksum error. >Fix: --- jdk16-doc.diff begins here --- --- Makefile.orig 2009-01-14 07:04:02.000000000 -0500 +++ Makefile 2009-01-14 07:07:13.000000000 -0500 @@ -7,10 +7,10 @@ PORTNAME= jdk-doc PORTVERSION= ${JDK_VERSION:S/_/./g} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= java MASTER_SITES= # -DISTNAME= jdk-6-doc +DISTNAME= jdk-6u10-docs MAINTAINER= java@FreeBSD.org COMMENT= Java Development Kit ${JDK_MAJOR_VER} Documentation --- distinfo.orig 2009-01-14 07:07:31.000000000 -0500 +++ distinfo 2009-01-14 07:07:43.000000000 -0500 @@ -1,3 +1,3 @@ -MD5 (jdk-6-doc.zip) = 6596298c9edb02bfe8de14892405e02e -SHA256 (jdk-6-doc.zip) = 30df77761591681cbb259dce028a728926813fcd18e7f87ad9631f64fe7f08bd -SIZE (jdk-6-doc.zip) = 54898268 +MD5 (jdk-6u10-docs.zip) = 01a8f6b06f6a5396a96dd656162710e6 +SHA256 (jdk-6u10-docs.zip) = 429e805af7d8c01f357e3ae2c600a0913b17f207b35f7f9f3b22cdcea6476481 +SIZE (jdk-6u10-docs.zip) = 58890428 --- jdk16-doc.diff ends here --- I also considered using the following or something similar: DISTNAME= jdk-6u${JDK_UPDATE}-docs JDK_UPDATE= 10 From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 13:33:49 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 5DF37106567F for ; Fri, 16 Jan 2009 13:33:49 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id F0DBA8FC0C for ; Fri, 16 Jan 2009 13:33:48 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out2.tiscali.nl with smtp id 1LNoaS-0003iU-Qp for ; Fri, 16 Jan 2009 14:18:12 +0100 Received: (qmail 1806 invoked from network); 16 Jan 2009 12:51:30 -0000 Received: from localhost (HELO 82-170-177-25.ip.telfort.nl) (127.0.0.1) by localhost with SMTP; 16 Jan 2009 12:51:30 -0000 Date: Fri, 16 Jan 2009 13:51:29 +0100 From: "Ronald Klop" Cc: freebsd-java@freebsd.org Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.63 (FreeBSD) Subject: 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 13:33:50 -0000 Hi, I just build openjdk 7 on FreeBSD 7.1-amd64. It builds after I found this http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-August/000006.html. I've problems running something which makes a network connection. java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:380) at java.net.Socket.connect(Socket.java:569) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.(Socket.java:416) at java.net.Socket.(Socket.java:232) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:268) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2745) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:169) at nl.base.sql.connect.ConnectionUtils.connectIntern(ConnectionUtils.java:101) at nl.base.sql.connect.ConnectionUtils.createConnectionMySQL(ConnectionUtils.java:95) at nl.base.sql.connect.ConnectionUtils.getConnection(ConnectionUtils.java:44) at nl.base.sql.dbpool.DBConnectionInfo.(DBConnectionInfo.java:36) I don't set any special socket option. Not in Java and I don't have special settings in FreeBSD also. Running GENERIC kernel. I'm using ipv4. This happens if I make a connection to mysql, but also in the subclipse plugin in eclipse if I connect to the svn server. Is this a known issue? Can I solve this? Or provide more information? Ronald. From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 13:50:35 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 795D91065672 for ; Fri, 16 Jan 2009 13:50:35 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1938FC20 for ; Fri, 16 Jan 2009 13:50:35 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp id 1LNp5l-0005Kt-GA for ; Fri, 16 Jan 2009 14:50:33 +0100 Received: (qmail 2039 invoked from network); 16 Jan 2009 13:50:32 -0000 Received: from localhost (HELO 82-170-177-25.ip.telfort.nl) (127.0.0.1) by localhost with SMTP; 16 Jan 2009 13:50:32 -0000 Date: Fri, 16 Jan 2009 14:50:32 +0100 To: freebsd-java@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.63 (FreeBSD) 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 13:50:35 -0000 On Fri, 16 Jan 2009 13:51:29 +0100, Ronald Klop wrote: > > Hi, > > I just build openjdk 7 on FreeBSD 7.1-amd64. > It builds after I found this > http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-August/000006.html. > > I've problems running something which makes a network connection. > java.net.SocketException: Invalid argument > at java.net.PlainSocketImpl.socketConnect(Native Method) > at > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) > > I don't set any special socket option. Not in Java and I don't have > special settings in FreeBSD also. Running GENERIC kernel. > > I'm using ipv4. This happens if I make a connection to mysql, but also > in the subclipse plugin in eclipse if I connect to the svn server. > Is this a known issue? Can I solve this? Or provide more information? > > Ronald. I spoke to soon. http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-October/000102.html 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? Greetings, Ronald. (who is now quite happily running tomcat and eclipse in openjdk 7) 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. From owner-freebsd-java@FreeBSD.ORG Fri Jan 16 19:19:51 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 2B278106566B for ; Fri, 16 Jan 2009 19:19:51 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (mail1.intricatesoftware.com [96.56.4.132]) by mx1.freebsd.org (Postfix) with ESMTP id B3A748FC0A for ; Fri, 16 Jan 2009 19:19:50 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id n0GJILsa018125; Fri, 16 Jan 2009 14:18:23 -0500 (EST) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.3/8.14.3) with ESMTP id n0GJIK7M026122; Fri, 16 Jan 2009 14:18:21 -0500 (EST) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.3/8.14.3/Submit) id n0GJIHxN025241; Fri, 16 Jan 2009 14:18:18 -0500 (EST) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to lists@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org Date: Fri, 16 Jan 2009 14:18:17 -0500 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901161418.17792.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Ronald Klop Subject: Re: openjdk 7 error in socket X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 19:19:51 -0000 Hello Ronald, On Friday 16 January 2009 8:50:32 am Ronald Klop wrote: > On Fri, 16 Jan 2009 13:51:29 +0100, Ronald Klop > wrote: > > > > > Hi, > > > > I just build openjdk 7 on FreeBSD 7.1-amd64. > > It builds after I found this > > http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-August/000006.html. > > > > I've problems running something which makes a network connection. > > java.net.SocketException: Invalid argument > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > at > > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) > > > > > I don't set any special socket option. Not in Java and I don't have > > special settings in FreeBSD also. Running GENERIC kernel. > > > > I'm using ipv4. This happens if I make a connection to mysql, but also > > in the subclipse plugin in eclipse if I connect to the svn server. > > Is this a known issue? Can I solve this? Or provide more information? > > > > Ronald. > > I spoke to soon. > http://mail.openjdk.java.net/pipermail/bsd-port-dev/2008-October/000102.html > 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? > If you are not using IPv6 with the OpenJDK 7 build, then I recommend building with DONT_ENABLE_IPV6="YES" set. In addition to the information Frank Behrens provided please read this too: http://marc.info/?l=freebsd-java&m=122421134821461&w=2 Regards, -Kurt