Applications that use subversion's java binding will fail with an UnsatisfiedLinkError exception when the java code in the svn-javahl.jar tries to Loadlibrary() libsvnjavahl-1.so on amd64. This is due to a compilation problem encountered during make javahl and libstdc++. During the compilation, the make process outputs: *** Warning: linker path does not have real file for library -lstdc++. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libstdc++ and none of the candidates passed a file format test *** using a file magic. Last file checked: libstdc++.so.5.0.6 *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. Changing the LT_CXX_LIBADD variable in the Makefile from: LT_CXX_LIBADD = -lstdc++ to: LT_CXX_LIBADD = -L/usr/lib/libstdc++-v3/ -lstdc++ Fixed the problem for me. I've had several other people using gentoo amd64 test this using a small java test program (http://sh.nu/libtest.java) and they all reported the same thing. It seems that the solution should be to find out why configure isn't adding that to the Makefile. Reproducible: Always Steps to Reproduce: 1. FEATURES=keepwork emerge subversion 2. cd $PORTAGE_TMPDIR/subversion-1.1.4/work/subversion-1.1.4 3. make check-javahl Actual Results: All tests fail. Expected Results: All tests should not fail.
(In reply to comment #0) > Steps to Reproduce: > 1. FEATURES=keepwork emerge subversion > 2. cd $PORTAGE_TMPDIR/subversion-1.1.4/work/subversion-1.1.4 > 3. make check-javahl > > Actual Results: > All tests fail. > > Expected Results: > All tests should not fail. In Subversion 1.5_pre26059 only 3 tests failed. 41 tests were succesful. Can you still reproduce this bug?
This happened so long ago, I don't even remember why I opened this bug. But: daniel@dano ~ $ uname -a Linux dano 2.6.22.1 #3 SMP PREEMPT Thu Aug 2 20:53:24 PDT 2007 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux daniel@dano ~ $ eix subversion | grep "Installed versions" Installed versions: 1.4.4-r3(05:17:22 PM 07/18/2007)(apache2 -bash-completion berkdb -elibc_FreeBSD -emacs java nls -nowebdav perl python ruby) daniel@dano ~ $ wget http://sh.nu/libtest.java --15:33:25-- http://sh.nu/libtest.java => `libtest.java' Resolving sh.nu... 216.239.132.100 Connecting to sh.nu|216.239.132.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 837 [text/plain] 100%[=========================================================================================================================>] 837 --.--K/s 15:33:25 (106.87 MB/s) - `libtest.java' saved [837/837] daniel@dano ~ $ javac libtest.java daniel@dano ~ $ LD_LIBRARY_PATH=/usr/lib java libtest Trying svnjavahl-1 Success! I'd say it's fixed. Daniel