From owner-freebsd-java Sat Jan 4 0:58:31 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 DD82C37B401 for ; Sat, 4 Jan 2003 00:58:29 -0800 (PST) Received: from wspf1.us4.outblaze.com (205-158-62-146.outblaze.com [205.158.62.146]) by mx1.FreeBSD.org (Postfix) with SMTP id 3979643ED8 for ; Sat, 4 Jan 2003 00:58:29 -0800 (PST) (envelope-from ronp@outgun.com) Received: (qmail 26622 invoked from network); 3 Jan 2003 14:01:12 -0000 Received: from unknown (205.158.62.68) by 205-158-62-146.outblaze.com with QMQP; 3 Jan 2003 14:01:12 -0000 Received: (qmail 6043 invoked from network); 4 Jan 2003 08:58:28 -0000 Received: from unknown (HELO ws4-3.us4.outblaze.com) (205.158.62.52) by 205-158-62-153.outblaze.com with SMTP; 4 Jan 2003 08:58:28 -0000 Received: (qmail 4188 invoked by uid 1001); 4 Jan 2003 08:56:51 -0000 Message-ID: <20030104085650.4187.qmail@outgun.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [67.121.253.169] by ws4-3.us4.outblaze.com with http for ronp@outgun.com; Sat, 04 Jan 2003 16:56:50 +0800 From: "Ron Park" To: freebsd-java@freebsd.org Date: Sat, 04 Jan 2003 16:56:50 +0800 Subject: What else did I miss? (Build hotspot on 4.7 Stable) X-Originating-Ip: 67.121.253.169 X-Originating-Server: ws4-3.us4.outblaze.com 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 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