[MacPorts] #64433: librsvg build failure: Symbol not found: __cg_jpeg_resync_to_restart

MacPorts noreply at macports.org
Fri Jan 14 01:48:44 UTC 2022


#64433: librsvg build failure: Symbol not found: __cg_jpeg_resync_to_restart
------------------------+----------------------
  Reporter:  linolinco  |      Owner:  mascguy
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.1
Resolution:             |   Keywords:
      Port:  librsvg    |
------------------------+----------------------
Changes (by ryandesign):

 * owner:  (none) => mascguy
 * status:  new => assigned


Comment:

 Replying to [ticket:64433 linolinco]:
 > {{{
 > :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_librsvg/librsvg/work/librsvg-2.52.4"
 && /usr/bin/make -j4 -w all CFLAGS="-Os -pipe
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -lobjc
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -arch x86_64"
 > }}}

 The actual relevant error message in the log is before this point,
 therefore, as always, please attach the main.log.

 > Trying to sudo the failed make command from the shell gives:
 >
 > {{{
 > 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
 > Command
 '['/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_librsvg/librsvg/work/librsvg-2.52.4
 /tmp-introspectuk0ipna5/Rsvg-2.0', '--introspect-
 dump=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_librsvg/librsvg/work/librsvg-2.52.4
 /tmp-
 introspectuk0ipna5/functions.txt,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_librsvg/librsvg/work/librsvg-2.52.4
 /tmp-introspectuk0ipna5/dump.xml']' died with <Signals.SIGABRT: 6>.
 > }}}
 >
 > I'm at a loss here - what port is supposed to supply
 /opt/local/lib/libJPEG.dylib?

 The libjpeg-turbo port (or the jpeg port, if you prefer) provides
 /opt/local/lib/libjpeg.dylib. No port provides
 /opt/local/lib/libJPEG.dylib. macOS provides
 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
 and some things in the OS link with that. Apple's libJPEG.dylib and
 MacPorts' libjpeg.dylib are not the same and are not interchangeable. For
 one thing, Apple's has `__cg_jpeg_resync_to_restart` and MacPorts'
 doesn't.

 An error message about /opt/local/lib/libJPEG.dylib can only arise on
 systems with case-insensitive filesystems (whch is the default) and when
 the environment variable `DYLD_LIBRARY_PATH` has been set to
 /opt/local/lib. If you have that set in your environment, unset it. If it
 is the build system that is setting this, it must be changed not to do
 that. Let us wait and see what your main.log contains before we do further
 analysis.

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


More information about the macports-tickets mailing list