Mac OS X - error: out-of-line definition of 'getenv' does not match any declaration in 'os' in os_bsd.cpp
Martijn Verburg
martijnverburg at gmail.com
Wed Jun 17 11:06:20 UTC 2015
Hi all,
Building jdk9 on latest Mac OS X, XCode/Clang etc. Not sure if the Mac OS
X build still needs to rely on BSD as such.... I'll dig further but
figured it was worth reporting the initial error.
-------
Note: Recompile with -Xlint:unchecked for details.
/Users/karianna/Documents/workspace/AdoptOpenJDK_Projects/jdk9/hotspot/src/os/bsd/vm/os_bsd.cpp:196:10:
error: out-of-line definition of 'getenv' does not match any declaration in
'os'
bool os::getenv(const char* name, char* buf, int len) {
^~~~~~
1 error generated.
make[10]: *** [os_bsd.o] Error 1
make[10]: *** Waiting for unfinished jobs....
make[9]: *** [the_vm] Error 2
make[8]: *** [product] Error 2
make[7]: *** [generic_build2] Error 2
make[6]: *** [product] Error 2
make[5]: *** [all_product_universal] Error 2
make[4]: *** [universal_product] Error 2
make[3]: ***
[/Users/karianna/Documents/workspace/AdoptOpenJDK_Projects/jdk9/build/macosx-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
Error 2
make[2]: *** [hotspot] Error 2
ERROR: Build failed for targets 'clean images' in configuration
'macosx-x86_64-normal-server-release' (exit code 2)
Hint: If caused by a warning, try configure --disable-warnings-as-errors
make[1]: *** [main] Error 2
make: *** [clean] Error 2
Cheers,
Martijn
More information about the build-dev
mailing list