Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120206 - dev-java/rhino-1.5.5-r2 fails to build, could not find
Summary: dev-java/rhino-1.5.5-r2 fails to build, could not find
Status: VERIFIED DUPLICATE of bug 119577
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2006-01-24 10:48 UTC by Mark Dominik Bürkle
Modified: 2006-01-24 18:31 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2006-01-24 10:48:37 UTC
* Applying 1.5.5_jdk15.patch ...                [ ok ]
 * Applying 00_dont-fetch-swing-ex.patch ...     [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/rhino-1.5.5-r2/work/rhino1_5R5 ...
Error: could not find
Error: could not find Java 2 Runtime Environment.

!!! ERROR: dev-java/rhino-1.5.5-r2 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! compilation error
!!! If you need support, post the topmost build error, NOT this status message.

wherever ~ # ldconfig -p | grep libjava (libc6) => /usr/lib/ (libc6) => /usr/lib/ (libc6, hwcap: 0x8000000000000) => /opt/blackdown-jdk- (libc6, hwcap: 0x8000000000000) => /opt/blackdown-jdk-
wherever ~ # grep jre /etc/
wherever ~ # emerge info
Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo i686)
System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
CFLAGS="-march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 -fomit-frame-pointer -ffast-math -pipe"
CONFIG_PROTECT="/etc /lib/rcscripts /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 -fomit-frame-pointer -ffast-math -pipe"
FEATURES="autoconfig distlocks sandbox sfperms strict"
LINGUAS="de en fr"
USE="x86 X aalib acl acpi adns alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 crypt cups curl dvd eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb gd gdbm gif glut gmp gpm gstreamer gtk gtk2 idn imap imlib ipv6 jack java jpeg junit kde lcms ldap libcaca libg++ libwww lirc mad mikmod mmap mmx mmx2 mng motif mozilla mp3 mpeg mysql nas ncurses nls nptl ogg oggvorbis openal opengl openssh pam pcre pdflib perl png python qt quicktime readline recode samba sdl sse sse2 ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xml2 xmlrpc xv xvid zlib elibc_glibc kernel_linux linguas_de linguas_en linguas_fr userland_GNU"

wherever ~ # cat /etc/portage/package.mask


wherever ~ # cat /etc/portage/package.use
app-text/acroread -ldap
dev-db/tora oracle
dev-libs/cyrus-sasl -gdbm berkdb
media-video/mplayer aac alsa arts dga dvb cdparanoia dvd dv dvdread encode esd gif jack jpeg lirc live lzo mad matroska mmx mmxext nls nvidia vorbis opengl -oss png real sdl sse sse2 theora truetype v4l v4l2 win32codecs X xanim xmms xv xvid xvmc
net-fs/autofs -ldap
net-misc/ssh openssh
net-wireless/hostap-driver pcmcia
net-wireless/kismet ethereal
sys-apps/busybox static savedconfig
sys-kernel/gentoo-sources symlink
sys-libs/glibc userlocales

#app-emulation/cedega cvs
#net-www/apache mpm-prefork

from rhino-1.5.5-r2.ebuild:
src_compile() {
    local antflags="jar"
    use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
    ant ${antflags} || die "compilation error"

    cp ${FILESDIR}/jsscript ${T}
    sed -i -e "s/@SLOT@/${SLOT}/" ${T}/jsscript

line 36 is the ant-call and it the "compilation error" exit fits in that, too.

My CLASSPATH seems to be rather short, it's only ".":
wherever ~ # echo $CLASSPATH
wherever ~ # echo $JAVA_HOME
wherever ~ # java-config --jdk-home
wherever ~ # java-config --classpath
wherever ~ #

The end of /usr/bin/ant is 'eval $ant_exec_command' which, when copied to /root/bin/, PATH modified and with an echo before the 'eval' gives

ant_exec_command = exec "/opt/blackdown-jdk-"  -classpath "/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/xerces-2/lib/xercesSamples.jar:/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/xerces-2/lib/xml-apis.jar:/usr/share/xalan/lib/xalan.jar:/usr/share/xalan/lib/serializer.jar:/usr/share/junit/lib/junit.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/bcel/lib/bcel.jar:/usr/share/bsh/lib/bsh.jar:/usr/share/commons-beanutils-1.6/lib/commons-beanutils.jar:/usr/share/commons-collections/lib/commons-collections.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/commons-logging/lib/commons-logging-api.jar:/usr/share/commons-net/lib/commons-net.jar:/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar:/usr/share/jdepend/lib/jdepend.jar:/usr/share/jsch/lib/jsch.jar:/usr/share/jakarta-regexp-1.3/lib/jakarta-regexp.jar:/usr/share/rhino-1.5/lib/js.jar:/usr/share/jython/lib/jython.jar:/opt/blackdown-jdk-" -Dant.home="/usr/share/ant-core" -Dant.library.dir="/usr/share/ant-core/lib"  -cp "."  "jar"

so it seems I have to look at that java over there...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-24 10:56:03 UTC

*** This bug has been marked as a duplicate of 119577 ***
Comment 2 Mark Dominik Bürkle 2006-01-24 18:31:47 UTC
yes, Duplicate, "java" doesn't find its libs as reported in bug#119577 (sun) and in bug#23579 (blackdown).

After unmerging (jre+jdk) and re-emerging, the next "update world" worked flawlessly, including rhino.