[MacPorts] #36621: __cg_jpeg_resync_to_restart error on system open and edit commands

MacPorts noreply at macports.org
Mon Oct 15 15:38:05 PDT 2012


#36621: __cg_jpeg_resync_to_restart error on system open and edit commands
------------------------------+--------------------------------
 Reporter:  Deil.Christoph@…  |      Owner:  macports-tickets@…
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  base              |    Version:  2.1.2
 Keywords:                    |       Port:
------------------------------+--------------------------------
 I am getting this error when trying to open a Finder Application window in
 the current working directory from the terminal after putting
 {{{/opt/local/lib}}} on the library path:
 {{{
 $ open .
 $ export DYLD_LIBRARY_PATH=/opt/local/lib
 $ open .
 dyld: Symbol not found: __cg_jpeg_resync_to_restart
   Referenced from:
 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
   Expected in: /opt/local/lib/libJPEG.dylib
  in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
 Trace/BPT trap: 5
 }}}

 I have an astronomy library and command line tools that add
 {{{/opt/local/lib}}} to {{{DYLD_LIBRARY_PATH}}} in a setup script because
 it uses {{{/opt/local/lib/libcfitsio.dylib}}} .
 The problem (if I understand correctly) is that now
 {{{/opt/local/lib/libJPEG.dylib}}} shadows
 {{{/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib}}}
 and some system commands like {{{open DIR}}} or {{{edit FILE}}} give the
 error shown.

 Is this a Macports bug?

 If not, what is the correct alternative to setting
 {{{DYLD_LIBRARY_PATH=/opt/local/lib}}} for (non-Macports) libraries and
 command line tools that require Macports libraries to load?

 Thanks for your help!

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


More information about the macports-tickets mailing list