Re: /usr/lib64/jvm/java symlink
On 15.05.2016 12:57, Tomasz Pala wrote: I'm trying to compile qgis using gdal: [cut] looks like anything that wants java and used to build is broken. at least on builders. vtk, gdal ... -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: /usr/lib64/jvm/java symlink
On 2016-05-15 11:57, Tomasz Pala wrote: > I'm trying to compile qgis using gdal: > > /usr/bin/ld: warning: libjvm.so, needed by > /usr/lib64/gcc/x86_64-pld-linux/5.3.0/../../../../lib64/libgdal.so, not found > (try using -rpath or -rpath-link) > > gdal.rpm requires libjvm.so, so I've installed the same java version it was > compiled with, i.e. openjdk8-jre-base; however libgdal.so uses > /usr/lib64/jvm/java path, which exists in openjdk8-jdk: > /usr/lib64/jvm/java -> openjdk8-8u72.b15 > JRE contains only > openjdk8-jre -> openjdk8-8u72.b15/jre > symlink. > > Something needs to be fixed: either > - gdal should require JDK package - overkill, or It is link time dependency, so it would be normal do include 'devel' package and JDK is 'devel'. But I agree, it is a bit of overkill here. > - symlink should be moved to JRE, IMHO this is the way to go. or > - symlink should be moved to some java-default package and this one > should be required by gdal, The split between *-jre and *-jre-base is just for this – -jre is the 'default' JRE (only one installed) and -jre-base is the actual JRE, but without anything conflicting with another JRE implementation Jacek ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
/usr/lib64/jvm/java symlink
I'm trying to compile qgis using gdal: /usr/bin/ld: warning: libjvm.so, needed by /usr/lib64/gcc/x86_64-pld-linux/5.3.0/../../../../lib64/libgdal.so, not found (try using -rpath or -rpath-link) gdal.rpm requires libjvm.so, so I've installed the same java version it was compiled with, i.e. openjdk8-jre-base; however libgdal.so uses /usr/lib64/jvm/java path, which exists in openjdk8-jdk: /usr/lib64/jvm/java -> openjdk8-8u72.b15 JRE contains only openjdk8-jre -> openjdk8-8u72.b15/jre symlink. Something needs to be fixed: either - gdal should require JDK package - overkill, or - symlink should be moved to JRE, or - symlink should be moved to some java-default package and this one should be required by gdal, - or anything you can propose, I'm not familiar with java. The one suggestion I might make, is changing java symlink to: /usr/lib64/jvm/java -> openjdk8-jre (without version/build/whatever this is) to make sure, that JRE (e.g. openjdk8-jre) points to the same place in case multiple versions are installed. -- Tomasz Pala ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en