Hi,
I'm trying to build openjdk8 on OSX 10.9 but it fails.
The first issue is that cc complains about "undefined symbols __FreeBSD__,
__OpenBSD__, __NetBSD".
I worked around that by changing the "#elif (symbol)" lines with #endif/#ifdef
lines.
The next flood of errors look very strange - it seems that objc sources are
used in "plain K&R C" context...
The latest change in hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m was on Oct
13th (7098194: integrate macosx-port changes)
Compiling
/Users/snazy/devel/openjdk8/hotspot/src/share/vm/utilities/workgroup.cpp
Compiling
/Users/snazy/devel/openjdk8/hotspot/src/share/vm/utilities/xmlstream.cpp
Compiling
/Users/snazy/devel/openjdk8/hotspot/src/share/vm/utilities/yieldingWorkgroup.cpp
Making signal interposition lib...
Making SA debugger back-end...
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6,
from
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5,
from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10,
from
/Users/snazy/devel/openjdk8/hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m:26:
/usr/include/objc/NSObject.h:41: error: stray '@' in program
/usr/include/objc/NSObject.h:42: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '-' token
/usr/include/objc/NSObject.h:50: error: expected identifier or '(' before
'interface'
/usr/include/objc/NSObject.h:56: error: expected '{' before '+' token
/usr/include/objc/NSObject.h:87: error: expected '{' before '__attribute__'
/usr/include/objc/NSObject.h:91: error: expected '{' before '+' token
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8,
from
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5,
from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10,
from
/Users/snazy/devel/openjdk8/hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m:26:
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:13: error:
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:14: error:
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:15: error:
expected ')' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:16: error:
expected ')' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:17: error:
expected ')' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:18: error:
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:20: error:
expected ')' before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:21: error:
expected ')' before '*' token
- Robert