[MacPorts] ProblemHotlist modified

MacPorts noreply at macports.org
Tue Mar 20 17:13:46 PDT 2012


Changed page "ProblemHotlist" by ryandesign at macports.org from 70.114.141.44*
Page URL: <https://trac.macports.org/wiki/ProblemHotlist>
Diff URL: <https://trac.macports.org/wiki/ProblemHotlist?action=diff&version=86>
Revision 86
Comment: add "Incompatible library version: X requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0"

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: ProblemHotlist
=========================================================================
--- ProblemHotlist (version: 85)
+++ ProblemHotlist (version: 86)
@@ -72,6 +72,30 @@
 sudo port clean foo
 sudo port install foo configure.compiler=gcc-4.2
 }}}
+
+
+== Incompatible library version: X requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 == #libiconv-version
+
+You might see this error when running a program, or in the main.log or config.log when a port fails to configure or build:
+
+{{{
+dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
+  Referenced from: /path/to/X
+  Reason: Incompatible library version: X requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
+}}}
+
+This usually means libiconv is installed for the wrong architecture(s) and needs to be rebuilt. To rebuild libiconv:
+
+{{{
+sudo port -n upgrade --force libiconv
+}}}
+
+But if libiconv's architecture was wrong, it's likely other ports have the similar problem. The usual reason for architecture mismatches is that you migrated from Leopard or earlier to Snow Leopard or later and did not follow the [wiki:Migration migration instructions].
+
+The error message is confusing. What OS X should be saying is: "The program or library X is linked with /opt/local/lib/libiconv.2.dylib and requires version 8.0.0 of that library. /opt/local/lib/libiconv.2.dylib is at least version 8.0.0, but it's built for the wrong architecture, so I'm going to look around for another libiconv.2.dylib. Ok, I found /usr/lib/libiconv.2.dylib and it's built for the right architectures, so I'll use that instead. Wait, /usr/lib/libiconv.2.dylib is only version 7.0.0. That's too old for X. I'll display an error message that the version is too old."
+
+Another possible culprit is that you have DYLD_LIBRARY_PATH set in your environment; if so, try unsetting it.
+
 
 == man port fails with error message == #manpath
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on ProblemHotlist. If it was not you, please
report to .


More information about the macports-changes mailing list