[MacPorts] #25842: ddd DYLD_LIBRARY_PATH conflict

MacPorts noreply at macports.org
Wed Jul 28 07:04:01 PDT 2010


#25842: ddd DYLD_LIBRARY_PATH conflict
--------------------------------+-------------------------------------------
 Reporter:  s.t.smith@…         |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.1                                
 Keywords:                      |        Port:  ddd                                  
--------------------------------+-------------------------------------------

Comment(by s.t.smith@…):

 More details.  This is curious: adding the path
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS [a
 symbolic link to ../../] is what breaks functionality.

 '''This works:'''
 {{{
 % setenv DYLD_LIBRARY_PATH
 /Applications/MATLAB_R2010a.app/sys/os/maci64:/opt/local/lib
 % ddd
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/MATLAB
 }}}

 '''This doesn't work:'''
 {{{
 % setenv DYLD_LIBRARY_PATH
 /Applications/MATLAB_R2010a.app/sys/os/maci64:/Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS:/opt/local/lib
 % ddd
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/MATLABdyld:
 Library not loaded: /opt/local/lib/libpng12.0.dylib
   Referenced from: /opt/local/bin/ddd
   Reason: Incompatible library version: ddd requires version 44.0.0 or
 later, but libpng12.0.dylib provides version 40.0.0
 Trace/BPT trap
 }}}

 But the director
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS is
 simply a symbolic link to the first directory in DYLD_LIBRARY_PATH,
 /Applications/MATLAB_R2010a.app/sys/os/maci64:

 {{{
 % ls -l
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS
 lrwxr-xr-x  1 admin  admin  6 Apr  1 14:56
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS@ ->
 ../../
 }}}

 And the conflicted dynamic library is, of course, the same in both these
 directories:
 {{{
 % ls -i /Applications/MATLAB_R2010a.app/bin/maci64/libpng12.0.dylib
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/libpng12.0.dylib
 30245226
 /Applications/MATLAB_R2010a.app/bin/maci64/MATLAB.app/Contents/MacOS/libpng12.0.dylib*
 30245226 /Applications/MATLAB_R2010a.app/bin/maci64/libpng12.0.dylib*
 }}}

 Why should adding this symbolically linked directory to DYLD_LIBRARY_PATH
 cause ddd to fail?

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


More information about the macports-tickets mailing list