Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001181graphvizBuild/Installpublic2007-10-20 11:322013-10-21 11:12
Assigned Toellson 
PlatformOSx86-Linux-OS Version
Summary0001181: Problem compiling Graphviz on Gentoo

When I try to compile Graphviz with Portage I get a load of error messages
with the topmost one: gv_java.cpp:138:17: error: jni.h: No such file or directory
I have allready added my Java Installation (jdk1.6.0_03) to my PATH
( JAVA_HOME="/usr/local/jdk1.6.0_03" ) (I didn't forget env-update)
But the problem still exists.

I also have the same problem with older versions of graphviz.
Additional Information
I really need graphviz for OMNeT++

[ellson] For a quick workaround, configure --disable-java

but first, please send me you config.log

[andrei romanov] I'm getting the same error as described in bug 0001212 while compiling
graphviz 2.12. To find out more about this error, I downloaded version
2.16 from your website 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.

Since I do have Java installed on my system, I would like to suggest
to look into the possibility that the --disable-java parameter works
incorrectly on systems with Java available.
TagsNo tags attached.
VERSION     2.12
Attached Files

- Relationships

-  Notes
User avatar (0000132)
nlebas (reporter)
2011-12-12 20:04
edited on: 2011-12-12 20:24

Just got the same problem on gentoo/linux x86 (media-gfx/graphviz-2.26.3-r3). Actually, the configure file for java is broken on all platforms except redhat/fedora.

configure by default looks for the jvm in /usr/lib/jvm/java, which only exists on redhat.

changing it via --with-javaincludedir is broken because it forgets about the "include/linux" directory (or "include/freebsd" when applicable).

The only workaround is to create the symlink by hand:
* on gentoo: ln -s /etc/java-config-2/current-system-vm /usr/lib/jvm/java
* on debian/ubuntu: ln -s /usr/lib/jvm/default-java /usr/lib/jvm/java
no workaround on non-linux platforms

see also 0002173

User avatar (0000576)
ellson (administrator)
2013-10-21 11:12

Would a gentoo expert please generate a patch to to fix this properly?

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user695
2011-12-12 20:04 nlebas Note Added: 0000132
2011-12-12 20:24 nlebas Note Edited: 0000132 View Revisions
2013-10-21 11:12 ellson Note Added: 0000576

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker