[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: libsvnjavahl with 0.9.21 on linux - help

From: Michael Schnake <schnake_at_composition.de>
Date: 2004-10-06 18:42:49 CEST

Hi everyone, my first mail to this list...

I got it working, and perhaps this summary on the topic helps others,
too.

To test wether your *existing* libsvnjavahl-1.so is found and has no
undefined symbols you may just run the following minimalistic test:

public class JavahlTest {
  public static void main(String[] args) {
    try {
      System.loadLibrary("svnjavahl-1");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}

If you get an exception like "java.lang.UnsatisfiedLinkError: no
svnjavahl-1 in java.library.path" find the path to your
libsvnjavahl-1.so library (/usr/lib for me) and try to run the test
as

$> LD_LIBRARY_PATH="/usr/lib" java -cp . JavahlTest

or

$> java -Djava.library.path=/usr/lib -cp . JavahlTest

or

$> ln -s /usr/lib/libsvnjavahl-1.so .
$> java -cp . JavahlTest

If that works use one of the ways (as explained in plenty of the other
posts on this topic) to make your VM see the libsvnjavahl-1.so
(creating a symlink in org.tigris.subversion.subclipse.core_0.9.21 is
my favorite ;-) and you are done.

If you get some exception complaining about "undefined symbol" from
running the code given above you are bitten by the -lstdc++ bug. Try

$> ldd -r /usr/lib/libsvnjavahl-1.so

and you should see a good number of those "undefined symbol" errors.
In this case your *existing* libsvnjavahl-1.so is simply "scrap of no
sale value".

For background info see
http://subversion.tigris.org/issues/show_bug.cgi?id=2031

You should follow the Step-by-Step Linux installation guide at
http://subclipse.tigris.org/servlets/ReadMsg?list=users&msgNo=1308 to
build a working libsvnjavahl-1.

If you already now who to compile subversion with javahl support (you
already have an *existing* (albeit broken ;-) libsvnjavahl-1, don't
you) here is a short version:

1. Run configure as usual

2. Edit Makefile , find the line
LT_CXX_LIBADD =
and change it to
LT_CXX_LIBADD = -lstdc++

3. Run make, make javahl etc. as usual.

Or upgrade to libtool-1.5.... ;-)

Hope this helps...
Received on Thu Oct 7 02:42:49 2004

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.