Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66625 - subversion 1.1.0 javahl support broken (libsvnjavahl-1.so has undefined symbols)
Summary: subversion 1.1.0 javahl support broken (libsvnjavahl-1.so has undefined symbols)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-07 03:09 UTC by Michael Schnake
Modified: 2004-10-08 04:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schnake 2004-10-07 03:09:48 UTC
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).
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2004-10-08 04:47:45 UTC
Hmm. This should have been fixed. I'll reapply the rc2 fix.