jdk15 build fail
Panagiotis Astithas
past at ebs.gr
Fri Jan 13 01:44:52 PST 2006
David Durham wrote:
> Hi all--
>
> I posted previously, and I'm rereposting that I'm still unable to build
> jdk15. I'll try again to provide more details. One question is where
> can I find a guide to the installation process? I've been using this
> list and the freebsd java page: http://www.freebsd.org/java/. If I
> don't get help soon, I'm switching to Linux... just kidding. So, here
> goes again, these are the steps I've taken and the error details are at
> the end.
>
>
> 1) Linux compatability
>
> I added this on initial installation of FreeBSD 6.0-release. I have the
> following in /etc/fstab:
>
> linprocfs /compat/linux/proc linprocfs rw 0 0
>
> and this seems to be working properly.
>
> 2) cvsup of ports-base and ports-java to release=cvs, tag=.
>
> 3) make install of linux-sun-jdk14 ran successfully.
>
> $ java
> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
>
> Usage ...
>
>
> 4) make install of jdk15 fails. /usr/ports/distfiles contains:
>
> bsd-jdk15-patches-2.tar.bz2
> jdk-1_5_0-bin-scsl.zip
>
>
> Error details follow:
> ----------------------
> Patching file j2se/src/solaris/transport/socket/socket_md.c using Plan A...
> Hunk #1 succeeded at 17.
> Hunk #2 succeeded at 264.
> done
> ===> Applying FreeBSD patches for jdk-1.5.0p2_3
> Ignoring previously applied (or reversed) patch.
> 1 out of 1 hunks ignored--saving rejects to
> ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp.rej
> => Patch patch-hotspot-vm-os_bsd.inline.hpp failed to apply cleanly.
> => Patch(es) patch-control::common::Defs-bsd.gmk
> patch-deploy::common::Defs-bsd.gmk
> patch-deploy::common::DeployRules-solaris.gmk
> patch-deploy::native::msgString.c patch-deploy::native::system_md.c
> patch-deploy::native::system_md.h patch-deploy::ns7-adapter::Makefile
> applied cleanly.
> *** Error code 1
>
> Stop in /usr/ports/java/jdk15.
> ---------------------------
>
>
> Here's the contents of os_bsd.inline.hpp.rej:
> ---------------------------
> ***************
> *** 29,38 ****
>
> inline bool os::allocate_stack_guard_pages() {
> assert(uses_stack_guard_pages(), "sanity check");
> - // XXXBSD: ??
> - // return thr_main();
> - // return pthread_main_np();
> - return true;
> }
>
>
> --- 29,37 ----
>
> inline bool os::allocate_stack_guard_pages() {
> assert(uses_stack_guard_pages(), "sanity check");
> + // Since FreeBSD 4 uses malloc() for allocating the thread stack
> + // there is no need to do anything extra to allocate the guard pages
> + return false;
> }
> -------------------------------
>
>
> Does anyone see what I'm doing wrong?
Remove the offending file from ports/java/jdk15/files/ or even better
remove the entire directory and re-cvsup.
Cheers,
Panagiotis
More information about the freebsd-java
mailing list