General
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX v11.11 Java 5 and Java 6 Unresolved symbol: mincore

Steven J. Saunders
Occasional Advisor

HP-UX v11.11 Java 5 and Java 6 Unresolved symbol: mincore

Not sure if this is the right forum, don't see one just for HP-UX's version of Java. I think it is the HotSpot JRE from Sun so maybe things go there but I get the install depots from HP. Let me know if there is a more appropriate place.

Problem: Trying to use pure Java NIO shared memory in latest Java, both 1.5.0.15 and Java 1.6.0.3. We upgraded to these from much older versions when we first got this problem.

Example Error and example source code with scripts included.
$ ./run2.sh 0
java version "1.6.0.03"
Java(TM) SE Runtime Environment (build 1.6.0.03-jinteg_05_feb_2009_11_19-b00)
Java HotSpot(TM) Server VM (build 11.0-b16-jre1.6.0.03-rc2 PA2.0 (aCC_AA), mixed mode)
2147483647
-2147483648
Setting level to ERROR
/usr/lib/dld.sl: Unresolved symbol: mincore (code) from /opt/java6/jre/lib/PA_RISC2.0/libnio.sl
/usr/lib/dld.sl

Basically, any Java program using NIO shared memory on HPUX will not start successfully because of this error.


Example 2:
./run2.sh 0
java version "1.6.0.03"
Java(TM) SE Runtime Environment (build 1.6.0.03-jinteg_05_feb_2009_11_19-b00)
Java HotSpot(TM) Server VM (build 11.0-b16-jre1.6.0.03-rc2 PA2.0 (aCC_AA), mixed mode)
2147483647
-2147483648
Setting level to ERROR
/usr/lib/dld.sl: Unresolved symbol: mincore (code) from /opt/java6/jre/lib/PA_RISC2.0/libnio.sl
/usr/lib/dld.sl

Related sort of since it seems to be locking up on opening the file in Java,
we have also had weirdness with fopen on a mkfifo (named pipe) from C code. It would block in fopen on HP-UX but not on Solaris, Linux x86 - RedHat and SuSE 2.6kernels and not on AIX 5.2 and 5.3. We had to use open, then fdopen to get the file descriptor and then set the fcntl attributes to non-blocking and then we could use it. fopen just wouldn't return.