[MacPorts] #58570: ghostscript @9.26 build failure: Library not loaded: /opt/local/lib/libpng16.16.dylib

MacPorts noreply at macports.org
Sun Jun 9 04:12:58 UTC 2019


#58570: ghostscript @9.26 build failure: Library not loaded:
/opt/local/lib/libpng16.16.dylib
------------------------------------------+--------------------
  Reporter:  jhand0867                    |      Owner:  (none)
      Type:  defect                       |     Status:  new
  Priority:  Normal                       |  Milestone:
 Component:  ports                        |    Version:  2.5.4
Resolution:                               |   Keywords:
      Port:  ghostscript freetype libpng  |
------------------------------------------+--------------------

Comment (by ryandesign):

 Replying to [comment:1 jmroot]:
 > {{{
 > dyld: Library not loaded: /opt/local/lib/libpng16.16.dylib
 >    Referenced from: /opt/local/lib/libfreetype.6.dylib
 >    Reason: Incompatible library version: libfreetype.6.dylib requires
 version 53.0.0 or later, but libpng16.16.dylib provides version 44.0.0
 > }}}

 This should not be happening. The libpng port is currently at version
 @1.6.37 and it provides libpng16.16.dylib version 54.0.0.
 libpng16.16.dylib version 44.0.0 was provided by libpng @1.6.27, which
 dates back to December 2016. Somehow you have managed to downgrade your
 libpng port to this version. Please upgrade it to the latest version.

 If `port installed libpng` shows that MacPorts thinks a newer version than
 1.6.27 is installed, then perhaps what happened is that you used a third
 party installer that had itself been built with MacPorts, and it overwrote
 some of your installed ports with whatever older version the installer was
 built with. If this is what happened, it can be nearly impossible to
 identify and manually correct everything that this broke, and the easiest
 solution is to uninstall all ports and then reinstall the ports you want.
 If you can remember what installer you ran that did this, you should also
 report the problem to whoever distributed that installer and advise them
 to fix their installer so that it does not install files into the default
 MacPorts prefix.


 The log also shows a subsequent build attempt which resulted in this
 error:

 {{{
 :info:build dyld: Library not loaded: /opt/local/lib/libidn.11.dylib
 :info:build   Referenced from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.26/./soobj/aux/genarch
 :info:build   Reason: image not found
 :info:build dyld: Library not loaded: /opt/local/lib/libidn.11.dylib
 :info:build   Referenced from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.26/./soobj/aux/echogs
 :info:build   Reason: image not found
 }}}

 When you first tried to build ghostscript, it configured itself to use
 libidn.11.dylib. After the build failure, you must've upgraded the libidn
 port to a new version that provides libidn.12.dylib. You then tried to
 rebuild ghostscript without cleaning before trying again, resulting in
 this error. Clean ghostscript before trying again to avoid this error.

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


More information about the macports-tickets mailing list