Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329783 - media-libs/libcaca-0.99_beta17 install fails: java/libjava.jar does not exist
Summary: media-libs/libcaca-0.99_beta17 install fails: java/libjava.jar does not exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-25 13:54 UTC by Petr Gregor
Modified: 2010-07-25 16:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Install log (install.log,17.06 KB, text/plain)
2010-07-25 13:56 UTC, Petr Gregor
Details
paludis.info (paludis.info,15.79 KB, text/plain)
2010-07-25 14:05 UTC, Petr Gregor
Details
Full install log (install.log,125.92 KB, text/plain)
2010-07-25 15:13 UTC, Petr Gregor
Details
config.log (config.log,78.72 KB, text/plain)
2010-07-25 15:42 UTC, Petr Gregor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Gregor 2010-07-25 13:54:33 UTC
Install of media-libs/libcaca-0.99_beta17 fails with:
 !!! java/libjava.jar does not exist or is not a file!

Reproducible: Always
Comment 1 Petr Gregor 2010-07-25 13:56:20 UTC
Created attachment 240103 [details]
Install log
Comment 2 Petr Gregor 2010-07-25 14:05:27 UTC
Created attachment 240105 [details]
paludis.info

System info generated by paludis
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-07-25 14:24:04 UTC
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)
Comment 4 Petr Gregor 2010-07-25 15:12:47 UTC
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

Comment 5 Petr Gregor 2010-07-25 15:13:11 UTC
Created attachment 240107 [details]
Full install log
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-07-25 15:37:43 UTC
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
Comment 7 Petr Gregor 2010-07-25 15:42:16 UTC
Created attachment 240111 [details]
config.log
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-07-25 16:02:10 UTC
(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
Comment 9 Petr Gregor 2010-07-25 16:11:10 UTC
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)
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-07-25 16:26:22 UTC
(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.
Comment 11 Petr Gregor 2010-07-25 16:41:13 UTC
Thank you.