From owner-freebsd-java@FreeBSD.ORG Sun May 26 00:12:05 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6FBC781B; Sun, 26 May 2013 00:12:05 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4A247FD1; Sun, 26 May 2013 00:12:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4Q0C5Ci096774; Sun, 26 May 2013 00:12:05 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4Q0C4jc096773; Sun, 26 May 2013 00:12:04 GMT (envelope-from linimon) Date: Sun, 26 May 2013 00:12:04 GMT Message-Id: <201305260012.r4Q0C4jc096773@freefall.freebsd.org> To: bugReporter@ib-haakh.de, linimon@FreeBSD.org, freebsd-java@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: ports/178856: java/openjdk6, java/openjdk7: Java fails to print when lpr is removed from base system X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2013 00:12:05 -0000 Synopsis: java/openjdk6, java/openjdk7: Java fails to print when lpr is removed from base system State-Changed-From-To: feedback->open State-Changed-By: linimon State-Changed-When: Sun May 26 00:11:49 UTC 2013 State-Changed-Why: Annotate which ports this PR applies to. http://www.freebsd.org/cgi/query-pr.cgi?pr=178856 From owner-freebsd-java@FreeBSD.ORG Sun May 26 00:20:01 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BEA79999 for ; Sun, 26 May 2013 00:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B098271 for ; Sun, 26 May 2013 00:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4Q0K1oR097892 for ; Sun, 26 May 2013 00:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4Q0K11l097891; Sun, 26 May 2013 00:20:01 GMT (envelope-from gnats) Date: Sun, 26 May 2013 00:20:01 GMT Message-Id: <201305260020.r4Q0K11l097891@freefall.freebsd.org> To: freebsd-java@FreeBSD.org Cc: From: Mark Linimon Subject: Re: ports/178856: Java fails to print when lpr is removed from base system X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mark Linimon List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2013 00:20:01 -0000 The following reply was made to PR ports/178856; it has been noted by GNATS. From: Mark Linimon To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/178856: Java fails to print when lpr is removed from base system Date: Sat, 25 May 2013 19:11:44 -0500 ----- Forwarded message from "Dr. A. Haakh" ----- Date: Fri, 24 May 2013 15:51:11 +0200 From: "Dr. A. Haakh" To: linimon@FreeBSD.org Subject: Re: ports/178856: Java fails to print when lpr is removed from base system User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17 Both openjdk6 and openjdk7 current versions. See sources of openjdk6: execCmd[n++] = "/usr/bin/lpr"; in work/jdk/src/share/classes/sun/print/PSPrinterJob.java and execCmd[n++] = "/usr/bin/lpr"; in work/jdk/src/solaris/classes/sun/print/UnixPrintJob.java openjdk7 should look similar. ----- End forwarded message ----- From owner-freebsd-java@FreeBSD.ORG Mon May 27 11:06:49 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9BB2D363 for ; Mon, 27 May 2013 11:06:49 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 72F2E6CA for ; Mon, 27 May 2013 11:06:49 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4RB6nvs016074 for ; Mon, 27 May 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4RB6mxI016072 for freebsd-java@FreeBSD.org; Mon, 27 May 2013 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 May 2013 11:06:48 GMT Message-Id: <201305271106.r4RB6mxI016072@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 Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 11:06:49 -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 ports/178856 java java/openjdk6, java/openjdk7: Java fails to print when o ports/178728 java [UPDATE] devel/apache-ant to v1.9.0 o ports/178647 java java/openjdk6 does not build (without extra hack) o ports/178199 java java/openjdk6 regression amd64/clang o ports/177802 java Could not update openfire because of problem in java/o o ports/177067 java java/openjdk6 b27_2 bug o ports/175300 java java/jamvm fails to compile on ARM6 (raspberry-pi) o ports/174826 java java/openjdk6: gmake[5]: *** [/usr/ports/java/openjdk6 o ports/174825 java java/openjdk6: fails to build on i386 (64-bit mode not o ports/173603 java java/icedtea-web starts javaws incorrectly o ports/173592 java java/openjdk6 fails on FreeBSD_9_1_RC2 o ports/173210 java java/openjdk6 - use better src placement o java/172962 java Sig11 while compiling OpenJDK6-b26 using clang o ports/171014 java [patch] Correct java/openjdk6 Dependency Declaration o ports/167903 java [PATCH] java/openjdk6: Fix build failure in 8.3 jail r o ports/164941 java [UPDATE] [NEW PORTS] java/classpath-initial, including o ports/162991 java java/openjdk6 fails to build o java/162522 java OpenJDK 6 is not setting close on exec o java/160553 java Jaikoz java based audio tagger core dumps o ports/159787 java java/openjdk6 nio muti-thread bug o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c f java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/140002 java java/openjdk6: jconsole dumps tomcat when contacting j o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones 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 ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to 29 problems total. From owner-freebsd-java@FreeBSD.ORG Tue May 28 12:01:37 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 91106D3F for ; Tue, 28 May 2013 12:01:37 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 320412C8 for ; Tue, 28 May 2013 12:01:37 +0000 (UTC) Received: from [82.113.98.221] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UhIam-00083J-A2; Tue, 28 May 2013 14:01:28 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r4SC1PR8001931; Tue, 28 May 2013 14:01:26 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r4SC1Ov0001930; Tue, 28 May 2013 14:01:24 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 28 May 2013 14:01:24 +0200 From: Matthias Apitz To: freebsd-java@freebsd.org Subject: java && IPv6 Message-ID: <20130528120123.GA1687@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.98.221 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 12:01:37 -0000 Hello, I'm a C-programmer and want to do something in Java now; I want to write an IPv6 server in java which should do what my C written IPv6-server does: - create the two sockets for IPv4 and IPv6 - bind, listen - monitor the sockets with "poll" and accept the connection on the socket which is ready to be accepted; see the C-source at http://www.unixarea.de/ipv6-server.c.txt it can be compiled and run and creates LISTEN on the two sockets, see netstat output: ~/c]$ gcc ipv6-server.c ~/c]$ ./a.out family: 28 (PF_INET6) sin6_addr: [::] LISTEN: IPv6 ... family: 2 (PF_INET) sin_addr: [0.0.0.0] LISTEN: IPv4 ... ~/c]$ netstat -an | fgrep 39999 tcp4 0 0 *.39999 *.* LISTEN tcp6 0 0 *.39999 *.* LISTEN when I do something similar on the same FreeBSD host in Java, I can't manage to create the IPv6 LISTEN on the IP addr "::"; IPv4 works fine, when I use as addr 'null'; the source is here: http://www.unixarea.de/ipv6.java.txt ~/java]$ javac ipv6.java ~/java]$ java -version java version "1.6.0_03-p4" Java(TM) SE Runtime Environment (build 1.6.0_03-p4-guru_22_apr_2011_14_10-b00) Java HotSpot(TM) Client VM (build 1.6.0_03-p4-guru_22_apr_2011_14_10-b00, mixed mode) ~/java]$ java -Djava.net.preferIPv6Stack=true ipv6 java.net.SocketException: Protocol family unavailable at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.(ServerSocket.java:185) at ipv6$1.run(ipv6.java:18) at java.lang.Thread.run(Thread.java:619) Any Java guru out here? Any comments on my Java class? Thanks matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards From owner-freebsd-java@FreeBSD.ORG Tue May 28 12:06:08 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DA3D2E57 for ; Tue, 28 May 2013 12:06:08 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-pb0-x22e.google.com (mail-pb0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id B9A10319 for ; Tue, 28 May 2013 12:06:08 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id rq2so7794116pbb.33 for ; Tue, 28 May 2013 05:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=theWMsQVnGBjgCT2JWKJgrrmdMabYFPQowZMg4rGb0g=; b=Gb+tQ/A4i861bGVgq/1b+iLXjpyo1ZeBcWW8dR4Gg05oDsiXKp3MP6XDxzEZ1Lqdoz G+d45t6+eo8NFIujfAfRaDuh+mG1RBjali7fHzu6Enh2MC7YO4N8iRl4+zP1ZvNDi71k y5H8IBb8bGyBy2jywrdDN1+Bo3Ob0X7SeeKl1UP4Hz0sbv844a1cuXQ5vDRDp0+JeruQ 3pttZUh+H1t1lNBpS9+Iz2aerQWQwRWoCv6OeMCXMqiF66AnR7hf60N7Kq7T0pElZT0j XZXY7lLLZa8ExcJGY0rMRdmmLxvscbn2DMXPy+HZ+YDo9NBsgf/zwQV7Ww17fInO0obA MJrw== MIME-Version: 1.0 X-Received: by 10.67.5.8 with SMTP id ci8mr33535663pad.48.1369742768494; Tue, 28 May 2013 05:06:08 -0700 (PDT) Received: by 10.68.239.103 with HTTP; Tue, 28 May 2013 05:06:08 -0700 (PDT) In-Reply-To: <20130528120123.GA1687@tiny.Sisis.de> References: <20130528120123.GA1687@tiny.Sisis.de> Date: Tue, 28 May 2013 15:06:08 +0300 Message-ID: Subject: Re: java && IPv6 From: Alexander Yerenkow To: Matthias Apitz Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 12:06:08 -0000 Did your jdk built with ipv6 support? 2013/5/28 Matthias Apitz > > Hello, > > I'm a C-programmer and want to do something in Java now; > > I want to write an IPv6 server in java which should do what my C written > IPv6-server does: > > - create the two sockets for IPv4 and IPv6 > - bind, listen > - monitor the sockets with "poll" and accept the connection on the > socket which is ready to be accepted; > > see the C-source at http://www.unixarea.de/ipv6-server.c.txt > it can be compiled and run and creates LISTEN on the two sockets, see > netstat output: > > ~/c]$ gcc ipv6-server.c > ~/c]$ ./a.out > family: 28 (PF_INET6) sin6_addr: [::] > LISTEN: IPv6 ... > family: 2 (PF_INET) sin_addr: [0.0.0.0] > LISTEN: IPv4 ... > > ~/c]$ netstat -an | fgrep 39999 > tcp4 0 0 *.39999 *.* LISTEN > tcp6 0 0 *.39999 *.* LISTEN > > when I do something similar on the same FreeBSD host in Java, I can't > manage to create the IPv6 LISTEN on the IP addr "::"; IPv4 works fine, > when I use as addr 'null'; > the source is here: http://www.unixarea.de/ipv6.java.txt > > ~/java]$ javac ipv6.java > ~/java]$ java -version > java version "1.6.0_03-p4" > Java(TM) SE Runtime Environment (build > 1.6.0_03-p4-guru_22_apr_2011_14_10-b00) > Java HotSpot(TM) Client VM (build 1.6.0_03-p4-guru_22_apr_2011_14_10-b00, > mixed mode) > ~/java]$ java -Djava.net.preferIPv6Stack=true ipv6 > java.net.SocketException: Protocol family unavailable > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) > at java.net.ServerSocket.bind(ServerSocket.java:319) > at java.net.ServerSocket.(ServerSocket.java:185) > at ipv6$1.run(ipv6.java:18) > at java.lang.Thread.run(Thread.java:619) > > Any Java guru out here? Any comments on my Java class? Thanks > > matthias > > -- > Sent from my FreeBSD netbook > > Matthias Apitz | - No system with backdoors like > Apple/Android > E-mail: guru@unixarea.de | - Never being an iSlave > WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF > in E-mail > phone: +49-170-4527211 | - Respect for open standards > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > -- Regards, Alexander Yerenkow From owner-freebsd-java@FreeBSD.ORG Tue May 28 12:09:06 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5C8CBF23 for ; Tue, 28 May 2013 12:09:06 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 23B8D342 for ; Tue, 28 May 2013 12:09:06 +0000 (UTC) Received: from [82.113.98.221] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UhIi8-00038p-JO; Tue, 28 May 2013 14:09:04 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r4SC924t001954; Tue, 28 May 2013 14:09:02 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r4SC91nX001953; Tue, 28 May 2013 14:09:01 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 28 May 2013 14:09:01 +0200 From: Matthias Apitz To: Alexander Yerenkow Subject: Re: java && IPv6 Message-ID: <20130528120900.GA1946@tiny.Sisis.de> References: <20130528120123.GA1687@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.98.221 Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 12:09:06 -0000 El día Tuesday, May 28, 2013 a las 03:06:08PM +0300, Alexander Yerenkow escribió: > Did your jdk built with ipv6 support? I do not remember and the host where the ports have been build in 2011 has gone; how can I check this? matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards From owner-freebsd-java@FreeBSD.ORG Tue May 28 12:27:03 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 83CC535A for ; Tue, 28 May 2013 12:27:03 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 4AD86632 for ; Tue, 28 May 2013 12:27:02 +0000 (UTC) Received: from [82.113.98.221] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UhIzV-0003JU-3H; Tue, 28 May 2013 14:27:01 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r4SCQwO4002268; Tue, 28 May 2013 14:26:59 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r4SCQvHW002267; Tue, 28 May 2013 14:26:57 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 28 May 2013 14:26:57 +0200 From: Matthias Apitz To: Alexander Yerenkow Subject: Re: java && IPv6 Message-ID: <20130528122656.GA2181@tiny.Sisis.de> References: <20130528120123.GA1687@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.98.221 Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 12:27:03 -0000 El día Tuesday, May 28, 2013 a las 03:06:08PM +0300, Alexander Yerenkow escribió: > Did your jdk built with ipv6 support? I've checked the same class with openjdk7 on my 10-CURRENT netbook: $ java -version openjdk version "1.7.0_17" OpenJDK Runtime Environment (build 1.7.0_17-b02) OpenJDK Client VM (build 23.7-b01, mixed mode) $ netstat -an | fgrep 39999 tcp46 0 0 *.39999 *.* LISTEN the 'tcp46' let me think, that the LISTEN is for both, IPv4 and IPv6, and I can reach the server with $ telnet ::1 39999 Trying ::1... Connected to localhost. and with $ telnet 127.0.0.1 39999 Trying 127.0.0.1... Connected to localhost. Seems to work fine now. Btw: How do they do this internally having only one Socket for both families? matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards From owner-freebsd-java@FreeBSD.ORG Tue May 28 13:30:45 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8EE835BE for ; Tue, 28 May 2013 13:30:45 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 2993CAD7 for ; Tue, 28 May 2013 13:30:44 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UhJz8-000719-IP for freebsd-java@freebsd.org; Tue, 28 May 2013 15:30:43 +0200 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UhJz5-00042E-6I for freebsd-java@freebsd.org; Tue, 28 May 2013 15:30:39 +0200 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org Subject: Re: java && IPv6 References: <20130528120123.GA1687@tiny.Sisis.de> Date: Tue, 28 May 2013 15:30:35 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <20130528120123.GA1687@tiny.Sisis.de> User-Agent: Opera Mail/12.15 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: 3b058867a8808b2a73617ccb478d635a X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 13:30:45 -0000 On Tue, 28 May 2013 14:01:24 +0200, Matthias Apitz wrote: > > Hello, > > I'm a C-programmer and want to do something in Java now; > > I want to write an IPv6 server in java which should do what my C written > IPv6-server does: > > - create the two sockets for IPv4 and IPv6 > - bind, listen > - monitor the sockets with "poll" and accept the connection on the > socket which is ready to be accepted; > > see the C-source at http://www.unixarea.de/ipv6-server.c.txt > it can be compiled and run and creates LISTEN on the two sockets, see > netstat output: > > ~/c]$ gcc ipv6-server.c > ~/c]$ ./a.out > family: 28 (PF_INET6) sin6_addr: [::] > LISTEN: IPv6 ... > family: 2 (PF_INET) sin_addr: [0.0.0.0] > LISTEN: IPv4 ... > > ~/c]$ netstat -an | fgrep 39999 > tcp4 0 0 *.39999 *.* LISTEN > tcp6 0 0 *.39999 *.* LISTEN > > when I do something similar on the same FreeBSD host in Java, I can't > manage to create the IPv6 LISTEN on the IP addr "::"; IPv4 works fine, > when I use as addr 'null'; > the source is here: http://www.unixarea.de/ipv6.java.txt > > ~/java]$ javac ipv6.java > ~/java]$ java -version > java version "1.6.0_03-p4" > Java(TM) SE Runtime Environment (build > 1.6.0_03-p4-guru_22_apr_2011_14_10-b00) > Java HotSpot(TM) Client VM (build > 1.6.0_03-p4-guru_22_apr_2011_14_10-b00, mixed mode) > ~/java]$ java -Djava.net.preferIPv6Stack=true ipv6 > java.net.SocketException: Protocol family unavailable > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) > at java.net.ServerSocket.bind(ServerSocket.java:319) > at java.net.ServerSocket.(ServerSocket.java:185) > at ipv6$1.run(ipv6.java:18) > at java.lang.Thread.run(Thread.java:619) > > Any Java guru out here? Any comments on my Java class? Thanks > > matthias > Your Java is really really really old. ;-) I guess it was this one: http://www.freshports.org/java/jdk16/ It is even removed from the ports tree already. It is advised to use the more recent openjdk6 or openjdk7 ports. Ronald. From owner-freebsd-java@FreeBSD.ORG Wed May 29 08:46:14 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4AAC34F1 for ; Wed, 29 May 2013 08:46:14 +0000 (UTC) (envelope-from xzpeter@gmail.com) Received: from mail-pb0-x235.google.com (mail-pb0-x235.google.com [IPv6:2607:f8b0:400e:c01::235]) by mx1.freebsd.org (Postfix) with ESMTP id 28E7C6A2 for ; Wed, 29 May 2013 08:46:14 +0000 (UTC) Received: by mail-pb0-f53.google.com with SMTP id un4so8854998pbc.40 for ; Wed, 29 May 2013 01:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6Lc8hZVhDD/hgF78X8CGIvkJaAEccVFagtbKqUl5Z5A=; b=JHHwVnTQgyNM9U3avmLww7gYd4YHdX5D+BUSljEPATK4qtvp2zTBehwirRYQ+YpIFk Hc4JV/ZnPMVEinJdID3Luh2Q8/PjTMNJr8iRrl+adT72mBb7BevX4Xgg1QGPwhIB22uF 7FkB5gdq4uGcUNacTNo0tGrBBIhF3ni4c32bzroaNpRxzNDCsIL2StJ997SoOEn+mvA+ kekLrrFNWOB+svrH7Mla4Tb20pxXq7zADtKh3TsKBBaUlB/CNgjltpZj2RYzLD+2EILz ik/Q5K3WVHHTMC2bXVvDDVgKP7AVCjqAnecjq9c0vq56/HQvHoXOwS1PhFdTEv3Xie5i yjXw== MIME-Version: 1.0 X-Received: by 10.69.12.65 with SMTP id eo1mr1716378pbd.205.1369817173774; Wed, 29 May 2013 01:46:13 -0700 (PDT) Received: by 10.70.35.195 with HTTP; Wed, 29 May 2013 01:46:13 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 May 2013 16:46:13 +0800 Message-ID: Subject: Fwd: JVM panic when build openjdk7 on private FreeBSD 8.2 From: Peter Xu To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 08:46:14 -0000 I just found this java-specified mailing list. I would appreciate if anyone can help. Thanks. Peter ---------- Forwarded message ---------- From: Peter Xu Date: Wed, May 29, 2013 at 4:28 PM Subject: JVM panic when build openjdk7 on private FreeBSD 8.2 To: freebsd-ports@freebsd.org Hi, all, I got strange issue when trying to build opendjk7 using ports utility on a private-built FreeBSD 8.2 system. Here is the output of make: ========================================================== [root@ /usr/ports/java/openjdk7]# make ===> Building for openjdk-7.21.11 ( cd ./jdk/make && \ gmake sanity HOTSPOT_IMPORT_CHECK=false JDK_TOPDIR=/usr/ports/java/openjdk7/work/openjdk/jdk JDK_MAKE_SHARED_DIR=/usr/ports/java/openjdk7/work/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=fcs BUILD_NUMBER=b11 JDK_BUILD_NUMBER=b11 FULL_VERSION=1.7.0_21-b11 PREVIOUS_JDK_VERSION=1.6. JDK_VERSION=1.7.0_21 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0_21 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION= ARCH_DATA_MODEL=64 COOKED_BUILD_NUMBER=11 ANT_HOME="/usr/ports/java/openjdk7/work/apache-ant-1.8.4" ALT_OUTPUTDIR=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64 ALT_LANGTOOLS_DIST=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist ALT_CORBA_DIST=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/corba/dist ALT_JAXP_DIST=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/jaxp/dist ALT_JAXWS_DIST=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/jaxws/dist ALT_HOTSPOT_IMPORT_PATH=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/import BUILD_HOTSPOT=true ZIP_DEBUGINFO_FILES="0" ; ) INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ALT_OBJCOPY=/nonexistent INFO: no objcopy cmd found so cannot create .debuginfo files. gmake[1]: Entering directory `/usr/ports/java/openjdk7/work/openjdk/jdk/make' INFO: ENABLE_FULL_DEBUG_SYMBOLS=1 INFO: ALT_OBJCOPY=/nonexistent INFO: no objcopy cmd found so cannot create .debuginfo files. gmake[1]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/jdk/make' Build Machine Information: build machine = Build Directory Structure: CWD = /usr/ports/java/openjdk7/work/openjdk TOPDIR = . LANGTOOLS_TOPDIR = ./langtools JAXP_TOPDIR = ./jaxp JAXWS_TOPDIR = ./jaxws CORBA_TOPDIR = ./corba HOTSPOT_TOPDIR = ./hotspot JDK_TOPDIR = ./jdk Build Directives: BUILD_LANGTOOLS = true BUILD_JAXP = true BUILD_JAXWS = true BUILD_CORBA = true BUILD_HOTSPOT = true BUILD_JDK = true DEBUG_CLASSFILES = DEBUG_BINARIES = Hotspot Settings: \n HOTSPOT_BUILD_JOBS = 1 \n HOTSPOT_OUTPUTDIR = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/outputdir \n HOTSPOT_EXPORT_PATH = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/import \n \n \nBootstrap Settings:\n BOOTDIR = /usr/local/bootstrap-openjdk\n ALT_BOOTDIR = /usr/local/bootstrap-openjdk\n BOOT_VER = 1.6.0 [requires at least 1.6]\n OUTPUTDIR = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64\n ALT_OUTPUTDIR = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64\n ABS_OUTPUTDIR = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64\n \nBuild Tool Settings:\n SLASH_JAVA = /NOT-SET\n ALT_SLASH_JAVA = \n VARIANT = OPT\n JDK_DEVTOOLS_DIR = /NOT-SET/devtools\n ALT_JDK_DEVTOOLS_DIR = \n ANT_HOME = /usr/ports/java/openjdk7/work/apache-ant-1.8.4\n UNIXCOMMAND_PATH = /bin/\n ALT_UNIXCOMMAND_PATH = \n COMPILER_PATH = /usr/bin/\n ALT_COMPILER_PATH = \n DEVTOOLS_PATH = /usr/local/bin/\n ALT_DEVTOOLS_PATH = \n COMPILER_NAME = GCC4\n COMPILER_VERSION = GCC4\n CC_VER = 4.2.2\n ZIP_VER = 3.0 [requires at least 2.2]\n UNZIP_VER = 6.00 [requires at least 5.12]\n ANT_VER = 1.8.4 [requires at least 1.7.1]\n TEMPDIR = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/tmp\n \nBuild Directives:\n OPENJDK = true\n USE_HOTSPOT_INTERPRETER_MODE = \n PEDANTIC = \n DEV_ONLY = \n NO_DOCS = true\n NO_IMAGES = \n TOOLS_ONLY = \n INSANE = \n COMPILE_APPROACH = parallel\n PARALLEL_COMPILE_JOBS = 2\n ALT_PARALLEL_COMPILE_JOBS = \n FASTDEBUG = \n COMPILER_WARNINGS_FATAL = false\n COMPILER_WARNING_LEVEL = \n SHOW_ALL_WARNINGS = \n INCREMENTAL_BUILD = false\n CC_HIGHEST_OPT = \n CC_HIGHER_OPT = \n CC_LOWER_OPT = \n CXXFLAGS = -O2 -fPIC -DCC_NOEX -W -Wall -Wno-unused -Wno-parentheses -m64 -fno-omit-frame-pointer -D_LITTLE_ENDIAN \n CFLAGS = -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -pipe -m64 -fno-omit-frame-pointer -D_LITTLE_ENDIAN \n BOOT_JAVA_CMD = /usr/local/bootstrap-openjdk/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m\n BOOT_JAVAC_CMD = /usr/local/bootstrap-openjdk/bin/javac -J-XX:ThreadStackSize=1536 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii -source 6 -target 6 -XDignore.symbol.file=true\n BOOT_JAR_CMD = /usr/local/bootstrap-openjdk/bin/jar\n BOOT_JARSIGNER_CMD = /usr/local/bootstrap-openjdk/bin/jarsigner\n JAVAC_CMD = /NOT-SET/re/jdk/1.7.0_21/promoted/latest/binaries/bsd-amd64/bin/javac -J-XX:ThreadStackSize=1536 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -source 7 -target 7 -encoding ascii -Xbootclasspath:/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/classes \n JAVAH_CMD = /NOT-SET/re/jdk/1.7.0_21/promoted/latest/binaries/bsd-amd64/bin/javah -bootclasspath /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/classes\n JAVADOC_CMD = /NOT-SET/re/jdk/1.7.0_21/promoted/latest/binaries/bsd-amd64/bin/javadoc -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -bootclasspath /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/classes\n \nBuild Platform Settings:\n USER = root\n PLATFORM = bsd\n ARCH = amd64\n LIBARCH = amd64\n ARCH_FAMILY = amd64\n ARCH_DATA_MODEL = 64\n ARCHPROP = amd64\n OS_VERSION = CYPHY-0905 [requires at least 6.0]\n OS_VARIANT_NAME = \n OS_VARIANT_VERSION = \n MB_OF_MEMORY = 502\n \nGNU Make Settings:\n MAKE = gmake\n MAKE_VER = 3.82 [requires at least 3.81]\n MAKECMDGOALS = sanity\n MAKEFLAGS = w\n SHELL = /bin/sh\n \nTarget Build Versions:\n JDK_VERSION = 1.7.0_21\n MILESTONE = fcs\n RELEASE = 1.7.0_21\n FULL_VERSION = 1.7.0_21-b11\n BUILD_NUMBER = b11\n \nExternal File/Binary Locations:\n USRJDKINSTANCES_PATH = /usr/local\n BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0_21/promoted/latest/binaries\n ALT_BUILD_JDK_IMPORT_PATH = \n JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0_21/promoted/latest/binaries/bsd-amd64\n ALT_JDK_IMPORT_PATH = \n LANGTOOLS_DIST = \n ALT_LANGTOOLS_DIST = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist\n CORBA_DIST = \n ALT_CORBA_DIST = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/corba/dist\n JAXP_DIST = \n ALT_JAXP_DIST = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/jaxp/dist\n JAXWS_DIST = \n ALT_JAXWS_DIST = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/jaxws/dist\n HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR\n ALT_HOTSPOT_DOCS_IMPORT_PATH = \n HOTSPOT_IMPORT_PATH = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/import\n ALT_HOTSPOT_IMPORT_PATH = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/import\n HOTSPOT_SERVER_PATH = /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/import/jre/lib/amd64/server\n ALT_HOTSPOT_SERVER_PATH = \n CACERTS_FILE = ./../src/share/lib/security/cacerts\n ALT_CACERTS_FILE = \n CUPS_HEADERS_PATH = /usr/local/include\n ALT_CUPS_HEADERS_PATH = /usr/local/include\n \nOpenJDK-specific settings:\n FREETYPE_HEADERS_PATH = /usr/local/include\n ALT_FREETYPE_HEADERS_PATH = /usr/local/include\n FREETYPE_LIB_PATH = /usr/local/lib\n ALT_FREETYPE_LIB_PATH = /usr/local/lib\n \nPrevious JDK Settings:\n PREVIOUS_RELEASE_PATH = USING-PREVIOUS_RELEASE_IMAGE\n ALT_PREVIOUS_RELEASE_PATH = \n PREVIOUS_JDK_VERSION = 1.6.\n ALT_PREVIOUS_JDK_VERSION = \n PREVIOUS_JDK_FILE = \n ALT_PREVIOUS_JDK_FILE = \n PREVIOUS_JRE_FILE = \n ALT_PREVIOUS_JRE_FILE = \n PREVIOUS_RELEASE_IMAGE = /usr/local/bootstrap-openjdk\n ALT_PREVIOUS_RELEASE_IMAGE = \n WARNING: This build does not include running javadoc.\n WARNING: This machine appears to only have 502Mb of physical memory, \n builds on this machine could be slow. \n Sanity check passed. gmake \ SKIP_FASTDEBUG_BUILD=true \ SKIP_DEBUG_BUILD=true \ \ generic_build_repo_series hg: not found gmake[1]: Entering directory `/usr/ports/java/openjdk7/work/openjdk' /bin/mkdir -p ./build/bsd-amd64/j2sdk-image /bin/mkdir -p /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools ######################################################################## ######################################################################## ##### Entering langtools for target(s) all ##### ######################################################################## (cd ./langtools/make && \ gmake JDK_TOPDIR=/usr/ports/java/openjdk7/work/openjdk/jdk JDK_MAKE_SHARED_DIR=/usr/ports/java/openjdk7/work/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=fcs BUILD_NUMBER=b11 JDK_BUILD_NUMBER=b11 FULL_VERSION=1.7.0_21-b11 PREVIOUS_JDK_VERSION=1.6. JDK_VERSION=1.7.0_21 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0_21 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION= ARCH_DATA_MODEL=64 COOKED_BUILD_NUMBER=11 ANT_HOME="/usr/ports/java/openjdk7/work/apache-ant-1.8.4" ALT_OUTPUTDIR=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools ALT_BOOTDIR=/usr/local/bootstrap-openjdk all) gmake[2]: Entering directory `/usr/ports/java/openjdk7/work/openjdk/langtools/make' JAVA_HOME=/usr/local/bootstrap-openjdk ANT_OPTS=-Djava.io.tmpdir='/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build/ant-tmp' /usr/ports/java/openjdk7/work/apache-ant-1.8.4/bin/ant -Djdk.version=1.7.0_21 -Dfull.version='1.7.0_21-b11' -Drelease=1.7.0_21 -Dbuild.number=b11 -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/usr/local/bootstrap-openjdk -Dimport.jdk=/usr/ports/java/openjdk7/work/openjdk/jdk -Dbuild.dir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build -Ddist.dir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist build Buildfile: /usr/ports/java/openjdk7/work/openjdk/langtools/make/build.xml # # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x0000000801dda0f3, pid=2731, tid=34372365888 # # JRE version: 6.0_32-b27 # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libjava.so+0x1d0f3] getGMTOffsetID+0x143 # # An error report file with more information is saved as: # /usr/ports/java/openjdk7/work/openjdk/langtools/make/hs_err_pid2731.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # gmake[2]: *** [build] Abort trap: 6 (core dumped) gmake[2]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/langtools/make' gmake[1]: *** [langtools-build] Error 2 gmake[1]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk' gmake: *** [build_product_image] Error 2 *** Error code 1 Stop in /usr/ports/java/openjdk7. *** Error code 1 Stop in /usr/ports/java/openjdk7. ========================================================== It seems that the host first passed a sanity test, then JVM core dumped when invoking ant to build something called langtools. Here is the detailed error log file: ========================================================== # # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x0000000801dda0f3, pid=2731, tid=34372365888 # # JRE version: 6.0_32-b27 # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libjava.so+0x1d0f3] getGMTOffsetID+0x143 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0000000800d06800): JavaThread "main" [_thread_in_native, id=100062, stack(0x00007fffffaff000,0x00007fffffbff000)] siginfo:si_signo=SIGBUS: si_errno=0, si_code=3 (BUS_OBJERR), si_addr=0x0000000801dda0f3 Registers: RAX=0xda92045f582ed910, RBX=0x00000008127146e0, RCX=0x0000000000000000, RDX=0x0000000000000000 RSP=0x00007fffffbfd070, RBP=0x00007fffffbfd260, RSI=0x0000000000000000, RDI=0x00007fffffbfd0ac R8 =0x0000000000000180, R9 =0x0000000000000000, R10=0xffffff0001725000, R11=0x00007fffffbfd0a9 R12=0x00000008127146e0, R13=0x0000000800c471c0, R14=0x00007fffffbfd0a0, R15=0x00007fffffbfd228 RIP=0x0000000801dda0f3, EFLAGS=0x0000000000000001, ERR=0x0000000000000000 TRAPNO=0x0000000000000009 Top of Stack: (sp=0x00007fffffbfd070) 0x00007fffffbfd070: 00007fffffbfd1b0 00000008127146e0 0x00007fffffbfd080: 0000000000000195 0000000800c3e500 0x00007fffffbfd090: ffffffff00000000 0000000000000000 0x00007fffffbfd0a0: 0104000c002a6801 000000080000002e 0x00007fffffbfd0b0: 00007fffffbfd110 00000008008f0015 0x00007fffffbfd0c0: 0000000812548ac0 00000008008ec626 0x00007fffffbfd0d0: 0000000800c472e0 0000000000000000 0x00007fffffbfd0e0: 00007fffffbfd110 00000008008ec697 0x00007fffffbfd0f0: 0000000000000000 00007fffffbfd428 0x00007fffffbfd100: 0000000000000000 00007fffffbfd110 0x00007fffffbfd110: 00000000002a6801 0000000000000000 0x00007fffffbfd120: 000000040001001c 000000000000002e 0x00007fffffbfd130: 000000007273752f 0000000000000000 0x00007fffffbfd140: 0000000000000000 0000000000000000 0x00007fffffbfd150: 0000000000000000 0000000000000000 0x00007fffffbfd160: 0000000000000000 0000000000000000 0x00007fffffbfd170: 0000000000000000 0000000000000000 0x00007fffffbfd180: 0000000000000000 da92045f582ed910 0x00007fffffbfd190: 0000000000004000 0000000812548ac0 0x00007fffffbfd1a0: 0000000000000003 0000000812548ac0 0x00007fffffbfd1b0: 0000000800c47220 0000000000000000 0x00007fffffbfd1c0: 00007fffffbfd628 0000000000000014 0x00007fffffbfd1d0: 000000000050ad70 0000000000000016 0x00007fffffbfd1e0: 0000000000000001 0000000000000001 0x00007fffffbfd1f0: 0000000800ab0528 00000008008fdeec 0x00007fffffbfd200: 00000000505b4025 0000000000000000 0x00007fffffbfd210: 0000000051a4f069 0000000000000000 0x00007fffffbfd220: 0000000000000200 da92045f582ed910 0x00007fffffbfd230: 0000000000004000 00000008127146e0 0x00007fffffbfd240: 00000008127146e0 0000000800c472e0 0x00007fffffbfd250: 00007fffffbfd2a0 00007fffffbfd428 0x00007fffffbfd260: 00007fffffbfd460 0000000801dda1eb Instructions: (pc=0x0000000801dda0f3) 0x0000000801dda0d3: 4c 89 f6 4c 89 ef e8 56 3c ff ff 85 c0 0f 85 0e 0x0000000801dda0e3: 02 00 00 48 8b 45 c8 48 85 c0 0f 84 01 02 00 00 0x0000000801dda0f3: 80 78 08 2e 74 d7 4c 8d 60 08 48 8d 3d b3 6f 00 0x0000000801dda103: 00 b9 04 00 00 00 fc 4c 89 e6 f3 a6 74 bf 48 8d Register to memory mapping: RAX=0xda92045f582ed910 is an unknown value RBX=0x00000008127146e0 is an unknown value RCX=0x0000000000000000 is an unknown value RDX=0x0000000000000000 is an unknown value RSP=0x00007fffffbfd070 is pointing into the stack for thread: 0x0000000800d06800 RBP=0x00007fffffbfd260 is pointing into the stack for thread: 0x0000000800d06800 RSI=0x0000000000000000 is an unknown value RDI=0x00007fffffbfd0ac is pointing into the stack for thread: 0x0000000800d06800 R8 =0x0000000000000180 is an unknown value R9 =0x0000000000000000 is an unknown value R10=0xffffff0001725000 is an unknown value R11=0x00007fffffbfd0a9 is pointing into the stack for thread: 0x0000000800d06800 R12=0x00000008127146e0 is an unknown value R13=0x0000000800c471c0 is an unknown value R14=0x00007fffffbfd0a0 is pointing into the stack for thread: 0x0000000800d06800 R15=0x00007fffffbfd228 is pointing into the stack for thread: 0x0000000800d06800 Stack: [0x00007fffffaff000,0x00007fffffbff000], sp=0x00007fffffbfd070, free space=1016k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libjava.so+0x1d0f3] getGMTOffsetID+0x143 C [libjava.so+0x1d1eb] getGMTOffsetID+0x23b C [libjava.so+0x1d1eb] getGMTOffsetID+0x23b C [libjava.so+0x1d4e8] findJavaTZ_md+0x188 C [libjava.so+0x1cfa1] Java_java_util_TimeZone_getSystemTimeZoneID+0xb1 j java.util.TimeZone.getSystemTimeZoneID(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+0 j java.util.TimeZone.setDefaultZone()Ljava/util/TimeZone;+65 j java.util.TimeZone.getDefaultRef()Ljava/util/TimeZone;+16 j java.util.Calendar.getInstance()Ljava/util/Calendar;+0 j org.apache.tools.zip.ZipFile.dosToJavaTime(J)J+0 j org.apache.tools.zip.ZipFile.populateFromCentralDirectory()Ljava/util/Map;+187 j org.apache.tools.zip.ZipFile.(Ljava/io/File;Ljava/lang/String;Z)V+73 j org.apache.tools.zip.ZipFile.(Ljava/lang/String;Ljava/lang/String;)V+11 j org.apache.tools.ant.helper.ProjectHelper2.parse(Lorg/apache/tools/ant/Project;Ljava/lang/Object;Lorg/apache/tools/ant/helper/ProjectHelper2$RootHandler;)V+364 j org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(Lorg/apache/tools/ant/Project;Ljava/net/URL;)Lorg/apache/tools/ant/UnknownElement;+54 j org.apache.tools.ant.helper.ProjectHelper2.parseAntlibDescriptor(Lorg/apache/tools/ant/Project;Lorg/apache/tools/ant/types/Resource;)Lorg/apache/tools/ant/UnknownElement;+68 j org.apache.tools.ant.taskdefs.Antlib.createAntlib(Lorg/apache/tools/ant/Project;Ljava/net/URL;Ljava/lang/String;)Lorg/apache/tools/ant/taskdefs/Antlib;+122 j org.apache.tools.ant.taskdefs.Definer.loadAntlib(Ljava/lang/ClassLoader;Ljava/net/URL;)V+9 j org.apache.tools.ant.taskdefs.Definer.execute()V+410 j org.apache.tools.ant.ComponentHelper.checkNamespace(Ljava/lang/String;)V+114 j org.apache.tools.ant.ComponentHelper.getDefinition(Ljava/lang/String;)Lorg/apache/tools/ant/AntTypeDefinition;+2 j org.apache.tools.ant.ComponentHelper.createComponent(Ljava/lang/String;)Ljava/lang/Object;+2 j org.apache.tools.ant.ComponentHelper.createComponent(Lorg/apache/tools/ant/UnknownElement;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;+2 j org.apache.tools.ant.UnknownElement.makeObject(Lorg/apache/tools/ant/UnknownElement;Lorg/apache/tools/ant/RuntimeConfigurable;)Ljava/lang/Object;+22 j org.apache.tools.ant.UnknownElement.maybeConfigure()V+15 j org.apache.tools.ant.Task.perform()V+18 j org.apache.tools.ant.Target.execute()V+155 j org.apache.tools.ant.helper.ProjectHelper2.parse(Lorg/apache/tools/ant/Project;Ljava/lang/Object;)V+222 j org.apache.tools.ant.ProjectHelper.configureProject(Lorg/apache/tools/ant/Project;Ljava/io/File;)V+27 j org.apache.tools.ant.Main.runBuild(Ljava/lang/ClassLoader;)V+358 j org.apache.tools.ant.Main.startAnt([Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)V+84 j org.apache.tools.ant.launch.Launcher.run([Ljava/lang/String;)I+718 j org.apache.tools.ant.launch.Launcher.main([Ljava/lang/String;)V+10 v ~StubRoutines::call_stub V [libjvm.so+0x50a3e2] AsyncGetCallTrace+0xb3e22 V [libjvm.so+0x5093c8] AsyncGetCallTrace+0xb2e08 V [libjvm.so+0x516f43] JNI_GetDefaultJavaVMInitArgs+0xe83 V [libjvm.so+0x52d99f] JNI_CreateJavaVM+0x165ff C [java+0x5a11] JavaMain+0xd31 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j java.util.TimeZone.getSystemTimeZoneID(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+0 j java.util.TimeZone.setDefaultZone()Ljava/util/TimeZone;+65 j java.util.TimeZone.getDefaultRef()Ljava/util/TimeZone;+16 j java.util.Calendar.getInstance()Ljava/util/Calendar;+0 j org.apache.tools.zip.ZipFile.dosToJavaTime(J)J+0 j org.apache.tools.zip.ZipFile.populateFromCentralDirectory()Ljava/util/Map;+187 j org.apache.tools.zip.ZipFile.(Ljava/io/File;Ljava/lang/String;Z)V+73 j org.apache.tools.zip.ZipFile.(Ljava/lang/String;Ljava/lang/String;)V+11 j org.apache.tools.ant.helper.ProjectHelper2.parse(Lorg/apache/tools/ant/Project;Ljava/lang/Object;Lorg/apache/tools/ant/helper/ProjectHelper2$RootHandler;)V+364 j org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(Lorg/apache/tools/ant/Project;Ljava/net/URL;)Lorg/apache/tools/ant/UnknownElement;+54 j org.apache.tools.ant.helper.ProjectHelper2.parseAntlibDescriptor(Lorg/apache/tools/ant/Project;Lorg/apache/tools/ant/types/Resource;)Lorg/apache/tools/ant/UnknownElement;+68 j org.apache.tools.ant.taskdefs.Antlib.createAntlib(Lorg/apache/tools/ant/Project;Ljava/net/URL;Ljava/lang/String;)Lorg/apache/tools/ant/taskdefs/Antlib;+122 j org.apache.tools.ant.taskdefs.Definer.loadAntlib(Ljava/lang/ClassLoader;Ljava/net/URL;)V+9 j org.apache.tools.ant.taskdefs.Definer.execute()V+410 j org.apache.tools.ant.ComponentHelper.checkNamespace(Ljava/lang/String;)V+114 j org.apache.tools.ant.ComponentHelper.getDefinition(Ljava/lang/String;)Lorg/apache/tools/ant/AntTypeDefinition;+2 j org.apache.tools.ant.ComponentHelper.createComponent(Ljava/lang/String;)Ljava/lang/Object;+2 j org.apache.tools.ant.ComponentHelper.createComponent(Lorg/apache/tools/ant/UnknownElement;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;+2 j org.apache.tools.ant.UnknownElement.makeObject(Lorg/apache/tools/ant/UnknownElement;Lorg/apache/tools/ant/RuntimeConfigurable;)Ljava/lang/Object;+22 j org.apache.tools.ant.UnknownElement.maybeConfigure()V+15 j org.apache.tools.ant.Task.perform()V+18 j org.apache.tools.ant.Target.execute()V+155 j org.apache.tools.ant.helper.ProjectHelper2.parse(Lorg/apache/tools/ant/Project;Ljava/lang/Object;)V+222 j org.apache.tools.ant.ProjectHelper.configureProject(Lorg/apache/tools/ant/Project;Ljava/io/File;)V+27 j org.apache.tools.ant.Main.runBuild(Ljava/lang/ClassLoader;)V+358 j org.apache.tools.ant.Main.startAnt([Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)V+84 j org.apache.tools.ant.launch.Launcher.run([Ljava/lang/String;)I+718 j org.apache.tools.ant.launch.Launcher.main([Ljava/lang/String;)V+10 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x0000000800d01800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=100097, stack(0x00007fffff3f8000,0x00007fffff4f8000)] 0x0000000800d02000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=100096, stack(0x00007fffff4f9000,0x00007fffff5f9000)] 0x0000000800d03000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=100095, stack(0x00007fffff5fa000,0x00007fffff6fa000)] 0x0000000800d03800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=100094, stack(0x00007fffff6fb000,0x00007fffff7fb000)] 0x0000000800d04800 JavaThread "Finalizer" daemon [_thread_blocked, id=100093, stack(0x00007fffff7fc000,0x00007fffff8fc000)] 0x0000000800d06000 JavaThread "Reference Handler" daemon [_thread_blocked, id=100092, stack(0x00007fffff8fd000,0x00007fffff9fd000)] =>0x0000000800d06800 JavaThread "main" [_thread_in_native, id=100062, stack(0x00007fffffaff000,0x00007fffffbff000)] Other Threads: 0x0000000800dd7000 VMThread [stack: 0x00007fffff9fe000,0x00007fffffafe000] [id=100089] 0x0000000800dd6800 WatcherThread [stack: 0x00007fffff2f7000,0x00007fffff3f7000] [id=100098] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 2432K, used 2128K [0x0000000805000000, 0x00000008052a0000, 0x0000000807a00000) eden space 2176K, 86% used [0x0000000805000000, 0x00000008051d41d0, 0x0000000805220000) from space 256K, 100% used [0x0000000805260000, 0x00000008052a0000, 0x00000008052a0000) to space 256K, 0% used [0x0000000805220000, 0x0000000805220000, 0x0000000805260000) tenured generation total 5376K, used 91K [0x0000000807a00000, 0x0000000807f40000, 0x000000080ce00000) the space 5376K, 1% used [0x0000000807a00000, 0x0000000807a16fd8, 0x0000000807a17000, 0x0000000807f40000) compacting perm gen total 21248K, used 5781K [0x000000080ce00000, 0x000000080e2c0000, 0x0000000812000000) the space 21248K, 27% used [0x000000080ce00000, 0x000000080d3a5568, 0x000000080d3a5600, 0x000000080e2c0000) No shared spaces configured. Code Cache [0x0000000801fef000, 0x000000080225f000, 0x0000000804fef000) total_blobs=215 nmethods=18 adapters=152 free_code_cache=49870144 largest_free_block=11584 Dynamic libraries: 0x0000000000400000 /usr/local/bootstrap-openjdk/bin/java 0x0000000800651000 /lib/libz.so.5 0x0000000800766000 /lib/libthr.so.3 0x000000080087f000 /lib/libc.so.7 0x0000000800e00000 /usr/local/bootstrap-openjdk/jre/lib/amd64/server/libjvm.so 0x0000000801990000 /usr/lib/libstdc++.so.6 0x0000000800ac5000 /lib/libm.so.5 0x0000000801ba0000 /lib/libgcc_s.so.1 0x0000000801cae000 /usr/local/bootstrap-openjdk/jre/lib/amd64/libverify.so 0x0000000801dbd000 /usr/local/bootstrap-openjdk/jre/lib/amd64/libjava.so 0x0000000801ee8000 /usr/local/bootstrap-openjdk/jre/lib/amd64/libzip.so 0x000000080050a000 /libexec/ld-elf.so.1 VM Arguments: jvm_args: -Djava.io.tmpdir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build/ant-tmp -Dant.home=/usr/ports/java/openjdk7/work/apache-ant-1.8.4 -Dant.library.dir=/usr/ports/java/openjdk7/work/apache-ant-1.8.4/lib java_command: org.apache.tools.ant.launch.Launcher -cp -Djdk.version=1.7.0_21 -Dfull.version=1.7.0_21-b11 -Drelease=1.7.0_21 -Dbuild.number=b11 -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/usr/local/bootstrap-openjdk -Dimport.jdk=/usr/ports/java/openjdk7/work/openjdk/jdk -Dbuild.dir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/build -Ddist.dir=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist build Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/bootstrap-openjdk CLASSPATH= PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin LD_LIBRARY_PATH=/usr/local/bootstrap-openjdk/jre/lib/amd64/server:/usr/local/bootstrap-openjdk/jre/lib/amd64:/usr/local/bootstrap-openjdk/jre/../lib/amd64 SHELL=/bin/sh HOSTTYPE=FreeBSD OSTYPE=FreeBSD MACHTYPE=unknown Signal Handlers: SIGSEGV: [libjvm.so+0x861ed0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGBUS: [libjvm.so+0x861ed0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.so+0x70b6f0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.so+0x70b6f0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGXFSZ: [libjvm.so+0x70b6f0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.so+0x70b6f0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0x20000000, sa_flags=0x00000002 SIGUSR2: [libjvm.so+0x70dfd0], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: [libjvm.so+0x70c960], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGINT: [libjvm.so+0x70c960], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGTERM: [libjvm.so+0x70c960], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.so+0x70c960], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsd uname:FreeBSD CYPHY-0905 FreeBSD CYPHY-0905 #0: Thu Sep 20 16:20:54 UTC 2012 root@buildmachine:/usr/obj/usr/src/sys/GENERIC amd64 rlimit: STACK 524288k, CORE infinity, NPROC 3632, NOFILE 7264 CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt Memory: 4k page, physical 514300k(4k free), swap 1020408k(1020408k free) vm_info: OpenJDK 64-Bit Server VM (20.0-b12) for bsd-amd64 JRE (1.6.0_32-b27), built on Apr 26 2013 13:24:52 by "root" with gcc 4.2.2 20070831 prerelease [FreeBSD] time: Wed May 29 16:01:45 2013 elapsed time: 0 seconds ========================================================== What is so strange is that, JVM seems to be querying the time zone info when it died. After that, I started to doubt whether there is something wrong with the local openjdk6. Since I am a newbie to Java too, and what I can test is only a 'hello world' from Java: ========================================================== [root@ /usr/local/bootstrap-openjdk/bin]# ./java -version openjdk version "1.6.0_32" OpenJDK Runtime Environment (build 1.6.0_32-b27) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) [root@ /usr/local/bootstrap-openjdk/bin]# cat HelloWorld.java public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } } [root@ /usr/local/bootstrap-openjdk/bin]# ./javac HelloWorld.java [root@ /usr/local/bootstrap-openjdk/bin]# ./java HelloWorld Hello, World ========================================================== So... I suppose the Java6 is working all right. Any ideas on this porting issue? Thanks in advance. Peter From owner-freebsd-java@FreeBSD.ORG Wed May 29 17:43:16 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BA7EDDA6; Wed, 29 May 2013 17:43:16 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 85E87BDC; Wed, 29 May 2013 17:43:16 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id aq17so2381851iec.5 for ; Wed, 29 May 2013 10:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=cW8IGLsAqfGWXwUdHQQJM2Vam1znzFTISu3AUAGClFA=; b=xgv1CfhOzjD2HFZsIE6SoRh9f4VC4VxxqTPE09gY1al9r6OwMh2khVQBAl3FWRPZj8 4FndwobcfZG7tZ1IYupSafKWcvRnVJvtJJT+UJCbjinbB/G3S0cEyPBTfIFMpT5Fvav6 DSzU9FSOSUuTdngyKAlWygAdf7P3KjlKYrdni3SiFox13IbznR3WMF9yvZe+OMQV2Fif GHWpxplbbuojRrDia656SOhswtOlEZx2DyGFwXJCjYirYdh5htCHns2g5hxKAzv1fLSE +O7fx2MBKe0A/lr/FFYI4uqYbAH3k/7+qSlsh/3XN5LWV1jh+gZdEEUhkp6NaWGMV+yT m4yg== X-Received: by 10.42.78.136 with SMTP id n8mr1569212ick.52.1369849396080; Wed, 29 May 2013 10:43:16 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.71.101 with HTTP; Wed, 29 May 2013 10:42:46 -0700 (PDT) In-Reply-To: References: From: Chris Rees Date: Wed, 29 May 2013 18:42:46 +0100 X-Google-Sender-Auth: OmaI8R_yHXEyLLf0c5VXCRjY5A4 Message-ID: Subject: Re: JVM panic when build openjdk7 on private FreeBSD 8.2 To: Peter Xu , java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Mailing List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 17:43:16 -0000 On 29 May 2013 09:28, Peter Xu wrote: > Hi, all, > > I got strange issue when trying to build opendjk7 using ports utility on a > private-built FreeBSD 8.2 system. Here is the output of make: > I'm going to suggest that you upgrade to FreeBSD 8.3-- it's not a big jump, so it shouldn't break anything. Unfortunately ports can't be tested on unsupported versions, and 8.3 has been out over a year now. However, I've added java@ in case they have any suggestions. Chris From owner-freebsd-java@FreeBSD.ORG Thu May 30 00:53:12 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CBDA1D04; Thu, 30 May 2013 00:53:12 +0000 (UTC) (envelope-from xzpeter@gmail.com) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx1.freebsd.org (Postfix) with ESMTP id 49DE5685; Thu, 30 May 2013 00:53:12 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id 14so7305121pdc.39 for ; Wed, 29 May 2013 17:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Vf5OkWSbrV3UwyVts76yrvtIWM615qFRDpnd7EDb6j8=; b=ad1eowYWqg+6sXlSCbzfdtQ6W9RVXBqt8j7PLXoe6gMDov/GYvClH2rouN+Ml2g9wh TfiIqeDVEMTFr0vrtQmj4zwUx2BSf/BvTsY0G3rFE/UAQDQbwgFIiRPfk/of22j3RofI aNy5oifzpA+ESlaeGfSZIyNu+bdiuPXbLNy/xZYaipaTE8PQdME/yJ4NWaNSezqcaOiu Dua++5iDMXJsTytNHeec3RTLaFobAw0O+VqLbQ4NcR2QVfnDocTXtsNx1w9Mw34S8yRI 1VnVjtMt9iAd3qd3LrJFIRbTkYR39tYh4a+WFLMADwcYaypHqhOGleWyqKioH6GjMYai JPgA== X-Received: by 10.66.162.161 with SMTP id yb1mr5700366pab.213.1369875186867; Wed, 29 May 2013 17:53:06 -0700 (PDT) Received: from Peters-MacAir.local ([106.3.103.167]) by mx.google.com with ESMTPSA id sg4sm39337792pbc.7.2013.05.29.17.53.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 May 2013 17:53:06 -0700 (PDT) Message-ID: <51A6A2ED.5070009@gmail.com> Date: Thu, 30 May 2013 08:53:01 +0800 From: Xu Zhe User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Chris Rees Subject: Re: JVM panic when build openjdk7 on private FreeBSD 8.2 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: java@freebsd.org, FreeBSD Mailing List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 00:53:12 -0000 于 5/30/13 1:42 AM, Chris Rees 写é“: > On 29 May 2013 09:28, Peter Xu wrote: >> Hi, all, >> >> I got strange issue when trying to build opendjk7 using ports utility on a >> private-built FreeBSD 8.2 system. Here is the output of make: >> > > > I'm going to suggest that you upgrade to FreeBSD 8.3-- it's not a big > jump, so it shouldn't break anything. > > Unfortunately ports can't be tested on unsupported versions, and 8.3 > has been out over a year now. > > However, I've added java@ in case they have any suggestions. > > Chris Hi, Chris, Thanks for the mail. The problem is, the target FreeBSD 8.2 system has been heavily hacked (on both kernel and libc, as far as I know), and they have been doing system test for months. If we (or say they) do the swtich, the porting of the kernel part will be huge, and test results in the past months will be wasted. So I suppose that is not the working solution for my case. :( BTW, I would appreciate if anyone can tell me why build java need java support? Thanks. Peter From owner-freebsd-java@FreeBSD.ORG Thu May 30 23:08:06 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DB4F6B12; Thu, 30 May 2013 23:08:06 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from st11p05mm-asmtp003.mac.com (st11p05mm-asmtpout003.mac.com [17.172.108.248]) by mx1.freebsd.org (Postfix) with ESMTP id B6530198; Thu, 30 May 2013 23:08:06 +0000 (UTC) Received: from [17.153.29.69] (unknown [17.153.29.69]) by st11p05mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MNM00FJFTHAF820@st11p05mm-asmtp003.mac.com>; Thu, 30 May 2013 22:08:00 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626,1.0.431,0.0.0000 definitions=2013-05-30_07:2013-05-30,2013-05-30,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1305010000 definitions=main-1305300210 Content-type: text/plain; charset=windows-1252 MIME-version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: JVM panic when build openjdk7 on private FreeBSD 8.2 From: Charles Swiger In-reply-to: <51A6A2ED.5070009@gmail.com> Date: Thu, 30 May 2013 15:07:58 -0700 Content-transfer-encoding: quoted-printable Message-id: References: <51A6A2ED.5070009@gmail.com> To: Xu Zhe X-Mailer: Apple Mail (2.1503) Cc: java@freebsd.org, FreeBSD Mailing List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 23:08:06 -0000 Hi-- On May 29, 2013, at 5:53 PM, Xu Zhe wrote: [ =85 ] > BTW, I would appreciate if anyone can tell me why build java need java = support? You need a Java compiler to build the Java standard platform libraries = (ie, java.*, javax.*, etc) needed by the JRE, but you can cross-compile = those somewhere else (and/or run a precompiled Linux JRE via FreeBSD's = Linux emulation) if needed to bootstrap a native Java toolchain from = scratch. Regards, --=20 -Chuck From owner-freebsd-java@FreeBSD.ORG Sat Jun 1 13:50:21 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 768DA243 for ; Sat, 1 Jun 2013 13:50:21 +0000 (UTC) (envelope-from xzpeter@gmail.com) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx1.freebsd.org (Postfix) with ESMTP id 562E9B0 for ; Sat, 1 Jun 2013 13:50:21 +0000 (UTC) Received: by mail-pd0-f172.google.com with SMTP id t10so83583pdi.17 for ; Sat, 01 Jun 2013 06:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=q5+UDKpCqksOHYQ8YpMZFjd9VBB2XFIVQNdzYoTkXXU=; b=PLYk1+0tYazu9l1OrURfBjmVtFP5Z3t5CG+fVywsiDd+7JYyePivxh4gopdnvcRMwN +ezna7dHOd85FvO9ycszhh4uvddtv8DQ4lB9ctgVyWMx6UkCAZf6/d0g1m7KP6J2abgj V3Ei1MBr2QlGIDgpQenYJ7FkMAOKbBRXiG1M3LQnjtTFWIwg818eNm0NFw4bdklbAplk 4PlTdZz3XI2MugraoicWvN2frkF20x9gN/KhWMEhESrnWb8unmMIiGKswhbObdl49JXW EbPmma9kD8A+jdITJz7ye8dRQ6aO+weYXnPVUKob4jcfq6IOa1Qycrm1WpTcdSq/WoH8 1J0w== X-Received: by 10.66.254.225 with SMTP id al1mr17781337pad.111.1370094620871; Sat, 01 Jun 2013 06:50:20 -0700 (PDT) Received: from [192.168.23.110] ([114.246.65.194]) by mx.google.com with ESMTPSA id zs12sm54826816pab.0.2013.06.01.06.50.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Jun 2013 06:50:20 -0700 (PDT) Message-ID: <51A9FC1E.5020106@gmail.com> Date: Sat, 01 Jun 2013 21:50:22 +0800 From: Xu Zhe User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: java@freebsd.org Subject: Failed to build openjdk7 on FreeBSD 8.2 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jun 2013 13:50:21 -0000 Hi, all, I am porting openjdk7 to a private FreeBSD 8.2 system, but failed to build with the error output like this (only the last part of the 'make' output is pasted here): -------------------------------- [root@ /usr/ports/java/openjdk7]# pwd /usr/ports/java/openjdk7 [root@ /usr/ports/java/openjdk7]# make ....................... (cd /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/bin/.. && /usr/bin/tar cf - \ `/usr/bin/find bin \( -type f -o -type l \) -print `) | \ (cd /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/j2sdk-image && /usr/bin/tar xf -) /usr/bin/touch /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/classes/META-INF/services/com.sun.tools.xjc.Plugin cd /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/classes && \ /usr/local/bootstrap-openjdk/bin/jar c0f /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/lib/tools.jar \ META-INF/services/com.sun.jdi.connect.Connector META-INF/services/com.sun.jdi.connect.spi.TransportService sun/tools/asm sun/tools/jar sun/tools/java sun/tools/javac sun/tools/jcmd sun/tools/jps sun/tools/jstat sun/tools/jstatd sun/tools/native2ascii sun/tools/serialver sun/tools/tree sun/tools/util sun/security/tools/JarBASE64Encoder.class sun/security/tools/JarSigner.class sun/security/tools/JarSignerParameters.class sun/security/tools/JarSignerResources.class sun/security/tools/JarSignerResources_ja.class sun/security/tools/JarSignerResources_zh_CN.class sun/security/tools/SignatureFile\$Block.class sun/security/tools/SignatureFile.class sun/security/tools/TimestampedSigner.class sun/rmi/rmic sun/applet sun/jvmstat com/sun/javadoc com/sun/jdi com/sun/jarsigner com/sun/mirror com/sun/source com/sun/tools/classfile com/sun/tools/doclets com/sun/tools/example/debug/expr com/sun/tools/example/debug/tty com/sun/tools/extcheck com/sun/tools/hat com/sun/tools/javac com/sun/tools/javadoc com/sun/tools/apt com/sun/tools/javah com/sun/tools/javap com/sun/tools/corba com/sun/tools/internal/xjc com/sun/tools/internal/ws META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory META-INF/services/com.sun.tools.xjc.Plugin com/sun/istack/internal/tools com/sun/istack/internal/ws com/sun/codemodel com/sun/tools/internal/jxc com/sun/xml/internal/rngom com/sun/xml/internal/xsom org/relaxng/datatype com/sun/xml/internal/dtdparser com/sun/tools/jdi com/sun/tools/script/shell META-INF/services/com.sun.tools.attach.spi.AttachProvider com/sun/tools/attach sun/tools/attach sun/tools/jstack sun/tools/jinfo sun/tools/jmap -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m /bin/cp /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/lib/tools.jar /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/j2sdk-image/lib/tools.jar /bin/mkdir -p /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/symbols/META-INF/sym /usr/local/bootstrap-openjdk/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m "-Xbootclasspath/p:/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist/bootstrap/lib/javac.jar" -jar /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist/bootstrap/lib/javac.jar -source 7 -target 7 -encoding ascii "-Xbootclasspath:/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/classes" -XDprocess.packages -proc:only \ -processor com.sun.tools.javac.sym.CreateSymbols \ -Acom.sun.tools.javac.sym.Jar=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/tmp/rt-orig.jar \ -Acom.sun.tools.javac.sym.Dest=/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/symbols/META-INF/sym/rt.jar \ java.applet java.awt java.awt.color java.awt.datatransfer java.awt.dnd java.awt.event java.awt.font java.awt.geom java.awt.im java.awt.im.spi java.awt.image java.awt.image.renderable java.awt.print java.beans java.beans.beancontext java.io java.lang java.lang.annotation java.lang.instrument java.lang.invoke java.lang.management java.lang.ref java.lang.reflect java.math java.net java.nio java.nio.channels java.nio.channels.spi java.nio.charset java.nio.charset.spi java.nio.file java.nio.file.attribute java.nio.file.spi java.rmi java.rmi.activation java.rmi.dgc java.rmi.registry java.rmi.server java.security java.security.acl java.security.cert java.security.interfaces java.security.spec java.sql java.text java.text.spi java.util java.util.concurrent java.util.concurrent.atomic java.util.concurrent.locks java.util.jar java.util.logging java.util.prefs java.util.regex java.util.spi java.util.zip javax.accessibility javax.activation javax.activity javax.annotation javax.annotation.processing javax.crypto javax.crypto.interfaces javax.crypto.spec javax.imageio javax.imageio.event javax.imageio.metadata javax.imageio.plugins.jpeg javax.imageio.plugins.bmp javax.imageio.spi javax.imageio.stream javax.jws javax.jws.soap javax.lang.model javax.lang.model.element javax.lang.model.type javax.lang.model.util javax.management javax.management.loading javax.management.monitor javax.management.relation javax.management.openmbean javax.management.timer javax.management.modelmbean javax.management.remote javax.management.remote.rmi javax.naming javax.naming.directory javax.naming.event javax.naming.ldap javax.naming.spi javax.net javax.net.ssl javax.print javax.print.attribute javax.print.attribute.standard javax.print.event javax.rmi javax.rmi.CORBA javax.rmi.ssl javax.script javax.security.auth javax.security.auth.callback javax.security.auth.kerberos javax.security.auth.login javax.security.auth.spi javax.security.auth.x500 javax.security.cert javax.security.sasl javax.sound.sampled javax.sound.sampled.spi javax.sound.midi javax.sound.midi.spi javax.sql javax.sql.rowset javax.sql.rowset.serial javax.sql.rowset.spi javax.swing javax.swing.border javax.swing.colorchooser javax.swing.filechooser javax.swing.event javax.swing.table javax.swing.text javax.swing.text.html javax.swing.text.html.parser javax.swing.text.rtf javax.swing.tree javax.swing.undo javax.swing.plaf javax.swing.plaf.basic javax.swing.plaf.metal javax.swing.plaf.multi javax.swing.plaf.nimbus javax.swing.plaf.synth javax.tools javax.transaction javax.transaction.xa javax.xml.parsers javax.xml.bind javax.xml.bind.annotation javax.xml.bind.annotation.adapters javax.xml.bind.attachment javax.xml.bind.helpers javax.xml.bind.util javax.xml.soap javax.xml.ws javax.xml.ws.handler javax.xml.ws.handler.soap javax.xml.ws.http javax.xml.ws.soap javax.xml.ws.spi javax.xml.ws.spi.http javax.xml.ws.wsaddressing javax.xml.transform javax.xml.transform.sax javax.xml.transform.dom javax.xml.transform.stax javax.xml.transform.stream javax.xml javax.xml.crypto javax.xml.crypto.dom javax.xml.crypto.dsig javax.xml.crypto.dsig.dom javax.xml.crypto.dsig.keyinfo javax.xml.crypto.dsig.spec javax.xml.datatype javax.xml.validation javax.xml.namespace javax.xml.xpath javax.xml.stream javax.xml.stream.events javax.xml.stream.util org.ietf.jgss org.omg.CORBA org.omg.CORBA.DynAnyPackage org.omg.CORBA.ORBPackage org.omg.CORBA.TypeCodePackage org.omg.stub.java.rmi org.omg.CORBA.portable org.omg.CORBA_2_3 org.omg.CORBA_2_3.portable org.omg.CosNaming org.omg.CosNaming.NamingContextExtPackage org.omg.CosNaming.NamingContextPackage org.omg.SendingContext org.omg.PortableServer org.omg.PortableServer.CurrentPackage org.omg.PortableServer.POAPackage org.omg.PortableServer.POAManagerPackage org.omg.PortableServer.ServantLocatorPackage org.omg.PortableServer.portable org.omg.PortableInterceptor org.omg.PortableInterceptor.ORBInitInfoPackage org.omg.Messaging org.omg.IOP org.omg.IOP.CodecFactoryPackage org.omg.IOP.CodecPackage org.omg.Dynamic org.omg.DynamicAny org.omg.DynamicAny.DynAnyPackage org.omg.DynamicAny.DynAnyFactoryPackage org.w3c.dom org.w3c.dom.events org.w3c.dom.bootstrap org.w3c.dom.ls org.xml.sax org.xml.sax.ext org.xml.sax.helpers com.sun.java.browser.dom org.w3c.dom org.w3c.dom.bootstrap org.w3c.dom.ls org.w3c.dom.ranges org.w3c.dom.traversal org.w3c.dom.html org.w3c.dom.stylesheets org.w3c.dom.css org.w3c.dom.events org.w3c.dom.views com.sun.management com.sun.security.auth com.sun.security.auth.callback com.sun.security.auth.login com.sun.security.auth.module com.sun.security.jgss com.sun.nio.file com.sun.net.ssl com.sun.net.httpserver com.sun.net.httpserver.spi javax.smartcardio com.sun.nio.sctp com.sun.java.swing.plaf.windows com.sun.java.swing.plaf.motif com.sun.java.swing.plaf.gtk com.sun.servicetag com.oracle.net com.oracle.nio com.oracle.util warning: package com.oracle.nio does not exist warning: package com.oracle.util does not exist Using boot class path = [/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/tmp/rt-orig.jar, /usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/langtools/dist/bootstrap/lib/javac.jar, /usr/local/bootstrap-openjdk/jre/lib/resources.jar, /usr/local/bootstrap-openjdk/jre/lib/sunrsasign.jar, /usr/local/bootstrap-openjdk/jre/lib/jsse.jar, /usr/local/bootstrap-openjdk/jre/lib/jce.jar, /usr/local/bootstrap-openjdk/jre/lib/charsets.jar, /usr/local/bootstrap-openjdk/jre/lib/modules/jdk.boot.jar, /usr/local/bootstrap-openjdk/jre/classes, /usr/local/bootstrap-openjdk/jre/lib/ext/dnsns.jar, /usr/local/bootstrap-openjdk/jre/lib/ext/localedata.jar, /usr/local/bootstrap-openjdk/jre/lib/ext/sunjce_provider.jar, /usr/local/bootstrap-openjdk/jre/lib/ext/sunpkcs11.jar] error: java.nio.channels.ServerSocketChannel: class file for java.nio.channels.ServerSocketChannel not found error: class file for java.nio.channels.ServerSocketChannel not found 1 error 2 warnings gmake[2]: *** [initial-image-jdk] Error 1 gmake[2]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk/jdk/make' gmake[1]: *** [jdk-build] Error 2 gmake[1]: Leaving directory `/usr/ports/java/openjdk7/work/openjdk' gmake: *** [build_product_image] Error 2 *** Error code 1 Stop in /usr/ports/java/openjdk7. *** Error code 1 Stop in /usr/ports/java/openjdk7. -------------------------- The error is that java cannot find java.nio.channels.ServerSocketChannel, but I can find it manually in the openjdk7 source directory: -------------------------- [root@ /usr/ports/java/openjdk7]# find . -name "channels" | grep 'java/nio/channels' ./work/openjdk/jdk/src/share/classes/java/nio/channels ./work/openjdk/jdk/test/java/nio/channels ./work/openjdk/build/bsd-amd64/langtools/build/genstubs/java/nio/channels ./work/openjdk/build/bsd-amd64/gensrc/java/nio/channels ./work/openjdk/build/bsd-amd64/classes/java/nio/channels -------------------------- Meanwhile, I have tried to add '-cp work/openjdk/build/bsd-amd64/classes' (this is what I learnt from 'java -h' to add class search path) and run the last command of 'make' again, but I only got the same error output. Could anybody give any hint on how to solve this build issue? Thanks! P.S. In case you may need the whole output Peter From owner-freebsd-java@FreeBSD.ORG Sat Jun 1 22:29:35 2013 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 766F3676; Sat, 1 Jun 2013 22:29:35 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 999CA140; Sat, 1 Jun 2013 22:29:34 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UiuIf-0003SQ-9m; Sun, 02 Jun 2013 00:29:25 +0200 Received: from dhcp-077-251-158-153.chello.nl ([77.251.158.153] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UiuIc-0005ov-Pv; Sun, 02 Jun 2013 00:29:22 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Chris Rees" , "Xu Zhe" Subject: Re: JVM panic when build openjdk7 on private FreeBSD 8.2 References: <51A6A2ED.5070009@gmail.com> Date: Sun, 02 Jun 2013 00:29:25 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <51A6A2ED.5070009@gmail.com> User-Agent: Opera Mail/12.15 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.0 X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.1 X-Scan-Signature: ba572e8a3bde05b4b19613c12a9e49fc Cc: java@freebsd.org, FreeBSD Mailing List X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jun 2013 22:29:35 -0000 On Thu, 30 May 2013 02:53:01 +0200, Xu Zhe wrote: > 于 5/30/13 1:42 AM, Chris Rees 写é“: >> On 29 May 2013 09:28, Peter Xu wrote: >>> Hi, all, >>> >>> I got strange issue when trying to build opendjk7 using ports utility >>> on a >>> private-built FreeBSD 8.2 system. Here is the output of make: >>> >> >> >> I'm going to suggest that you upgrade to FreeBSD 8.3-- it's not a big >> jump, so it shouldn't break anything. >> >> Unfortunately ports can't be tested on unsupported versions, and 8.3 >> has been out over a year now. >> >> However, I've added java@ in case they have any suggestions. >> >> Chris > Hi, Chris, > > Thanks for the mail. > > The problem is, the target FreeBSD 8.2 system has been heavily hacked > (on both kernel and libc, as far as I know), and they have been doing > system test for months. If we (or say they) do the swtich, the porting > of the kernel part will be huge, and test results in the past months > will be wasted. So I suppose that is not the working solution for my > case. :( > > BTW, I would appreciate if anyone can tell me why build java need java > support? I don't know the internals of building Java, but with compilers it is generally a chicken-and-egg-problem. How do you compile the compiler? The compiler javac is written in Java, so you need java to build it. But you can build a pkg of java on another machine and copy it. Or it might work to use a ports tree of FreeBSD 8.2. http://svnweb.freebsd.org/ports/tags/RELEASE_8_2_0/ Didn't try, buy might be worth a try. Ronald.