Summary: | media-gfx/graphviz-2.12 build: error: jni.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | pwoods |
Component: | New packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | crolix, graphics+disabled |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
pwoods
2007-07-23 20:27:31 UTC
You should post the output of emerge --info Looks like the ebuild passes --disable-java explicitly to the configure script so there should be no java built. My guess is some functionality triggered by some USE flag pulls it. So you should also post output of 'emerge -pv graphviz' so that we know what flags you are building it with. # emerge -pv graphviz These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-gfx/graphviz-2.12 USE="X examples perl python -doc -gnome -gtk -nls -pango -ruby -tcl -tk" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB I'm getting the same error while compiling graphviz 2.12. To find out more about this error, I downloaded the current stable version of graphviz from their website (version 2.16) and tried compiling it myself. The weird thing is, if I run configure with the --disable-java parameter, the build fails with the "gv_java.cpp:138:17: error: jni.h: No such file or directory" message, just like the gentoo ebuild. But if I _don't_ use the --disable-java parameter, the build compiles just fine. I should mention that I do have Java installed on my system. Maybe the --disable-java parameter works incorrectly on systems with Java available. Anyway, I can see that this issue has also been filed for graphviz under bug #1212: http://graphviz.org/bugs/b1212.html, so let's hope they'll fix it. In the mean time the workaround for systems such as mine seems to be to enable Java, not disable it. So can we please add a 'java' use flag to the graphviz package and make the --disable-java parameter optional? Try your luck w/ 2.16.1-r3 or later and report back... Thanks. No change, both 2.16.1-r4 and 2.18 fail with the same error. (In reply to comment #5) > No change, both 2.16.1-r4 and 2.18 fail with the same error. > reopen java USE-flag added to media-gfx/graphviz-2.18 - so this should be fixed. |