Opened 11 years ago

Last modified 11 years ago

#41378 assigned defect

Installing subversion-javahlbindings (1.8.4) fails on OS X 10.9

Reported by: jan.krabbenbos@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: blair (Blair Zajac), michaelbartz@…, oliver.wagner@…
Port: subversion-javahlbindings

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have tried to install the subversion-javahlbindings (version 1.8.4) on OS X 10.9 (Mavericks, Xcode 5.0.2 installed), but it keeps failing. I have tried several tips and tricks as given on the website, where the most drastic was uninstall MacPorts and reinstall everything.

The messages on the console are:

--->  Fetching archive for subversion-javahlbindings
--->  Attempting to fetch subversion-javahlbindings-1.8.4_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/subversion-javahlbindings
--->  Attempting to fetch subversion-javahlbindings-1.8.4_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/subversion-javahlbindings
--->  Attempting to fetch subversion-javahlbindings-1.8.4_1.darwin_13.x86_64.tbz2 from http://packages.macports.org/subversion-javahlbindings
--->  Fetching distfiles for subversion-javahlbindings
--->  Verifying checksums for subversion-javahlbindings
--->  Extracting subversion-javahlbindings
--->  Applying patches to subversion-javahlbindings
--->  Configuring subversion-javahlbindings
Error: Failed to configure subversion-javahlbindings, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.4/config.log
Error: org.macports.configure for port subversion-javahlbindings returned: configure failure: command execution failed
Please see the log file for port subversion-javahlbindings for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port subversion-javahlbindings failed

The main.log file is attached too. The list of installed programs is:

The following ports are currently installed:
  apache-ant @1.9.2_0 (active)
  apr @1.4.8_0 (active)
  apr-util @1.5.2_1 (active)
  autoconf @2.69_2 (active)
  automake @1.14_0 (active)
  bzip2 @1.0.6_0 (active)
  curl-ca-bundle @7.33.0_0 (active)
  cyrus-sasl2 @2.1.26_1+kerberos (active)
  db46 @4.6.21_8 (active)
  db_select @0.1_2 (active)
  expat @2.1.0_0 (active)
  gdbm @1.10_2 (active)
  gettext @0.18.3.1_1 (active)
  gperf @3.0.4_2 (active)
  hamcrest-core @1.2_0 (active)
  junit @4.6_2 (active)
  kerberos5 @1.11.3_0 (active)
  libcomerr @1.42.7_2 (active)
  libedit @20121213-3.0_0 (active)
  libiconv @1.14_0 (active)
  libmagic @5.15_0 (active)
  libtool @2.4.2_3 (active)
  m4 @1.4.16_0 (active)
  ncurses @5.9_2 (active)
  openssl @1.0.1e_1 (active)
  perl5 @5.12.4_0+perl5_12 (active)
  perl5.12 @5.12.4_2 (active)
  pkgconfig @0.28_0 (active)
  python27 @2.7.6_0 (active)
  python_select @0.3_3 (active)
  scons @2.3.0_0 (active)
  serf1 @1.3.2_0 (active)
  sqlite3 @3.8.0.2_0 (active)
  subversion @1.8.4_1 (active)
  xz @5.0.5_0 (active)
  zlib @1.2.8_0 (active)

Is this a configuration error on my side? Or of the subversion-javahlbindings package?

Attachments (3)

main.log (60.9 KB) - added by jan.krabbenbos@… 11 years ago.
Main.log
main.2.log (51.8 KB) - added by jan.krabbenbos@… 11 years ago.
Newer main.log (20131116)
nick-main.log (47.1 KB) - added by thenickdude (Nicholas Sherlock) 11 years ago.
My main.log

Download all attachments as: .zip

Change History (21)

Changed 11 years ago by jan.krabbenbos@…

Attachment: main.log added

Main.log

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: blair@… added
Description: modified (diff)
Keywords: mavericks added
Owner: changed from macports-tickets@… to dluke@…
Port: subversion-javahlbindings added

The log says:

:info:configure configure: error: Cannot compile JavaHL without a suitable JDK.
:info:configure                   Please specify a suitable JDK using the --with-jdk option.

Off the top of my head, the first question would be: is java installed? It doesn't come preinstalled on OS X anymore, since OS X 10.8. Run java to find out; it'll either give you a usage message if it's already installed, or prompt you to install it if it's not.

comment:2 in reply to:  1 Changed 11 years ago by danielluke (Daniel J. Luke)

Replying to ryandesign@…:

Off the top of my head, the first question would be: is java installed?

Yep, that's almost certainly the case. I'll need to get a 10.9 system without java installed to test so we can add a pre-fetch platform block (like we have for darwin 9/10) -- unless someone else makes a patch first.

comment:3 Changed 11 years ago by danielluke (Daniel J. Luke)

(based on timestamps on my system, I /think/ we can test for /System/Library/Frameworks/JavaVM.framework/Headers/jni.h like in the other variants - but I'll try to set up a fresh install in a VM to verify).

comment:4 Changed 11 years ago by jan.krabbenbos@…

(Thanks for reformatting)

I checked again, as I had indeed some issues with the installed Java. It seemed that after upgrading OS X from 10.8 to 10.9 the Java installation was broken. Eclipse, which I use to develop, complained about it. I reinstalled Java 7 u45 today and the issues with Eclipse are gone. I have tried to rebuild subversion-javahlbindings with this newly installed Java but it still crashes.

comment:5 Changed 11 years ago by danielluke (Daniel J. Luke)

It didn't crash before, so it can't 'still' crash. Can you explain what exactly you did to 'reinstall Java 7 u45' (did you follow Ryan's advice?) and attach a new main.log of a fresh build (after cleaning) if it still fails?

comment:6 Changed 11 years ago by danielluke (Daniel J. Luke)

Owner: changed from dluke@… to dluke@…
Status: newassigned

comment:7 Changed 11 years ago by danielluke (Daniel J. Luke)

jni.h appears to be installed on a fresh Mavericks + Xcode, so that doesn't work. I noticed that /System/Library/Java/JavaVirtualMachines isn't there yet, so maybe we can use that?

I'm a little confused because running javac normally gives me a dialog which links to http://www.oracle.com/technetwork/java/javase/downloads/index.html, but while building gettext, something looks for java and generates a different dialog box asking to install java.

I'll have to experiment some more when I have more time, unless someone else knows what's going on and has a good idea on how to handle it. If we can detect 'no java' some simple way, we can direct people to install Java7 from Oracle and do whatever config is necessary to make the port happy...

comment:8 Changed 11 years ago by jan.krabbenbos@…

With "still crashes" I meant after I have fixed the Java environment I tried to reinstall. And even after a complete removal and reinstallation of MacPorts this happens. I have added a new main.log to the attachments.

What might be an issue is that I have only installed the Java 7 SE JDK and not (yet) the JRE. The directory structure I have in /Library/Java/JavaVirtualMachines is two different JDK directories:

  • jdk1.7.0_25.jdk
  • jdk1.7.0_45.jdk

Changed 11 years ago by jan.krabbenbos@…

Attachment: main.2.log added

Newer main.log (20131116)

comment:9 in reply to:  8 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to jan.krabbenbos@…:

What might be an issue is that I have only installed the Java 7 SE JDK and not (yet) the JRE.

The Java 7 JDK includes a JRE.

comment:10 Changed 11 years ago by michaelbartz@…

Cc: michaelbartz@… added

Cc Me!

comment:11 Changed 11 years ago by oliver.wagner@…

Cc: oliver.wagner@… added

Cc Me!

Changed 11 years ago by thenickdude (Nicholas Sherlock)

Attachment: nick-main.log added

My main.log

comment:12 Changed 11 years ago by thenickdude (Nicholas Sherlock)

Same issue for me. Mac OSX 10.9. I installed JDK 1.7.0_45, and main.log shows that it is found:

:debug:main Discovered JAVA_HOME via /usr/libexec/java_home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home

But configure fails with this message:

:info:configure configure: error: Cannot compile JavaHL without a suitable JDK.
:info:configure                   Please specify a suitable JDK using the --with-jdk
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.4" && ./configure --prefix=/opt/local --with-apr=/opt/local/bin/apr-1-config --with-apr-util=/opt/local/bin/apu-1-config --without-apxs --mandir=\${prefix}/share/man --with-serf=/opt/local --with-sasl=/opt/local --with-libmagic=/opt/local --without-gnome-keyring --enable-javahl --without-jikes --with-junit=/opt/local/share/java/junit.jar --without-berkeley-db 
:info:configure Exit code: 1
:error:configure Failed to configure subversion-javahlbindings, consult /opt/local/var/macports/build/

I've attached my full main.log.

comment:13 Changed 11 years ago by thenickdude (Nicholas Sherlock)

I edited the configure file (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.4/configure) to add this line to the top, which is the value of JAVA_HOME from my environment:

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"

Now it configures and installs without issue with "sudo port install subversion-javahlbindings +no_bdb", and I can once again use JavaHL from Eclipse! I guess the environment normally passed to configure doesn't include the value of JAVA_HOME?

comment:14 in reply to:  13 Changed 11 years ago by jan.krabbenbos@…

Replying to n.sherlock@…:

I edited the configure file (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.4/configure) to add this line to the top, which is the value of JAVA_HOME from my environment:

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"

Now it configures and installs without issue with "sudo port install subversion-javahlbindings +no_bdb", and I can once again use JavaHL from Eclipse! I guess the environment normally passed to configure doesn't include the value of JAVA_HOME?

I have done the same and now it compiles and Eclipse does work too. I checked also if JAVA_HOME was available in the shell, but I do not have it available in the shell. Thanks for the workaround.

comment:15 Changed 11 years ago by danielluke (Daniel J. Luke)

We can use the java port group to try to pass JAVA_HOME in, but I'd like to do better (detect missing java install and prompt, etc.).

Using one of the system prompts to install a jdk, I seem to have a java install that works fine with the port as is, though - so I'd like to be able to reproduce whatever is causing failure for some people as well.

comment:16 in reply to:  13 ; Changed 11 years ago by godsmustbcrazy@…

Replying to n.sherlock@…:

I edited the configure file (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.4/configure) to add this line to the top, which is the value of JAVA_HOME from my environment:

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home"

Now it configures and installs without issue with "sudo port install subversion-javahlbindings +no_bdb", and I can once again use JavaHL from Eclipse! I guess the environment normally passed to configure doesn't include the value of JAVA_HOME?

I am new to the mac world , and am setting up my mac with Eclipse and Subversion. This may be a dumb question but how do you edit the configuration file ? I tried to edit it in TextEditor and it comes up as a locked file .

comment:17 in reply to:  16 Changed 11 years ago by danielluke (Daniel J. Luke)

Replying to godsmustbcrazy@…:

I am new to the mac world , and am setting up my mac with Eclipse and Subversion. This may be a dumb question but how do you edit the configuration file ? I tried to edit it in TextEditor and it comes up as a locked file .

the trac system is our bug reporter and not for end-user support. Feel free to ask for help on the mailing list (or in IRC).

comment:18 in reply to:  15 Changed 11 years ago by gliderj@…

Replying to dluke@…:

We can use the java port group to try to pass JAVA_HOME in, but I'd like to do better (detect missing java install and prompt, etc.).

Using one of the system prompts to install a jdk, I seem to have a java install that works fine with the port as is, though - so I'd like to be able to reproduce whatever is causing failure for some people as well.

Thanks for this thread, it helped me solve my problem! Just to add another data point: I just upgraded from Mountain Lion to Mavericks, which tosses out all Java (by design). I then installed latest Java 6 and then Java 7/55. I then started Xcode as suggested, and then installed MacPorts and attempted to install javahlbindings using: sudo port install subversion-javahlbindings +no_bdb +universal. As noted, this didn't work until I edited (needed to sudo/chmod first) the config file to define JAVA_HOME. My impression is that JAVA_HOME isn't used for most things anymore...

Note: See TracTickets for help on using tickets.