[vpnc-devel] can't cross-compile vpnc for iPhone, libgcrypt issues
Jason Heffner
jdh132 at psu.edu
Mon Sep 24 18:52:35 CEST 2007
On Sep 24, 2007, at 12:45 PM, Joerg Mayer wrote:
> On Tue, Sep 11, 2007 at 10:10:23AM -0400, Britt Bolen wrote:
>> I'm trying to build libgcrypt so that I can build vpnc on the iphone,
>> but I'm running into a compilation/assembly error that I've not been
>> able to solve.
>>
>> /usr/local/arm-apple-darwin/bin/gcc -DHAVE_CONFIG_H -I. -I. -I..
>> -I../src -I/usr/local/arm-apple-darwin/include -g -O2 -Wall -MT
>> mpih-div.lo -MD -MP -MF .deps/mpih-div.Tpo -c mpih-div.c -fno-common
>> -DPIC -o .libs/mpih-div.o
>> Bad $ operand number in inline asm string: '${:@} Inlined umul_ppmm
>> umull ${1:r}, ${0:r}, ${2:r}, ${3:r}'
>> make[2]: *** [mpih-div.lo] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> The iPhone is an arm processor, though I wasn't able to figure out
>> how
>> mpih-dev.c got the correct #defines to figure out which assembly
>> macro
>> was actually being called...
>
> AFAIK, the iPhone uses a *modified* ARM processor. You'll need
> specially modified tools to compile for it.
>
> ciao
> Joerg
> --
> Joerg Mayer
> <jmayer at loplof.de>
> We are stuck with technology when what we really want is just stuff
> that
> works. Some say that should read Microsoft instead of technology.
There was a really good post at http://tinyurl.com/2pqmul written up
by iPhone Atlas with good links for setting up a dev environment. If
you have any luck at getting it to work I would definitely like to know.
Thanks,
Jason
More information about the vpnc-devel
mailing list