View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011183CMakeModulespublic2010-08-30 04:332011-03-28 11:40
ReporterJussiP 
Assigned ToMathieu Malaterre 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011183: FindJNI fails on Fedora due to missing path
DescriptionFindJNI can't find libjvm.so on newest Fedora. This is because on Fedora it is here:

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client/libjvm.so
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server/libjvm.so

And this path is not listed in the search directories in FindJNI.cmake.
Additional InformationI tested CMake 2.8. The patches in bug 9611 do not seem to contain these directories.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0022042)
Juhani Simola (reporter)
2010-08-31 17:27

On a related note, the JNI headers located under /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ and /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux are also not found. If JAVA_HOME environment variable is set to /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64, these directories are found and stored to variables JAVA_INCLUDE_PATH and JAVA_INCLUDE_PATH2. However, when compiling, only the first path is set at command line.
The command line works at least on Debian because the header under linux subdirectory, jni_md.h, has been symlinked to main include directory. On Fedora, the symlink does not exist by default.
(0025927)
Mathieu Malaterre (developer)
2011-03-28 11:40

$ git push stage HEAD
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 428 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
To git@cmake.org:stage/cmake.git
 * [new branch] HEAD -> fixbug_0011183

 Issue History
Date Modified Username Field Change
2010-08-30 04:33 JussiP New Issue
2010-08-30 07:41 Kovarththanan Rajaratnam Category CMake => Modules
2010-08-31 17:27 Juhani Simola Note Added: 0022042
2010-12-15 11:55 David Cole Assigned To => Mathieu Malaterre
2010-12-15 11:55 David Cole Status new => assigned
2011-03-28 11:40 Mathieu Malaterre Note Added: 0025927
2011-03-28 11:40 Mathieu Malaterre Status assigned => closed
2011-03-28 11:40 Mathieu Malaterre Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team