Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191028 - iconv fails to start
Summary: iconv fails to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-02 04:58 UTC by MATSUI Tetsushi
Modified: 2007-09-02 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2007-09-02 04:58:59 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2007-09-02 09:46:07 UTC
I don't think it's related.  At the moment I'm testing a fix.  It needs some polishing up.  Thanks for the bug.
Comment 2 MATSUI Tetsushi 2007-09-02 09:55:19 UTC
(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.
Comment 3 Fabian Groffen gentoo-dev 2007-09-02 10:11:04 UTC
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
Comment 4 MATSUI Tetsushi 2007-09-02 11:39:49 UTC
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.
Comment 5 Fabian Groffen gentoo-dev 2007-09-02 11:41:15 UTC
ok, thanks!