iconv fails to start with message "Library not loaded". Reproducible: Always Steps to Reproduce: 1. emerge libiconv-1.11 2. run iconv Actual Results: % iconv --version dyld: Library not loaded: /Users/tetsushi/Gentoo/usr/lib/libiconv.2.dylib Referenced from: /Users/tetsushi/Gentoo/usr/bin/iconv Reason: Incompatible library version: iconv requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0 Trace/BPT trap Expected Results: % iconv --version iconv (GNU libiconv 1.11) Copyright (C) 2000-2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Bruno Haible. There is no $EPREFIX/usr/lib/libiconv.2.dylib. There is only $EPREFIX/usr/lib/libiconv.dylib symlink to ../../lib/libiconv.dylib. $EPREFIX/lib/libiconv.dylib is symlink to libiconv.2.4.0.dylib. The compatible version of libiconv.2.4.0.dylib is 7.0.0 as required. Thus iconv is refering another libiconv. It is highly probable that the another one is /usr/lib/libiconv.2.2.0.dylib, because its compatible version is 5.0.0 appeared in the error message. I confirm that adding symlink $EPREFIX/usr/lib/libiconv.2.dylib pointing to ../../lib/libiconv.2.dylib solves the problem. I have a feeling that it is similar to the bug #190140 I reported.
I don't think it's related. At the moment I'm testing a fix. It needs some polishing up. Thanks for the bug.
(In reply to comment #1) > I don't think it's related. I mean they seem both caused by moving dylib file around without enough care.
moving libraries around is a hell on Darwin. Sorry. Please sync and emerge portage 2.2.00.7724. After that reemerge libiconv and check if the object is correct afterwards
I've done sync, emerge portage and emerge libiconv. The place of the libiconv iconv pointing to is changed to $EPREFIX/lib/. iconv is working now. Thank you very much.
ok, thanks!