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

MacPorts noreply at macports.org
Mon Jun 17 11:19:13 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
 Keywords:  snowleopard, powerpc  |       Port:  opencascade
----------------------------------+-------------------------
 I got weird behavior with `opencascade`. First of all, it tries to pull
 symbols for system frameworks from MacPorts prefix:
 {{{
 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

 /opt/local/libexec/opencascade/bin/draw.sh: line 10: 50815 Trace/BPT trap
 DRAWEXE

 dyld: Library not loaded: /opt/local/lib/libjpeg.8.dylib
   Referenced from: /opt/local/lib/libTIFF.dylib
   Reason: image not found
 ^C/opt/local/libexec/opencascade/bin/draw.sh: line 10: 50914 Trace/BPT
 trap          DRAWEXE

 dyld: Symbol not found: _gll_noop
   Referenced from:
 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
   Expected in: /opt/local/lib/libGL.dylib

 /opt/local/libexec/opencascade/bin/draw.sh: line 10: 50968 Trace/BPT trap
 DRAWEXE
 }}}

 This is not linking, it just seems to shade away system libs even for
 system components.

 I have to deactivate `libjpeg-turbo`, `tiff`, `giflib`, `mesa` and
 `libGLU`.
 Once that is done, no more symbols errors, but the app crashes when I try
 to do something in it.
 {{{
 36-25% /opt/local/libexec/opencascade/bin/draw.sh
 Hint: use "pload ALL" command to load standard commands
 Draw[1]> Draw[2]> bgerror failed to handle background error.
     Original error:
     Error in bgerror:
 XIO:  fatal IO error 0 (Unknown error: 0) on X server "/tmp/launch-
 GEIw2u/org.macports:0"
       after 1262 requests (1262 known processed) with 4 events remaining.
 Assertion failed: (ret != inval_id), function _XAllocID, file xcb_io.c,
 line 626.
 /opt/local/libexec/opencascade/bin/draw.sh: line 10: 51019 Abort trap
 }}}

 (Initially there is a malloc error too, but that I have fixed via adding a
 path in the wrapper.)

 Crash aside, such behavior with libraries I see for the first time, I
 think.

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


More information about the macports-tickets mailing list