jonathanleang / ios-static-libraries

Automatically exported from code.google.com/p/ios-static-libraries
0 stars 0 forks source link

Error building cURL for armv7 architecture #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to build cURL from sources for the device (armv7). Here's what I do:

./build-all.sh (builds using the default SDK 5.1 installed on my device)

However, make fails with following error:

netrc.c: In function 'Curl_parsenetrc':
netrc.c:90: warning: assignment makes pointer from integer without a cast
netrc.c:95: error: dereferencing pointer to incomplete type
make[2]: *** [libcurl_la-netrc.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Also, I see errors in config.log like:

configure:5254: 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/usr/bin/gcc -c -arch armv7 -pipe -no-cpp-precomp -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/SDKs/iPhoneOS5.1.sdk -I/SDKs/ios-static-libraries/iPhoneOS-V7-6.0/include  
conftest.c >&5
conftest.c: In function 'main':
conftest.c:60: error: size of array 'test_array' is negative
configure:5254: $? = 1
configure: failed program was:
| /* confdefs.h */
...
int main (void)
{
 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= 0)];
 test_array [0] = 0
  return 0;
}

By the way, this builds and works fine for i386 architecture, i.e., on the iOS 
simulator.
What can I do to get it to build for the iPhone (armv7)?

Original issue reported on code.google.com by tmanand@gmail.com on 28 Jun 2012 at 11:05