Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18908 closed defect (invalid)

Subversion 1.5.6 unsatisfied apr-util dependency

Reported by: dave.whitla@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: svn subversion 1.5.6 apr-util libaprutil Cc: ligurmatic@…
Port: subversion

Description

Installing subversion 1.5.6 results in the following even after uninstalling and cleanly installing the latest versions of apr, apr-util and serf:

$ svn up dyld: Library not loaded: /opt/local/lib/libaprutil-1.0.dylib

Referenced from: /opt/local/bin/svn Reason: Incompatible library version: svn requires version 4.0.0 or later, but libaprutil-1.0.dylib provides version 3.0.0

Trace/BPT trap

Change History (9)

comment:1 Changed 16 years ago by blb@…

Owner: changed from macports-tickets@… to dluke@…

That's odd, apr-util 1.3.4_1 provides 4.4.0 here:

$ otool -L /opt/local/lib/libaprutil-1.0.dylib 
/opt/local/lib/libaprutil-1.0.dylib:
	/opt/local/lib/libaprutil-1.0.dylib (compatibility version 4.0.0, current version 4.4.0)

What is the result of running the following?

port provides /opt/local/lib/libaprutil-1.0.dylib
port installed apr-util

comment:2 Changed 16 years ago by dave.whitla@…

Wow. Quick response :)

$ port provides /opt/local/lib/libaprutil-1.0.dylib
/opt/local/lib/libaprutil-1.0.dylib is provided by: apr-util
$ port installed apr-util
The following ports are currently installed:
  apr-util @1.3.4_1 (active)

So I don't understand this error. Incidentally ...

developer191:~ dwhitla$ $sudo  otool -L /opt/local/lib/libaprutil-1.0.dylib 
/opt/local/lib/libaprutil-1.0.dylib:
	/opt/local/lib/libaprutil-1.0.dylib (compatibility version 4.0.0, current version 4.4.0)
	/opt/local/lib/db46/libdb-4.6.dylib (compatibility version 0.0.0, current version 0.0.0)
	/opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libapr-1.0.dylib (compatibility version 4.0.0, current version 4.3.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

comment:3 Changed 16 years ago by blb@…

Okay, so it's being confused, do you have any DYLD environment variables set?

env |grep DYLD

comment:4 Changed 16 years ago by dave.whitla@…

OUCH

I just modified this the other day for JOGL. I had

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib:/opt/local/lib

in my .bashrc. And the Apple-supplied libaprutil is in /usr/local/lib. All very obvious now. How embarrassing.

Thanks very much for the really fast assistance, and apologies for the non-issue.

Dave

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

comment:6 Changed 16 years ago by ligurmatic@…

Hi. I think I've been having a similar problem to this. What did you do to your .bashrc to get it working in the end?

Thanks!

comment:7 Changed 16 years ago by ligurmatic@…

Cc: ligurmatic@… added

Cc Me!

comment:8 Changed 16 years ago by dave.whitla@…

Basically don't set DYLD_LIBRARY_PATH such that /usr/local/lib is searched before /opt/local/lib if you have installed port libraries which you intend to shadow the Apple shipped ones. You could either have /opt/local/lib set first in DYLD_LIBRARY_PATH environment variable or just don't set it in your shell RC file at all.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.