[MacPorts] #70235: opencascade: wrong handling of symbols on older macOS

MacPorts noreply at macports.org
Mon Jun 17 22:53:04 UTC 2024


#70235: opencascade: wrong handling of symbols on older macOS
---------------------------+----------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.3
Resolution:                |   Keywords:  snowleopard, powerpc
      Port:  opencascade   |
---------------------------+----------------------------------

Comment (by ryandesign):

 Replying to [ticket:70235 barracuda156]:
 > {{{
 > 36-25% /opt/local/libexec/opencascade/bin/draw.sh
 > Hint: use "pload ALL" command to load standard commands
 > dyld: Symbol not found: __cg_jpeg_resync_to_restart
 >   Referenced from:
 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
 >   Expected in: /opt/local/lib/libJPEG.dylib
 > }}}

 This happens if the environment variable `DYLD_LIBRARY_PATH` is set to
 contain `/opt/local/lib`. I see that draw.sh sources env.sh and that
 env.sh contains:

 {{{#!sh
 if [ "$WOKSTATION" == "mac" ]; then
   if [ "$DYLD_LIBRARY_PATH" != "" ]; then
     export DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${DYLD_LIBRARY_PATH}"
   else
     export DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
   fi
 fi
 }}}

 This is the cause of the problem and has to stop.

-- 
Ticket URL: <https://trac.macports.org/ticket/70235#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list