Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#57692 closed defect (fixed)

cargo upgrade to 0.31.1_1 fails due to dyld: Symbol not found

Reported by: hapaguy (Brian Kurt Fujikawa) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: cargo

Description

Xcode 10.1 on macOS 10.14.1

cargo upgrade to 0.31.1_1 fails:

$ sudo port -sv upgrade cargo
...
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
...

I believe that this issue is due to the wrong libJPEG.dylib is loaded, i.e.

/opt/local/lib/libJPEG.dylib

is loaded instead of the correct:

/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib

This issue has been encountered in the past on other ports, for example: #57594.

Attachments (1)

main.log (126.9 KB) - added by hapaguy (Brian Kurt Fujikawa) 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by hapaguy (Brian Kurt Fujikawa)

Attachment: main.log added

comment:1 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:2 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Owner: set to MarcusCalhoun-Lopez
Resolution: fixed
Status: newclosed

comment:3 Changed 3 years ago by l2dy (Zero King)

In 25afe58050b2d5eb3b0cb76351086d7935483006/macports-ports (master):

ruby{24,25}: avoid setting DYLD_LIBRARY_PATH

Fix building some [gems with extensions](https://guides.rubygems.org/gems-with-extensions/).

A similar issue was discovered in cargo, see #57692.

Upstream fix was applied in Ruby 2.6:

$ grep LIBPATHENV=DYLD ruby-2.*/configure
ruby-2.4.9/configure: : ${LIBPATHENV=DYLD_LIBRARY_PATH}
ruby-2.5.7/configure: : ${LIBPATHENV=DYLD_LIBRARY_PATH}
ruby-2.6.5/configure: : ${LIBPATHENV=DYLD_FALLBACK_LIBRARY_PATH}

Upstream commit: https://github.com/ruby/ruby/commit/1961c786aab243b3eb60e7238224e87975d88056

Note: See TracTickets for help on using tickets.