On Fri, Jun 28, 2013 at 8:00 PM, j. van den hoff
<veedeeh...@googlemail.com> wrote:
> On Fri, 28 Jun 2013 19:31:01 +0200, Stephan Beal <sgb...@googlemail.com>
> wrote:
>
>> Can anyone confirm/deny/elaborate on:
>>
>>
>> http://www.fossil-scm.org/index.html/tktview/bf142968a8db271fb13cf46b715af9ebaad59f44
>
>
> just tested it: yes, I can confirm the problem, although the error message
> is slightly different here:
>
> 8<-----------------------------------
> dyld: Library not loaded: /opt/local/lib/libreadline.6.1.dylib
>   Referenced from: /Users/vdh/Desktop/fossil
>   Reason: no suitable image found.  Did find:
>         /opt/local/lib/libreadline.6.1.dylib: mach-o, but wrong architecture
> Trace/BPT trap
> 8<------------------------------------
>
> also, I see this for the first time. I'm currently using fossil version 1.25
> [878f7008ab] 2013-05-31 17:41:25 UTC
> (compiled from source) which just works fine.
>
> otherwise I can only provide the following bits of information:
>
> 1.
> `/opt/local' is the location used by the (non-Apple) package management
> system Macports (http://www.macports.org/). it's used by many but sure not
> by all mac users. in my case `libreadline.dylib' currently is a softlink to
> libreadline.6.2.dylib, but not libreadline.6.1.dlylib (which apparently what
> fossil is looking for). question is the binary explicitly expecting
> libreadline.6.1 instead of the canonical name libreadline.dylib?
>
> 2.
> a file `libreadline.dylib' is also found in /usr/lib. this should be the
> version 'officially' used by Apple.
>
> naive question: if readline is needed/used by fossil, could the library not
> be linked statically?

For some reason, the libreadline loader reference has an absolute path
instead of relative (or has a modified runtime path).  Searching a bit
took me to this question:

http://stackoverflow.com/questions/4513799/how-to-set-the-runtime-path-rpath-of-an-executable-with-gcc-under-mac-osx

Which could be related.  Maybe a verbose compilation (showing all
compiler and linker flags) could reveal a hint.  But I may also be
wrong, as I'm extrapolating from what I know about ELF binaries, so in
Mach'O may not apply.

Regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to