Problem to run the newest Red Hat build of OpenJDK 11 on RHEL7.9
Hi,
after installing the latest Red Hat build of OpenJDK 11.0.22 we get the following error when calling the version:
#
./java -version
Error: dl failure on line 606
Error: failed java-11-openjdk-11.0.22.0.7-1.portable.jdk.x86_64/lib/server/libjvm.so, because /lib64/libm.so.6: version `GLIBC_2.27' not found (required by java-11-openjdk-11.0.22.0.7-1.portable.jdk.x86_64/lib/server/libjvm.so)
#
GLIBC 2.17 is released for RHEL 7.9. I also found the following information: Red Hat Enterprise Linux 7.6 adds support for OpenJDK 11 (supported through October 2024)"
https://www.redhat.com/en/blog/technological-transition-openjdk
The question is why there is now a dependency to a newer GLIBC version with the new OpenJDK release. The JDK directly from Oracle works on the same server
#
./java -version
java version "11.0.22" 2024-01-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.22+9-LTS-219)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.22+9-LTS-219, mixed mode)
#
#
objdump -p libjvm.so
libjvm.so: file format elf64-x86-64
Program Header:
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 221
filesz 0x00000000011ce10c memsz 0x00000000011ce10c flags r-x
LOAD off 0x00000000011cf018 vaddr 0x00000000013cf018 paddr 0x00000000013cf018 align 221
filesz 0x00000000000ffa88 memsz 0x00000000001570e8 flags rw-
DYNAMIC off 0x00000000012932b0 vaddr 0x00000000014932b0 paddr 0x00000000014932b0 align 23
filesz 0x0000000000000260 memsz 0x0000000000000260 flags rw-
NOTE off 0x0000000000000200 vaddr 0x0000000000000200 paddr 0x0000000000000200 align 22
filesz 0x0000000000000024 memsz 0x0000000000000024 flags r--
TLS off 0x00000000011cf018 vaddr 0x00000000013cf018 paddr 0x00000000013cf018 align 23
filesz 0x0000000000000008 memsz 0x0000000000000040 flags r--
EH_FRAME off 0x000000000101df54 vaddr 0x000000000101df54 paddr 0x000000000101df54 align 22
filesz 0x0000000000053924 memsz 0x0000000000053924 flags r--
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 24
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
RELRO off 0x00000000011cf018 vaddr 0x00000000013cf018 paddr 0x00000000013cf018 align 20
filesz 0x00000000000c4fe8 memsz 0x00000000000c4fe8 flags r--
Dynamic Section:
NEEDED libdl.so.2
NEEDED libpthread.so.0
NEEDED libm.so.6
NEEDED libc.so.6
NEEDED ld-linux-x86-64.so.2
SONAME libjvm.so
INIT 0x0000000000285f48
FINI 0x0000000000f692d4
INIT_ARRAY 0x00000000013cf020
INIT_ARRAYSZ 0x0000000000001e78
FINI_ARRAY 0x00000000013d0e98
FINI_ARRAYSZ 0x0000000000000008
HASH 0x0000000000000228
GNU_HASH 0x00000000000017c8
STRTAB 0x0000000000004df8
SYMTAB 0x00000000000021b8
STRSZ 0x0000000000001e41
SYMENT 0x0000000000000018
PLTGOT 0x0000000001493510
PLTRELSZ 0x0000000000001830
PLTREL 0x0000000000000007
JMPREL 0x0000000000284718
RELA 0x0000000000007158
RELASZ 0x000000000027d5c0
RELAENT 0x0000000000000018
VERDEF 0x0000000000006ff0
VERDEFNUM 0x0000000000000002
BIND_NOW 0x0000000000000000
FLAGS_1 0x0000000000000001
VERNEED 0x0000000000007028
VERNEEDNUM 0x0000000000000005
VERSYM 0x0000000000006c3a
RELACOUNT 0x000000000001a8d0
Version definitions:
1 0x01 0x091c976f libjvm.so
2 0x00 0x0b4ecc71 SUNWprivate_1.1
Version References:
required from ld-linux-x86-64.so.2:
0x0d696913 0x00 14 GLIBC_2.3
required from libm.so.6:
0x06969187 0x00 15 GLIBC_2.27
0x09691a75 0x00 07 GLIBC_2.2.5
required from libpthread.so.0:
0x09691972 0x00 13 GLIBC_2.3.2
0x09691a75 0x00 05 GLIBC_2.2.5
required from libc.so.6:
0x0d696916 0x00 16 GLIBC_2.6
0x06969191 0x00 12 GLIBC_2.11
0x0d696914 0x00 11 GLIBC_2.4
0x09691974 0x00 10 GLIBC_2.3.4
0x0d696917 0x00 09 GLIBC_2.7
0x0d696913 0x00 08 GLIBC_2.3
0x06969194 0x00 06 GLIBC_2.14
0x09691a75 0x00 04 GLIBC_2.2.5
required from libdl.so.2:
0x09691a75 0x00 03 GLIBC_2.2.5