From owner-freebsd-java@FreeBSD.ORG Sun Feb 3 18:52:54 2008 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 0E77116A469 for ; Sun, 3 Feb 2008 18:52:54 +0000 (UTC) (envelope-from drgerlists@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id C71D213C44B for ; Sun, 3 Feb 2008 18:52:53 +0000 (UTC) (envelope-from drgerlists@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so2822387pyb.10 for ; Sun, 03 Feb 2008 10:52:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:organization:reply-to:to:subject:message-id:user-agent:mime-version:content-type:content-transfer-encoding; bh=MkO3i4mOw4bzEdeGKJGo+8SwOKH0Fsl67QlDvZVGac8=; b=aW0VoUlzqlOG27Rs57vH/oCskLrIwWtlJTaZwKFxi5x0u3VoIrahFqbi1lSBHHcUZE4xYtOl89ed7LF2uCkl1Q42iPTJhtwnMzBieOWXvaiC53OIRETtIYQJAdBQZGruvHCBJu6csWBX4jl+xkw0nxj/2Z/MLA/Kvq8/Q8UfHic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:organization:reply-to:to:subject:message-id:user-agent:mime-version:content-type:content-transfer-encoding; b=FEcBK8RCIxlJxLHmwY5007sni8oRr8hgSulsRVJClmftOugqqh8jQF6u0yEpwyisRbZehYMl+vsirubgLVt7fEIxHBKe3T8urBq4yhKbefWs8SNFsX6gfxa6xPa4udyxeQBv6Ns2aIextIw9CNkBUCPzk7VakbpODUYQaOlzibU= Received: by 10.35.99.5 with SMTP id b5mr6851605pym.25.1202064772444; Sun, 03 Feb 2008 10:52:52 -0800 (PST) Received: from lmrmac.uhw.utoledo.edu ( [131.183.86.111]) by mx.google.com with ESMTPS id f45sm16381065pyh.6.2008.02.03.10.52.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Feb 2008 10:52:51 -0800 (PST) Date: Sun, 03 Feb 2008 13:52:50 -0500 From: drgerlists@gmail.com (Dr. Gary E. RAFE) Organization: Dr. Gary E. RAFE To: freebsd-java@freebsd.org Message-ID: <47a60d82.0OKq/4a7ZBRRW7zg4LprbyTa@lmrmac.uhw.utoledo.edu> User-Agent: Heirloom mailx 12.3 7/15/07 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Building Java3D-1.5.1 on FreeBSD 6.2-R/i386 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drgerlists@gmail.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2008 18:52:54 -0000 In case anyone else might be interested in this, building and installing a native Java 3D is not difficult. This procedure was developed and tested on a Toshiba Satellite Pro 6100 running FreeBSD 6.2-R, XFree86-4.7.0, NVIDIA-96.43.01 OpenGL 1.3, JDK-1.5.0_13p7, Ant-1.6.5, and GCC-3.4.6 0. Fetch the source code from CVS at java.net (registration/login required): $ mkdir J3D_WRKDIR $ cd J3D_WRKDIR $ cvs -d :pserver:MYLOGIN@cvs.dev.java.net:/cvs login $ cvs -d :pserver:MYLOGIN@cvs.dev.java.net:/cvs checkout -r rel-1_5_1-fcs \ j3d-core j3d-core-utils vecmath 1. Build and install vecmath package: $ cd vecmath $ ant jar-opt # mkdir -p /PATH_TO/java3d/lib/ext # cd build/opt/lib/ext # install -m 0644 -o root -g wheel vecmath.jar /PATH_TO/java3d/lib/ext # cd /PATH_TO/j2se/jre/lib/ext # ln -s ../../../../java3d/lib/ext/vecmath.jar vecmath.jar 2. Patch, build, and install j3d-core/j3d-utils packages and native OpenGL connection shared library: $ cd J3D_WRKDIR/j3d-core $ fetch http://drgerlists.googlepages.com/patches-j3dcore-151-fbsd-i386.tbz $ tar xjf patches-j3dcore-151-fbsd-i386.tbz $ patch -p0 < patches-j3d-core-1.5.1 $ ant -Dbuild.type=fcs jar-opt # cd build/freebsd-i386/opt/lib/ext # install -m 0644 -o root -g wheel j3dcore.jar /PATH_TO/java3d/lib/ext # install -m 0644 -o root -g wheel j3dutils.jar /PATH_TO/java3d/lib/ext # cd ../i386 # mkdir -p /PATH_TO/java3d/lib/i386 # install -m 0755 -o root -g wheel libj3dcore-ogl.so /PATH_TO/java3d/lib/i386 # cd /PATH_TO/j2se/jre/lib/ext # ln -s ../../../../java3d/lib/ext/j3dcore.jar j3dcore.jar # ln -s ../../../../java3d/lib/ext/j3dutils.jar j3dutils.jar # cd ../i386 # ln -s ../../../../java3d/lib/ext/libj3dcore-ogl.so libj3dcore-ogl.so Some additional observations: Additional optimizations to the native shared library may be included in the ANT build file J3D_WRKDIR/j3d-core/src/native/build.xml. Check out the "value" for the property "bldFlag" under the target "nativeSetup-opt-freebsd". Currently, only "-O" is specified here, though my build uses "-O2 -march=pentium4m". The shared object libj3dcore-ogl.so is linked dynamically to libjawt.so, which lives in JDK_HOME/jre/lib/i386/. The shared object libjawt.so, in turn, requires libmawt.so, which, on my system, resides in either JDK_HOME/jre/lib/i386/headless/, .../i386/motif21/, or .../i386/xawt/. Perhaps a method is available to configure this in the JRE directly -- if so, this would be useful information. For initial testing of the j3d-example applications, I used LD_LIBRARY_PATH=JDK_HOME/jre/lib/i386/motif21 to pick the appropriate shared library. Once Java 3D looked like it was working OK, I put a symbolic link in JDK_HOME/jre/lib/i386/ to this library: # ln -s ./motif21/libmawt.so libmawt.so which allows it to get picked up when testing Java 3D applets from Firefox. I couldn't test the Shading Language (Cg or GLSL) examples in j3d-example, as the video device in this (old) notebook doesn't have these capabilities. Further research into this in NVIDIA documents related to their FreeBSD/Linux drivers suggest that more recent devices can do GLSL. I'd be interested to hear about successes in this area, when it comes time to replace this old Toshiba. I didn't add any capability to build a distribution here (see J3D_WRKDIR/j3d-core/build-tools/). I expect to follow-up on this with the Java 3D project itself to see whether they would entertain an "official" FreeBSD-x86 port/distribution. Comments, corrections, and improvements to any of this are encouraged and welcome. -- Dr Gary E RAFE: drgerlists at gmail dot com From owner-freebsd-java@FreeBSD.ORG Mon Feb 4 06:46:11 2008 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 D827D16A417 for ; Mon, 4 Feb 2008 06:46:11 +0000 (UTC) (envelope-from landonf@bikemonkey.org) Received: from secure.bikemonkey.org (bluefish.bikemonkey.org [69.80.211.101]) by mx1.freebsd.org (Postfix) with ESMTP id C019013C442 for ; Mon, 4 Feb 2008 06:46:11 +0000 (UTC) (envelope-from landonf@bikemonkey.org) Received: from [172.16.99.14] (unknown [172.16.99.14]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by secure.bikemonkey.org (Postfix) with ESMTP id 883761703A; Sun, 3 Feb 2008 22:46:11 -0800 (PST) Message-Id: <93DD7418-A5B7-4870-98D9-9945D4949CA3@bikemonkey.org> From: Landon Fuller To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v915) Date: Sun, 3 Feb 2008 22:46:10 -0800 X-Pgp-Agent: GPGMail d51 (Leopard) X-Mailer: Apple Mail (2.915) Cc: =?ISO-8859-1?Q?Eirik_=D8verby?= Subject: Initial FreeBSD/Sparc64 Port 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, 04 Feb 2008 06:46:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Howdy all, Over the weekend I implemented an initial FreeBSD/Sparc64 port. In =20 theory, it should also be readily portable to NetBSD and OpenBSD sparc =20= platforms: = http://landonf.bikemonkey.org/code/java/Porting_To_FreeBSD_Sparc.20080204.= html This still needs plenty of testing and some additional work, but =20 "Hello, World" runs: landonf@conpanna:~> uname -s -m FreeBSD sparc64 landonf@conpanna:~> bsd-sparc/bin/java -server Hello Hello, World Thanks to Eirik =D8verby for providing access to a sparc64 machine! - -landonf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFHprSylplZCE/15mMRApwKAJ9dtV1ZOOp3DY3xCiEAkEGCwTv4YgCfYigK YAPwx3x6gbrsSh4PmXRP9lU=3D =3DsQz5 -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Mon Feb 4 11:07:03 2008 Return-Path: Delivered-To: freebsd-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 91EDB16A417 for ; Mon, 4 Feb 2008 11:07:03 +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 63DFE13C45A for ; Mon, 4 Feb 2008 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m14B73x0017315 for ; Mon, 4 Feb 2008 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m14B72uI017311 for freebsd-java@FreeBSD.org; Mon, 4 Feb 2008 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Feb 2008 11:07:02 GMT Message-Id: <200802041107.m14B72uI017311@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, 04 Feb 2008 11:07:03 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o java/118956 java eclipse and netbeans break on diablo-jdk15 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w 9 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext f java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 o java/115773 java [request] java.nio channel selectors should use kqueue o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o ports/118088 java java/eclipse-devel: The path of Variable Exec= in fil o java/119063 java An unexpected error has been detected by Java Runtime o java/119654 java jdk 1.6: java.awt.SplashScreen#getSplashScreen throws o java/120146 java netbeans 6.0 crash on amd64 14 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Feb 4 19:30:31 2008 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 275B916A418 for ; Mon, 4 Feb 2008 19:30:31 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from fupp.net (totem.fix.no [80.91.36.20]) by mx1.freebsd.org (Postfix) with ESMTP id DB1D713C442 for ; Mon, 4 Feb 2008 19:30:30 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from localhost (totem.fix.no [80.91.36.20]) by fupp.net (Postfix) with ESMTP id 3FEBC8DAA3B for ; Mon, 4 Feb 2008 20:05:13 +0100 (CET) Received: from fupp.net ([80.91.36.20]) by localhost (totem.fix.no [80.91.36.20]) (amavisd-new, port 10024) with LMTP id 9sC5oTgH0twx for ; Mon, 4 Feb 2008 20:05:12 +0100 (CET) Received: by fupp.net (Postfix, from userid 1000) id C10848DAA3A; Mon, 4 Feb 2008 20:05:12 +0100 (CET) Date: Mon, 4 Feb 2008 20:05:12 +0100 From: Anders Nordby To: freebsd-java@freebsd.org Message-ID: <20080204190512.GA62262@fupp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.11 Subject: Processes stuck in umtx state using libthr 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, 04 Feb 2008 19:30:31 -0000 Hi, I just wonder if anyone else is having problems with Java 1.5 processes getting stuck in umtx state, and spending lots and lots of CPU time? It seems that switching back to the default (kse) threading library libpthread, instead of using libthr, helps. I had been using libthr because it seemed to help avoiding some other bugs/problems, but I guess I just have to stop doing that (with FreeBSD 6, at least). PS: This is on 64-bit platform, FreeBSD 6.3/amd64. On FreeBSD 6.2/i386, using libthr was not a problem for me. Bye, -- Anders.