When building headless on AIX (configure flag --enable-headless-only), we run 
into this linker error :


ld: 0711-317 ERROR: Undefined symbol: awt_GetDrawingSurface
ld: 0711-317 ERROR: Undefined symbol: awt_FreeDrawingSurface
ld: 0711-317 ERROR: Undefined symbol: awt_Lock
ld: 0711-317 ERROR: Undefined symbol: awt_Unlock
ld: 0711-317 ERROR: Undefined symbol: awt_GetComponent
ld: 0711-317 ERROR: Undefined symbol: awt_CreateEmbeddedFrame
ld: 0711-317 ERROR: Undefined symbol: awt_SetBounds
ld: 0711-317 ERROR: Undefined symbol: awt_SynthesizeWindowActivation
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
.ibm-clang: error: linker command failed with exit code 8 (use -v to see 
invocation)

gmake[3]: *** [lib/AwtLibraries.gmk:442: 
/open_jdk/build_aix_headless/support/modules_libs/java.desktop/libjawt.so] 
Error 8


Seems the C sources of libjawt missed the HEADLESS define, it was so far only 
set on Linux.

Maybe we should set this define for all UNIX platforms ?

-------------

Commit messages:
 - JDK-8379499

Changes: https://git.openjdk.org/jdk/pull/30145/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30145&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8379499
  Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/30145.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30145/head:pull/30145

PR: https://git.openjdk.org/jdk/pull/30145

Reply via email to