Daniel L. Rall wrote:
...
> Even though both apr and aprutil are mentioned in build.conf as deps for
> libsvn_swig_java, they do not appear to be getting auto-loaded when
> loading libsvn_swig_java from Java using System.loadLibrary(). Thoughts?
>
> dlr@despot:dlr$ (export
> LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/dlr/src/svn/subversion/bindings/swig/.libs:/usr/local/apr/lib";
> java -classpath
> .:/home/dlr/src/svn/subversion/bindings/swig/java/build/svn-api.jar test)
> Initializing SVN native resources...
> Exception in thread "main" java.lang.UnsatisfiedLinkError: apr_initialize
> at org.tigris.subversion.swig.coreJNI.apr_initialize(Native Method)
> at org.tigris.subversion.swig.core.apr_initialize(core.java:23)
> at
> org.tigris.subversion.util.NativeResources.initialize(NativeResources.java:100)
>
> at test.main(test.java:9)
For some reason libsvn_swig_py.so dynamically links to apr_initialize, while
libsvn_swig_java.so does not. Why?
svn$ nm -o subversion/bindings/swig/.libs/libsvn_swig_.so | grep apr_init
subversion/bindings/swig/.libs/libsvn_swig_py-1.so: U apr_initialize
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 12 23:01:08 2004