Bug 208613 - JAVA_INCLUDE_PATH2 is always NOTFOUND on OpenSolaris
Summary: JAVA_INCLUDE_PATH2 is always NOTFOUND on OpenSolaris
Status: RESOLVED UNMAINTAINED
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE4 (cmake) (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Other
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-26 16:55 UTC by Thorsten Hirsch
Modified: 2022-12-09 12:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Hirsch 2009-09-26 16:55:11 UTC
Version:            (using Devel)
Compiler:          Sun (SunPro) CC 5.5 
OS:                Other
Installed from:    Compiled sources

cmakekde always fails when it comes to kdesupport/soprano/backends/sesame2 with the following error:

===
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
JAVA_INCLUDE_PATH2 (ADVANCED)
   used as include directory in directory /export/home/torti/kde/src/kdesupport/soprano/backends/sesame2

-- Configuring incomplete, errors occurred!
===

In the CMakeLists.txt file of the sesame backend, the only code snippet that makes use of JAVA_INCLUDE_PATH2 is:

====
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" STRLESS "2.6.2")
   set(JNI_INCLUDE_DIRS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH_TWO})
endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" STRLESS "2.6.2")
====

Well, I'm not sure if my version of cmake is > or < than 2.6.2, it's:

$ cmake --version
cmake version 2.6-patch 2

In the correspoding build path, the CMakeCache.txt file tells me:

====
//Path to a file.
JAVA_INCLUDE_PATH:PATH=/usr/java/include

//Path to a file.
JAVA_INCLUDE_PATH2:PATH=JAVA_INCLUDE_PATH2-NOTFOUND

//Path to a library.
JAVA_JVM_LIBRARY:FILEPATH=/usr/java/jre/lib/i386/libjvm.so
====

The path should have been:

/usr/java/include/solaris

I don't know why it doesn't find the path. Maybe the variable's name is not valid (as it is the only one ending with a number)...?

So far, I could only find the following workaround - specifying the variable when calling cmakekde:

cmakekde -DJAVA_INCLUDE_PATH2=/usr/java/include/solaris
Comment 1 Andrew Crouthamel 2018-11-02 23:01:59 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-16 05:22:33 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 3 Justin Zobel 2022-12-08 23:51:14 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Raphael Kubo da Costa 2022-12-09 12:36:11 UTC
I don't think we care about OpenSolaris anymore. I'm closing this bug.