Subject: Re: Building for iPhoneSimulator fails (ld: absolute addressing not allowed in slidable image)

Re: Building for iPhoneSimulator fails (ld: absolute addressing not allowed in slidable image)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 1 Feb 2010 23:26:49 +0100 (CET)

On Mon, 1 Feb 2010, Felix Schulze wrote:

> But the build fails with:
>
> ld: absolute addressing (perhaps -mdynamic-no-pic) used in
> __gcry_mpih_add_n from
> /<path>/iphone-sim/lib/libgcrypt.a(mpih-add1-asm.o) not allowed in
> slidable image. Use '-read_only_relocs suppress' to enable text relocs
> collect2: ld returned 1 exit status

Sounds like gcrypt issue to me.

It seems lots of other Mac OSX users have experienced this problem in other
projects, like these:

  http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-January/060574.html
  http://lists.macosforge.org/pipermail/macports-users/2009-May/015332.html
  http://www.mail-archive.com/fink-users@lists.sourceforge.net/msg31571.html

In some cases, it seems to have been because of some kind of conflict with
existing installed stuff in /usr/local.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-01