-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b36
-
generic
-
generic
-
Not verified
Using CentOS 5.2 (supposedly very close to RH Enterprise 5.2) I encountered a build problem building the jdk. The first time the built jdk is used, you get the error "Error: dl failure on line 689" (ignore the 689, that line number will likely be different). The issue is that the launcher cannot load libjvm.so. This only happens if SELINUX is enabled, which it is by default. You can turn SELINUX off, but ideally it would be nice if you could build the jdk with it on, turning SELINUX on and off seems wrong to me.
/XXX/build/linux-i586-fastdebug/bin/java -version
Error: dl failure on line 689
Error: failed /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so, because /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied
The hotspot Makefiles are running chcon on the libjvm.so it creates, but this attribute of the file does not persist through the copy made into the jdk area. So anytime libjvm.so is copied, the chcon command needs to be run to add the right attribute. As to why libjvm.so needs to have chcon run on it, see 6538311.
/XXX/build/linux-i586-fastdebug/bin/java -version
Error: dl failure on line 689
Error: failed /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so, because /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied
The hotspot Makefiles are running chcon on the libjvm.so it creates, but this attribute of the file does not persist through the copy made into the jdk area. So anytime libjvm.so is copied, the chcon command needs to be run to add the right attribute. As to why libjvm.so needs to have chcon run on it, see 6538311.
- relates to
-
JDK-6538311 OpenJDK build fails with 'cannot restore segment prot after reloc'
-
- Closed
-