Install of media-libs/libcaca-0.99_beta17 fails with: !!! java/libjava.jar does not exist or is not a file! Reproducible: Always
Created attachment 240103 [details] Install log
Created attachment 240105 [details] paludis.info System info generated by paludis
Works fine with Portage & icedtea6-bin-1.8.0, # ls /var/tmp/portage/media-libs/libcaca-0.99_beta17/work/libcaca-0.99.beta17/java/*.jar libjava.jar And then installed as, >>> /usr/share/libcaca/lib/libcaca.jar Need full build.log (from Portage)
I switched java to icedtea and it works. It seems it fails only with sun-jre-bin. Also I noticed error: !!! ERROR: The javac executable was not found in the Java path
Created attachment 240107 [details] Full install log
From your install.log: > checking for javac... /usr/bin/javac > checking for javah... /usr/bin/javah > checking for jar... /usr/bin/jar > checking jni.h usability... no > checking jni.h presence... no > checking for jni.h... no > checking available language bindings... C++ From my system: checking for javac... /opt/icedtea6-bin-1.8.0/bin/javac checking for javah... /opt/icedtea6-bin-1.8.0/bin/javah checking for jar... /opt/icedtea6-bin-1.8.0/bin/jar checking jni.h usability... yes checking jni.h presence... yes checking for jni.h... yes checking available language bindings... C++ Java So need also the config.log produced by libcaca's ./configure... jni.h is required
Created attachment 240111 [details] config.log
(In reply to comment #7) > Created an attachment (id=240111) [details] > config.log > configure:17233: x86_64-pc-linux-gnu-gcc -c -O2 -march=native -fomit-frame-pointer -pipe -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -I/opt/sun-jre-bin-1.6.0.20/include conftest.c >&5 conftest.c:96:17: error: jni.h: No such file or directory ^^ Notice -I/opt/sun-jre-bin-1.6.0.20/include, that's supposedly where jni.h for sun's java should be. Where is yours? # emerge portage-utils # qfile jni.h
I don't have jni.h for sun-jre-bin. I even reinstalled it to make sure. qfile jni.h dev-java/gnu-classpath (/usr/gnu-classpath-0.98/include/jni.h) dev-java/icedtea (/usr/lib64/icedtea6/include/jni.h) dev-java/icedtea6-bin (/opt/icedtea6-bin-1.8.0/include/jni.h)
(In reply to comment #9) > I don't have jni.h for sun-jre-bin. I even reinstalled it to make sure. + 25 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + libcaca-0.99_beta17.ebuild: + Use java-pkg_get-jni-cflags to get jni.h location wrt #329783, thanks to + Petr Gregor and Petteri Räty. Should be fixed with this, reopen if not.
Thank you.