Peter4Lakers2 / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
0 stars 0 forks source link

Oauth sources 64bit #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy the gdata api source into a 64bit project
2. Follow the wiki for right compiler flags
3. Build!

What is the expected output? What do you see instead?
It should build but i got these errors:

Undefined symbols for architecture x86_64:
  "_SCNetworkReachabilityCreateWithName", referenced from:
      -[GTMOAuth2SignIn startReachabilityCheck] in GTMOAuth2SignIn.o
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[GTMOAuth2SignIn startReachabilityCheck] in GTMOAuth2SignIn.o
      -[GTMOAuth2SignIn stopReachabilityCheck] in GTMOAuth2SignIn.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[GTMOAuth2SignIn startReachabilityCheck] in GTMOAuth2SignIn.o
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[GTMOAuth2SignIn stopReachabilityCheck] in GTMOAuth2SignIn.o
  "_SecKeychainAddGenericPassword", referenced from:
      +[GTMOAuth2WindowController saveAuthToKeychainForName:authentication:] in GTMOAuth2WindowController.o
  "_SecKeychainFindGenericPassword", referenced from:
      +[GTMOAuth2WindowController removeAuthFromKeychainForName:] in GTMOAuth2WindowController.o
      +[GTMOAuth2WindowController authorizeFromKeychainForName:authentication:] in GTMOAuth2WindowController.o
  "_SecKeychainItemDelete", referenced from:
      +[GTMOAuth2WindowController removeAuthFromKeychainForName:] in GTMOAuth2WindowController.o
  "_SecKeychainItemFreeContent", referenced from:
      +[GTMOAuth2WindowController authorizeFromKeychainForName:authentication:] in GTMOAuth2WindowController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)Undefined symbols for architecture x86_64:
  "_SCNetworkReachabilityCreateWithName", referenced from:
      -[GTMOAuth2SignIn startReachabilityCheck] in GTMOAuth2SignIn.o
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[GTMOAuth2SignIn startReachabilityCheck] in GTMOAuth2SignIn.o
      -[GTMOAuth2SignIn stopReachabilityCheck] in GTMOAuth2SignIn.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[GTMOAuth2SignIn startReachabilityCheck] in GTMOAuth2SignIn.o
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[GTMOAuth2SignIn stopReachabilityCheck] in GTMOAuth2SignIn.o
  "_SecKeychainAddGenericPassword", referenced from:
      +[GTMOAuth2WindowController saveAuthToKeychainForName:authentication:] in GTMOAuth2WindowController.o
  "_SecKeychainFindGenericPassword", referenced from:
      +[GTMOAuth2WindowController removeAuthFromKeychainForName:] in GTMOAuth2WindowController.o
      +[GTMOAuth2WindowController authorizeFromKeychainForName:authentication:] in GTMOAuth2WindowController.o
  "_SecKeychainItemDelete", referenced from:
      +[GTMOAuth2WindowController removeAuthFromKeychainForName:] in GTMOAuth2WindowController.o
  "_SecKeychainItemFreeContent", referenced from:
      +[GTMOAuth2WindowController authorizeFromKeychainForName:authentication:] in GTMOAuth2WindowController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What version of the product are you using? On what operating system?
rev. 713

The Oauth source seems not to be optimized for 64bit.

Original issue reported on code.google.com by fprete...@gmail.com on 20 Dec 2011 at 11:30

GoogleCodeExporter commented 9 years ago
You're neglecting to link SystemConfiguration.framework and Security.framework 
from the system.

Original comment by grobb...@google.com on 21 Dec 2011 at 5:41

GoogleCodeExporter commented 9 years ago
I'm sorry i completely forgot about it!

Original comment by fprete...@gmail.com on 21 Dec 2011 at 9:16