Disabling Java works just fine. The problem is in the JDK and how it does its includes. As such, I suggest masking the USE flag for this package.
Here's the error: In file included from ./bindings.c:21: /etc/java-config-2/current-system-vm/include/jni.h:27:20: error: jni_md.h: No such file or directory In file included from ./bindings.c:21: /etc/java-config-2/current-system-vm/include/jni.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jsize' ...and, if you need this: wolf31o2@inertia ~ $ locate jni_md.h /usr/lib/mozilla-firefox/include/java/jni_md.h /opt/blackdown-jdk-1.4.2.03/include/linux/jni_md.h /opt/sun-jdk-1.6.0.03/include/linux/jni_md.h Do you need my emerge --info? It really shouldn't matter for this, but I'm compiling with USE=java and it fails, with USE=-java, it succeeds.
OK, I've spoken with William and we're going to mask the java USE flag for this package for the time being. This isn't a permanent solution, though. Java, do you guys have any clue on what could be done to resolve this? It really looks like the JVM/JDK itself is looking for the header in the wrong place. Is this something we can/should fix? (Leaving the bug open until I hear back from the Java team...)
Created attachment 142535 [details, diff] patch for 3.9 This helps :) And actually installs the jar of the bindings, too!
This has been fixed thanks to assistance from Caster. Also, I cleaned up the ocaml support, thanks to Betelgeuse. Chris, we do not need to mask the java use flag after all. This is resolved. Let me know if we need to re-open.