View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Sun Nov 18, 2007 5:21 am Post subject: [SOLVED] subversion can not find blackdown-jdk |
|
|
When I try to upgrade subvertion it can not find java:
Code: | !!! ERROR: The java executable was not found in the Java path
!!! ERROR: The javac executable was not found in the Java path
* Using: sun-jdk-1.6
...
configure: error: Cannot compile JavaHL without a suitable JDK.
Please specify a suitable JDK using the --with-jdk option.
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dev-util/subversion-1.4.5/work/subversion-1.4.5/config.log
*
* ERROR: dev-util/subversion-1.4.5 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* subversion-1.4.5.ebuild, line 121: Called econf '--enable-javahl' '--without-jikes' '--with-jdk=/opt/sun-jdk-1.6.0.03' '--with-swig' '--with-neon=/usr' '--with-apr=/usr/bin/apr-1-config' '--with-apr-util=/usr/bin/apu-1-config' '--with-apxs=/usr/sbin/apxs2' '--with-berkeley-db' '--disable-maintainer-mode' '--enable-nls' '--disable-experimental-libtool' '--disable-mod-activation'
* ebuild.sh, line 638: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/log/portage/dev-util:subversion-1.4.5:20071118-051653.log'.
*
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6 CLASSPATH="." JAVA_HOME="/opt/sun-jdk-1.6.0.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info |
I'm using "blackdown-jdk" and java VM is setup correctly.
java-config --list-available-vms
The following VMs are available for generation-2:
*) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
3) Sun JDK 1.5.0.13 [sun-jdk-1.5]
4) Sun JDK 1.6.0.03 [sun-jdk-1.6]
Why it insists on Sun JDK?
Last edited by Joseph_sys on Sun Nov 18, 2007 9:55 pm; edited 1 time in total |
|
Back to top |
|
 |
alistair Retired Dev


Joined: 15 Jul 2005 Posts: 869
|
Posted: Sun Nov 18, 2007 8:48 pm Post subject: |
|
|
emerge --info
java-check-environment
java-config-1 -L
and check that you haven't deleted your /opt/sun-jdk-1.6.0.03 directory _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
 |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Sun Nov 18, 2007 9:55 pm Post subject: |
|
|
alistair wrote: | emerge --info
java-check-environment
java-config-1 -L
and check that you haven't deleted your /opt/sun-jdk-1.6.0.03 directory |
Solved.
I was under impression that I can have only one java environment, but I guess not. Some application require Sun JDK.
I emerge dev-java/sun-jdk-1.6.x enable it as default and subversion compiled correctly. |
|
Back to top |
|
 |
alistair Retired Dev


Joined: 15 Jul 2005 Posts: 869
|
Posted: Sun Nov 18, 2007 10:44 pm Post subject: |
|
|
Joseph_sys wrote: | Solved.
I was under impression that I can have only one java environment, but I guess not. Some application require Sun JDK.
I emerge dev-java/sun-jdk-1.6.x enable it as default and subversion compiled correctly. |
I wouldn't consider that a solution. _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
 |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Sun Nov 18, 2007 11:01 pm Post subject: |
|
|
alistair wrote: | Joseph_sys wrote: | Solved.
I was under impression that I can have only one java environment, but I guess not. Some application require Sun JDK.
I emerge dev-java/sun-jdk-1.6.x enable it as default and subversion compiled correctly. |
I wouldn't consider that a solution. |
No, I wasn't happy with it either but it worked.
Here is my emerge --info: Code: | emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 AMD Athlon(TM) XP 2500+
Timestamp of tree: Sat, 17 Nov 2007 00:57:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibidio.org/pub/linux/distributions/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.osuosl.org/ http://mirror.datapipe.net/gentoo http://gentoo.binarycompass.org"
LANG="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://10.0.0.101/gentoo-portage"
USE="X acl acpi alsa apache2 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox foomaticdb fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection scanner sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1 type1-fonts unicode usb vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv vesa fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
java-check-environment Code: | * === Java Environment Checker ===
* The purpose of this script is to check the sanity of your Java Environment.
* We have significantly changed and improved the way Java is handled in many
* respects.
* Please refer to our upgrade guide for details:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml
* Checking fastjar ... [ ok ]
* Checking vm_environment_files ... [ ok ]
* Checking user_settings ...
* Running as root. Don't need to check user settings. [ ok ]
* Checking generation_1_system_vm ... [ ok ]
* Checking virtual_provides ... [ ok ]
* Checking overlays_eclasses ... [ ok ]
* Checking package_env ... [ ok ]
* Java environment is sane. Congratulations! |
java-config-1 -L Code: | he following JDKs are available for generation-1:
*) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2.03] |
|
|
Back to top |
|
 |
alistair Retired Dev


Joined: 15 Jul 2005 Posts: 869
|
Posted: Sun Nov 18, 2007 11:20 pm Post subject: |
|
|
Now...
It seems that java-config was trying to use sun-jdk-1.6 before you had even attempted to emerge it.
Have you had =sun-jdk-1.6* installed previously?
and would you be able to
emerge -C =sun-jdk-1.6* && emerge -av subversion again
I would be interested in seeing if it breaks. _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
 |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Sun Nov 18, 2007 11:49 pm Post subject: |
|
|
alistair wrote: | Now...
It seems that java-config was trying to use sun-jdk-1.6 before you had even attempted to emerge it.
Have you had =sun-jdk-1.6* installed previously?
and would you be able to
emerge -C =sun-jdk-1.6* && emerge -av subversion again
I would be interested in seeing if it breaks. |
I emerge -C sun-jdk both 1.5.x and 1.6.x were deleted.
When I re-emerge subversion both: virtual/jdk-1.4.2 and virtual/jre-1.4.2 were installed and subversion re-compiled without any errors.
java-check-environment is running without errors as well.
I guess this is called a solution. |
|
Back to top |
|
 |
alistair Retired Dev


Joined: 15 Jul 2005 Posts: 869
|
Posted: Mon Nov 19, 2007 1:45 am Post subject: |
|
|
Yes. It seems that for some reason /usr/share/java-config-2/vms/sun-jdk-1.6 was still lying around.
So we can put it down to an environmental error  _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
Back to top |
|
 |
|