[MacPorts] #30824: xmgr dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib not resolved by posting in description

MacPorts noreply at macports.org
Tue Aug 16 12:49:08 PDT 2011


#30824: xmgr dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib not resolved
by posting in description
----------------------------+-----------------------------------------------
 Reporter:  dixond@…        |       Owner:  mlund@…       
     Type:  defect          |      Status:  new           
 Priority:  Normal          |   Milestone:                
Component:  ports           |     Version:  2.0.1         
 Keywords:                  |        Port:  xmgr openmotif
----------------------------+-----------------------------------------------
Changes (by jmr@…):

  * keywords:  xmgr =>
  * owner:  macports-tickets@… => mlund@…
  * port:  xmgr => xmgr openmotif


Old description:

> When I enter "xmgr" I get the following
> ~: xmgr
> dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
>   Referenced from: /opt/local/lib/libXm.4.dylib
>   Reason: image not found
> Trace/BPT trap
>
> I tried following the steps below, but that didn't help.  I am currently
> running mac osx 10.6.8.
>
> A command failed to run with a message referring to libpng12.0.dylib
>
> Error message:
> dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
>
> Explanation:
> When the libpng port was updated from 1.2.x to 1.4.x, the libpng library
> version changed. Software always links against a specific library
> version, so the ports you currently have installed that depend on libpng
> are linked against a now-nonexistent version of the libpng library. To
> fix this problem, all ports that depend on libpng will need to be rebuilt
> so that they link with the new version of the libpng library. This may be
> quite a few ports.
>
> Workaround:
> We have tried to find all affected ports and incremented the revision
> number. In most cases a simple upgrade should get them all fixed.
>
> sudo port selfupdate
> sudo port upgrade outdated
>
> If this does not help, force a rebuild of the port in question by using
> the following command:
>
> sudo port -n upgrade --force $portname
>
> You should also  file a ticket against the port in question.

New description:

 When I enter "xmgr" I get the following
 {{{
 ~: xmgr
 dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
   Referenced from: /opt/local/lib/libXm.4.dylib
   Reason: image not found
 Trace/BPT trap
 }}}
 I tried following the steps below, but that didn't help.  I am currently
 running mac osx 10.6.8.

 > A command failed to run with a message referring to libpng12.0.dylib

 > Error message:
 > dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib

 > Explanation:
 > When the libpng port was updated from 1.2.x to 1.4.x, the libpng library
 version changed. Software always links against a specific library version,
 so the ports you currently have installed that depend on libpng are linked
 against a now-nonexistent version of the libpng library. To fix this
 problem, all ports that depend on libpng will need to be rebuilt so that
 they link with the new version of the libpng library. This may be quite a
 few ports.

 > Workaround:
 > We have tried to find all affected ports and incremented the revision
 number. In most cases a simple upgrade should get them all fixed.

 > sudo port selfupdate

 > sudo port upgrade outdated

 > If this does not help, force a rebuild of the port in question by using
 the following command:

 > sudo port -n upgrade --force $portname

 > You should also  file a ticket against the port in question.

--

Comment:

 Please remember to cc the maintainer, and to preview and use
 WikiFormatting.

 The openmotif port did get a revision increase when libpng was updated,
 see r75159. So the only explanation I can come up with is that maybe you
 upgraded things in the wrong order by using the -n or -R options.

 When you say you "tried following the steps below," does that mean you ran
 this command?
 {{{
 sudo port -n upgrade --force openmotif
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/30824#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list