[MacPorts] #57594: dyld error when enabling tests for tk +quartz

MacPorts noreply at macports.org
Tue Nov 13 12:53:42 UTC 2018


#57594: dyld error when enabling tests for tk +quartz
---------------------------+---------------------------------
  Reporter:  chrstphrchvz  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.5.4
Resolution:                |   Keywords:
      Port:  tk            |
---------------------------+---------------------------------

Comment (by MarcusCalhoun-Lopez):

 This is a know issue.\\
 {{{DYLD_FALLBACK_LIBRARY_PATH}}} should be used instead of
 {{{DYLD_LIBRARY_PATH}}}.

 If we run {{{otool -L
 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO}}}, we see
 that the library uses
 {{{/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib}}}.\\
 When {{{DYLD_FALLBACK_LIBRARY_PATH}}} is set to {{{${prefix}/lib}}}, we
 **force** {{{ImageIO}}} to use {{{${prefix}/lib/libjpeg.dylib}}}
 instead.\\
 Th two {{{libjpeg.dylib}}}s have different symbols, hence the error.

 {{{DYLD_FALLBACK_LIBRARY_PATH}}} goes looking for other libraries **only**
 if the requested one cannot be found.

 This issue has cropped up from time to time.\\
 [https://github.com/macports/macports-ports/blob/master/x11/tix/Portfile
 tix] and [https://github.com/macports/macports-
 ports/blob/master/devel/cargo/Portfile cargo] are two I can think of off
 the top of my head.

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


More information about the macports-tickets mailing list