problem with latest updates

Greg Lewis glewis at eyesbeyond.com
Tue Mar 8 11:45:42 PST 2011


G'day John,

On Tue, Mar 08, 2011 at 08:50:29AM -0800, John Rose wrote:
> I had a problem building hotspot from the new sources.
> 
> The file bsd_x86_32.s needed some help with a recent change.
> 
> Also, the cpp symbol __APPLE__ wasn't visible.
> 
> The following patch allows libjvm to be built.

Hmmm, this is one I haven't seen.  I'll give the changes a try though.

> -------
> 	hg dif
> diff --git a/make/bsd/makefiles/vm.make b/make/bsd/makefiles/vm.make
> --- a/make/bsd/makefiles/vm.make
> +++ b/make/bsd/makefiles/vm.make
> @@ -125,6 +125,8 @@
>    LIBJVM   = lib$(JVM).dylib
>    LIBJVM_G = lib$(JVM)$(G_SUFFIX).dylib
>    CFLAGS  += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
> +  CFLAGS  += -D__APPLE__
> +  ASFLAGS += -D__APPLE__
>  else
>    LIBJVM   = lib$(JVM).so
>    LIBJVM_G = lib$(JVM)$(G_SUFFIX).so
> diff --git a/src/os_cpu/bsd_x86/vm/bsd_x86_32.s b/src/os_cpu/bsd_x86/vm/bsd_x86_32.s
> --- a/src/os_cpu/bsd_x86/vm/bsd_x86_32.s
> +++ b/src/os_cpu/bsd_x86/vm/bsd_x86_32.s
> @@ -689,8 +689,8 @@
>          # Support for jlong Atomic::load and Atomic::store.
>          # void _Atomic_move_long(volatile jlong* src, volatile jlong* dst)
>          .p2align 4,,15
> -	.type    _Atomic_move_long, at function
> -_Atomic_move_long:
> +	ELF_TYPE(_Atomic_move_long, at function)
> +SYMBOL(_Atomic_move_long):
>          movl     4(%esp), %eax   # src
>          fildll    (%eax)
>          movl     8(%esp), %eax   # dest
> --------
> 

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org



More information about the bsd-port-dev mailing list