OpenJDK 7 build fails on Snow Leopard
mvfranz at gmail.com
Sun Sep 13 19:02:07 PDT 2009
I think that _DARWIN_C_SOURCE needs to be included as well. If not, the
pthread methods are not defined.
+ CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
I have successfully tested this on Leopard. Snow Leopard builds but crashes
(this might be way I am building)
On Tue, Sep 8, 2009 at 11:56 AM, Greg Lewis <glewis at eyesbeyond.com> wrote:
> On Fri, Sep 04, 2009 at 02:57:34AM -0700, Venkateshwaralu Srikarunyan
> > I am newbie and was trying to get started with the build for the OpenJDK
> > I was following the wiki by Stephen
> > Bannasch<http://confluence.concord.org/display/%7Estepheneb>at
> > But ended up facing the following build error
> > /ucontext.h:42:2: error: #error ucontext routines are deprecated, and
> > require _XOPEN_SOURCE to be defined
> > Request for guidance from someone to help me get this build up and
> > Thanks.
> You might be the first person to try the build on Snow Leopard :). It
> looks like you need to insert a -D_XOPEN_SOURCE into CFLAGS for the hotspot
> build. Assuming that doesn't break the build on 10.5.x we should probably
> just do it for all the Mac builds. Can you try the following patch?
> --- a/make/bsd/makefiles/vm.make Mon Sep 07 10:57:43 2009 -0700
> +++ b/make/bsd/makefiles/vm.make Tue Sep 08 08:55:15 2009 -0700
> @@ -112,6 +112,7 @@
> JVM = jvm$(G_SUFFIX)
> ifeq ($(OS_VENDOR), Darwin)
> LIBJVM = lib$(JVM).dylib
> + CFLAGS += -D_XOPEN_SOURCE
> LIBJVM = lib$(JVM).so
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bsd-port-dev