On Mon, 9 Mar 2026 13:56:27 GMT, Matthias Baesken <[email protected]> wrote:
> 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 ? This pull request has now been integrated. Changeset: 4d42ce23 Author: Matthias Baesken <[email protected]> URL: https://git.openjdk.org/jdk/commit/4d42ce23f03ecf256ff4af66446a9b263e37a186 Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod 8379499: [AIX] headless-only build of libjawt.so fails Reviewed-by: mdoerr ------------- PR: https://git.openjdk.org/jdk/pull/30145
