[MacPorts] #37395: On PPC Tiger, Mac OS X 10.4.11, tk has a problematic wish: Could not open /opt/local/lib:/opt/local/lib/libtk8.6.dylib

MacPorts noreply at macports.org
Wed Dec 26 12:48:51 PST 2012


#37395: On PPC Tiger, Mac OS X 10.4.11, tk has a problematic wish: Could not open
/opt/local/lib:/opt/local/lib/libtk8.6.dylib
------------------------------+--------------------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.1.2
Resolution:                   |   Keywords:
      Port:  tk               |
------------------------------+--------------------------------

Comment (by macports@…):

 With some searching I found "install_name_tool" (from
 [http://stackoverflow.com/questions/1937232/linking-to-a-dynamic-library-
 on-a-mac-with-full-path a Stack Exchange question about OSX library
 linking with full paths]), which can be used to change the embedded path
 to a dylib within an executable, viz:

 {{{
 sudo install_name_tool -change
 "/opt/local/lib:/opt/local/lib/libtk8.6.dylib"
 "/opt/local/lib/libtk8.6.dylib" /opt/local/bin/wish8.6
 }}}

 and having fixed the libtk8.6.dylib embedded path to be the obvious one
 (with the above command), it will then run, and the port "rev-upgrade"
 check doesn't find any issues.  So that embedded path seems to be the only
 problem (can someone change the ticket subject?)

 That "install_name_tool" manual change should at least provide a temporary
 work around (ie, until the next port build of tk) for anyone who has
 installed the 8.6.0 version and doesn't want to revert to the 8.5.13 (or
 similar) version.

 For reference, full approach:

 {{{
 ewen at bethel:~$ sudo port activate tk @8.6.0_0+x11
 --->  Computing dependencies for tk
 --->  Deactivating tk @8.5.13_0+x11
 --->  Cleaning tk
 --->  Activating tk @8.6.0_0+x11
 --->  Cleaning tk
 ewen at bethel:~$ sudo cp -p /opt/local/bin/wish8.6
 /opt/local/bin/wish8.6-bkup-2012-12-27
 ewen at bethel:~$ sudo install_name_tool -change
 "/opt/local/lib:/opt/local/lib/libtk8.6.dylib"
 "/opt/local/lib/libtk8.6.dylib" /opt/local/bin/wish8.6
 ewen at bethel:~$ otool -L /opt/local/bin/wish8.6
 /opt/local/bin/wish8.6:
         /opt/local/lib/libfontconfig.1.dylib (compatibility version 8.0.0,
 current version 8.2.0)
         /opt/local/lib/libtk8.6.dylib (compatibility version 8.6.0,
 current version 8.6.0)
         /opt/local/lib/libtcl8.6.dylib (compatibility version 8.6.0,
 current version 8.6.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 125.2.11)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 550.44.0)
         /opt/local/lib/libXft.2.dylib (compatibility version 6.0.0,
 current version 6.1.0)
         /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libXss.1.dylib (compatibility version 2.0.0,
 current version 2.0.0)
         /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0,
 current version 11.0.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.7)
 ewen at bethel:~$ sudo port -d -y rev-upgrade 2>&1 | grep -v DEBUG
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 ewen at bethel:~$
 }}}

 Ewen

-- 
Ticket URL: <https://trac.macports.org/ticket/37395#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list