Description =========== When building subversion-1.1.0 with javahl support (+java use flag) the resulting /usr/lib/libsvnjavahl-1.so is broken (has undefined symbol errors against libstdc++). One effect of this is that the subclipse plugin for eclipse (providing subversion support) falls back to (inferior) cmdline mode due to missing javahl support. Steps to reproduce ================== Build subversion-1.1.0 with "+java" and run "ldd -r /usr/lib/libsvnjavahl-1.so". This will show several undefined symbol messages. Workaround / Fix ================ To produce a sane libsvnjavahl-1.so the javahl portion of the subversion package must be linked with the "-lstdc++" flag. This seems to be a bug in libtool < 1.5 that is included with the subversion package. See also http://subversion.tigris.org/issues/show_bug.cgi?id=2031. What worked for me is the following simple change to the ebuild (on the overlay copy, of course ;-). Change the "make javahl" call to set LT_CXX_LIBADD -------------------------------------------------- src_compile() { ... if use java; then make JAVACFLAGS="-source 1.3 -encoding iso8859-1" javahl || die "Compilation failed" fi ... } to make LT_CXX_LIBADD="-lstdc++" JAVACFLAGS="-source 1.3 -encoding iso8859-1" javahl || die "Compilation failed" This forces the javahl libs to be correctly linked against c++ (instead of c).
Hmm. This should have been fixed. I'll reapply the rc2 fix.