Christian gave me access to his machine to debug these issues. Below is
my analysis and references to the fixes I committed to trunk as I went.
On Thu, Feb 19, 2004 at 12:01:54PM +0100, Christian Schaffner wrote:
> I then also get crash reports for each library which (e.g.) say:
>
> ************************************************************************
> ***
> Date/Time: 2004-02-19 11:56:09 +0100
> OS Version: 10.3.2 (Build 7D24)
> Report Version: 2
>
> Command: perl5.8.1
> Path: /usr/bin/perl5.8.1
> Version: ??? (???)
> PID: 10267
> Thread: Unknown
>
> Link (dyld) error:
>
> dyld: perl5.8.1 can't open library: /sw/lib/libsvn_ra_local-1.0.dylib
> (No such file or directory, errno = 2)
> ************************************************************************
> ***
What did you do to produce the above?
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
> Writing Makefile for SVN::_Core
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
> Writing Makefile.client for SVN::_Client
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
> Writing Makefile.delta for SVN::_Delta
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
> Writing Makefile.fs for SVN::_Fs
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
> Writing Makefile.ra for SVN::_Ra
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
> Writing Makefile.repos for SVN::_Repos
> Unrecognized argument in LIBS ignored: '-g'
> Unrecognized argument in LIBS ignored: '-O2'
Found what was causing the above and it is fixed in r8805. --cflags
output from apr-config shouldn't be placed in LIBS. Nor is there a good
reason for the cflags output to be needed on darwin anyway.
> ../../../include/svn_props.h:282: Warning(305): Bad constant value
> (ignored).
Fixed in trunk and 1.0.0-beta1 or newer.
> ld: warning -prebind has no effect with -bundle
I can't replicate this warning. Not sure where you're picking up
-prebind.
However I am getting a warning here:
ld: warning -L: directory name (/usr/local/lib) does not exist
This is actually coming from the compile flags used to link perl. So
this is a bug in your perl config:
perl -MConfig -e 'print $Config{lddlflags},$/;'
-bundle -undefined dynamic_lookup -L/usr/local/lib
> ld: warning can't open dynamic library:
> /sw/lib/libsvn_ra_local-1.0.dylib (checking for undefined symbols may
> be affected) (No such file or directory, errno = 2)
> ld: warning can't open dynamic library: /sw/lib/libsvn_ra_dav-1.0.dylib
> (checking for undefined symbols may be affected) (No such file or
> directory, errno = 2)
> ld: warning can't open dynamic library: /sw/lib/libsvn_ra_svn-1.0.dylib
> (checking for undefined symbols may be affected) (No such file or
> directory, errno = 2)
These aren't technically breaking anything. But they can be fixed by
passing the -dylib_file param to the linker. The problem is I need to
know where the dynamic libs (libsvn_ra_*) are going to be installed in
order to do that... For example the arg would be:
-dylib_file /sw/lib/libsvn_ra_dav-1.0.dylib:/path/to/src/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.0
Right now I don't have that easily. We're talking about splitting the
bindings off anyway. So I'm not inclined to fix this warning right now.
If we do split the bindings off then this issue will go away because
you'll have to have subversion installed before you can build the
bindings.
You could patch them in your fink build to do this. But I'm not sure
it's worth it the bindings work fine without it.
> DYLD_LIBRARY_PATH=/sw/src/svn-ssl-0.37.0-12/subversion-0.37.0/
> subversion/bindings/swig/.libs:/sw/src/svn-ssl-0.37.0-12/subversion
> -0.37.0/subversion/libsvn_client/.libs:/sw/src/svn-ssl-0.37.0-12/
> subversion-0.37.0/subversion/libsvn_delta/.libs:/sw/src/svn-ssl-0.37.0
> -12/subversion-0.37.0/subversion/libsvn_fs/.libs:/sw/src/svn-ssl
> -0.37.0-12/subversion-0.37.0/subversion/libsvn_ra/.libs:/sw/src/svn-
> ssl-0.37.0-12/subversion-0.37.0/subversion/libsvn_repos/.libs:/sw/src/
> svn-ssl-0.37.0-12/subversion-0.37.0/subversion/libsvn_wc/.libs:/sw/src/
> svn-ssl-0.37.0-12/subversion-0.37.0/subversion/libsvn_diff/.libs:/sw/
> src/svn-ssl-0.37.0-12/subversion-0.37.0/subversion/libsvn_subr/.libs
> perl5.8.1 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
> 'blib/arch')" t/*.t
> t/0use.......dyld: perl5.8.1 can't open library:
> /sw/lib/libsvn_ra_local-1.0.dylib (No such file or directory, errno =
> 2)
> t/0use.......dubious
> Test returned status 0 (wstat 5, 0x5)
> DIED. FAILED tests 1-7
> Failed 7/7 tests, 0.00% okay
> t/1repos.....dyld: perl5.8.1 can't open library:
> /sw/lib/libsvn_ra_local-1.0.dylib (No such file or directory, errno =
> 2)
> t/1repos.....dubious
> Test returned status 0 (wstat 5, 0x5)
> DIED. FAILED tests 1-5
> Failed 5/5 tests, 0.00% okay
> t/2fs........dyld: perl5.8.1 can't open library:
> /sw/lib/libsvn_ra_local-1.0.dylib (No such file or directory, errno =
> 2)
> t/2fs........dubious
> Test returned status 0 (wstat 5, 0x5)
> DIED. FAILED tests 1-10
> Failed 10/10 tests, 0.00% okay
> t/3client....dyld: perl5.8.1 can't open library:
> /sw/lib/libsvn_ra_local-1.0.dylib (No such file or directory, errno =
> 2)
> t/3client....dubious
> Test returned status 0 (wstat 5, 0x5)
> DIED. FAILED tests 1-112
> Failed 112/112 tests, 0.00% okay
> t/4pool......dyld: perl5.8.1 can't open library:
> /sw/lib/libsvn_ra_local-1.0.dylib (No such file or directory, errno =
> 2)
> t/4pool......dubious
> Test returned status 0 (wstat 5, 0x5)
> DIED. FAILED tests 1-6
> Failed 6/6 tests, 0.00% okay
> t/5delta.....dyld: perl5.8.1 can't open library:
> /sw/lib/libsvn_ra_local-1.0.dylib (No such file or directory, errno =
> 2)
> t/5delta.....dubious
> Test returned status 0 (wstat 5, 0x5)
> DIED. FAILED tests 1-2
> Failed 2/2 tests, 0.00% okay
> Failed Test Stat Wstat Total Fail Failed List of Failed
> ------------------------------------------------------------------------
> -------
> t/0use.t 0 5 7 7 100.00% 1-7
> t/1repos.t 0 5 5 5 100.00% 1-5
> t/2fs.t 0 5 10 10 100.00% 1-10
> t/3client.t 0 5 112 112 100.00% 1-112
> t/4pool.t 0 5 6 6 100.00% 1-6
> t/5delta.t 0 5 2 2 100.00% 1-2
> Failed 6/6 test scripts, 0.00% okay. 142/142 subtests failed, 0.00%
> okay.
> make: *** [test_dynamic] Error 2
> ### execution of failed, exit code 2
> Failed: compiling svn-ssl-0.37.0-12 failed
Okay a portion of the fix you suggested fixes this. Adding the lib
paths for ra_local, ra_svn and ra_dav is necessary. Committed in r8806.
--
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 21 21:45:46 2004