From owner-freebsd-java Sat Jan 4 1:11:26 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B1E137B401 for ; Sat, 4 Jan 2003 01:11:24 -0800 (PST) Received: from turing.morons.org (turing.morons.org [209.237.229.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BC6E43EEC for ; Sat, 4 Jan 2003 01:11:24 -0800 (PST) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 8D873AC6E; Sat, 4 Jan 2003 01:11:20 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 8B541AC67; Sat, 4 Jan 2003 01:11:20 -0800 (PST) Date: Sat, 4 Jan 2003 01:11:20 -0800 (PST) From: Nick Johnson X-X-Sender: spatula@turing.morons.org To: Ron Park Cc: freebsd-java@freebsd.org Subject: Re: What else did I miss? (Build hotspot on 4.7 Stable) In-Reply-To: <20030104085650.4187.qmail@outgun.com> Message-ID: <20030104011004.Q30835-100000@turing.morons.org> X-what-happen: someone set up us the bomb X-Message-Flags: Spatula MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You need to cvsup to get the MFCed stuff to libc_r; then at the very least you need to rebuild libc_r and install the newer include/pthread*.h files. Nick On Sat, 4 Jan 2003, Ron Park wrote: > I'm working in the project that using a lot of servlet. Our prefered platform in FreeBSD. I myself has been using FreeBSD for a couple years. We first try tomcat with native JDK 1.3 with classic VM. But the performance is not up to what we want. We did try linux-sun-jdk1.3, but got some unexpected result. So, I just trying to build hotspot to see how it would perform. But run into some problem. I'm using 4.7 stable, with lastest port tree sync. My uname -a is > > FreeBSD bulldog.com 4.7-RELEASE FreeBSD 4.7-RELEASE #3: Sun Oct 20 03:55:45 PDT 2002 ronp@bulldog.com:/usr/obj/usr/src/sys/GENERIC i386 > > Here is my steps.. > > 1) Using ports/java/jdk13, make install native JDK 1.3 from port. The port is sync up to lastest, and I'm using patch7. The only thing I change here is to turn on WITH_NATIVE_THREAD=yes. I got the JDK install with native thread enable. I got the following when I run "java -native -version" > > java version "1.3.1-p7" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p7-part-030102-13:40) > Classic VM (build 1.3.1-p7-part-030102-13:40, native threads, nojit) > freebsd-java@freebsd.org > > 2) O.K. now it's time to start off hotspot build. I use the source that already extract in port tree. So, I did > > export ALT_BOOTDIR=/usr/local/linux-jdk1.3.1 > cd /usr/ports/java/jdk13/work/hotspot1.3.1/build/linux > > and then > > gmake core compiler1 compiler2 > > > And this is the error that I got.. > > -------------------------------------------------------------------------------- > Compiling /shared/ports/java/jdk13/work/hotspot1.3.1/build/linux/../../src/os/linux/vm/os_linux.cpp > /shared/ports/java/jdk13/work/hotspot1.3.1/src/os/linux/vm/os_linux.cpp: In function `jint thr_main()': > /shared/ports/java/jdk13/work/hotspot1.3.1/src/os/linux/vm/os_linux.cpp:106: ` pthread_main_np' undeclared (first use this function) > /shared/ports/java/jdk13/work/hotspot1.3.1/src/os/linux/vm/os_linux.cpp:106: (Each > undeclared identifier is reported only once for each function it appears > in.) > gmake[2]: *** [os_linux.o] Error 1 > -------------------------------------------------------------------------------------- > > I have checked libc_r and didn't find pthread_main_np. I look up the list, and saw some mention about a patch on libc_r that add pthread_main_np, but it does sound like for CURRENT branch more. I checked the lastest STABLE tree, and there is no pthread_main_np either. I guess it might not been backport to STABLE yet. > > However, I also saw a lot of posts that successfully build hotspot on 4.7 stable. My question is what else I need to do? Is there any other patchset I need to apply? Or??? > > --RP > -- > ____________________________________________________ > Get your free email from http://www.outgun.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.0 http://www.spatula.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message