Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jan 2003 16:56:50 +0800
From:      "Ron Park" <ronp@outgun.com>
To:        freebsd-java@freebsd.org
Subject:   What else did I miss?  (Build hotspot on 4.7 Stable)
Message-ID:  <20030104085650.4187.qmail@outgun.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030104085650.4187.qmail>