Re: getting problem while moving from Xcode 2.x to Xcode 3.x
Re: getting problem while moving from Xcode 2.x to Xcode 3.x
- Subject: Re: getting problem while moving from Xcode 2.x to Xcode 3.x
- From: "Arnab Ganguly" <email@hidden>
- Date: Wed, 14 Jan 2009 23:01:07 +0530
Hi All,
Below is the build transcript as asked for.Let me know if more details is required.
Building target "Zlib" of project "Talkback" with configuration "Debug"
Checking Dependencies
Building target "Common" of project "Talkback" with configuration "Debug"
Checking Dependencies
Building target "ExceptionStub" of project "Talkback" with configuration "Debug"
Checking Dependencies
Building target "ExceptionFilter" of project "Talkback" with configuration "Debug"
Checking Dependencies
Ld /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/Objects-normal/ppc/talkback.dylib normal ppc
cd /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode
/Developer/iphone-installs/usr/bin/g++-4.0 -arch ppc -dynamiclib -isysroot /Developer/iphone-installs/SDKs/MacOSX10.4u.sdk -L/Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Debug -F/Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Debug -F/Developer/iphone-installs/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -filelist /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/Objects-normal/ppc/talkback.LinkFileList -exported_symbols_list ExceptionFilter.exported -install_name /usr/local/lib/talkback.dylib -mmacosx-version-min=10.4 -framework ApplicationServices -lCommon -Wl,-single_module -compatibility_version 1 -current_version 1 -o /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/Objects-normal/ppc/talkback.dylib
ld warning: ignoring ___FCIncrementCounter.eh in export list
ld warning: ignoring ___FCClearKeys.eh in export list
ld warning: ignoring ___FCAssert.eh in export list
ld warning: ignoring ___FCDeleteKey.eh in export list
ld warning: ignoring ___FCCreateCounter.eh in export list
ld warning: ignoring ___FCTraceParam.eh in export list
ld warning: ignoring ___FCClearCounters.eh in export list
ld warning: ignoring ___FCDecrementCounter.eh in export list
ld warning: ignoring ___FCCreateKey.eh in export list
ld warning: ignoring ___FCAddIntToKey.eh in export list
ld warning: ignoring ___FCAddDateToKey.eh in export list
ld warning: ignoring ___FCTerminate.eh in export list
ld warning: ignoring ___FCSetCounter.eh in export list
ld warning: ignoring ___FCAddDataToKey.eh in export list
ld warning: ignoring ___FCAssert2.eh in export list
ld warning: ignoring ___FCHeartbeatTimer.eh in export list
ld warning: ignoring ___FCRegisterMemory.eh in export list
ld warning: ignoring ___FCStartTimer.eh in export list
ld warning: ignoring ___FCAssertParam.eh in export list
ld warning: ignoring ___FCEndTimer.eh in export list
ld warning: ignoring ___FCTrace.eh in export list
ld warning: ignoring ___FCInitializeManifest.eh in export list
ld warning: ignoring ___FCSetDisplay.eh in export list
ld warning: ignoring ___FCAssertParam2.eh in export list
ld warning: ignoring ___FCTrigger.eh in export list
ld warning: ignoring ___FCInitialize.eh in export list
ld warning: ignoring ___FCFlushPersistentCounters.eh in export list
ld warning: ignoring ___FCCreatePersistentCounter.eh in export list
ld warning: ignoring ___FCClearKey.eh in export list
ld warning: ignoring ___FCCreatePersistentKey.eh in export list
ld warning: ignoring ___FCLibraryVersion.eh in export list
ld warning: ignoring ___FCUnregisterMemory.eh in export list
ld warning: ignoring ___FCAddStringToKey.eh in export list
ld warning: ignoring ___FCTrigger2.eh in export list
ld warning: ignoring ___FCGetCounter.eh in export list
Undefined symbols:
"get_end()", referenced from:
spResourceLimitsCollector::Collect(BlackBox&, spKeyDataStream*, SPIRAL_TRIGGER_CONTEXT*) in ResourceLimitsC.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Ld /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/Objects-normal/i386/talkback.dylib normal i386
cd /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode
/Developer/iphone-installs/usr/bin/g++-4.0 -arch i386 -dynamiclib -isysroot /Developer/iphone-installs/SDKs/MacOSX10.4u.sdk -L/Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Debug -F/Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Debug -F/Developer/iphone-installs/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -filelist /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/Objects-normal/i386/talkback.LinkFileList -exported_symbols_list ExceptionFilter.exported -install_name /usr/local/lib/talkback.dylib -mmacosx-version-min=10.4 -framework ApplicationServices -lCommon -Wl,-single_module -compatibility_version 1 -current_version 1 -o /Users/bdcuser/arnab/iphone-dev/talkback/talkback/talkback/src/Client/MacOSX/Xcode/build/Talkback.build/Debug/ExceptionFilter.build/Objects-normal/i386/talkback.dylib
ld warning: ignoring ___FCIncrementCounter.eh in export list
ld warning: ignoring ___FCClearKeys.eh in export list
ld warning: ignoring ___FCAssert.eh in export list
ld warning: ignoring ___FCDeleteKey.eh in export list
ld warning: ignoring ___FCCreateCounter.eh in export list
ld warning: ignoring ___FCTraceParam.eh in export list
ld warning: ignoring ___FCClearCounters.eh in export list
ld warning: ignoring ___FCDecrementCounter.eh in export list
ld warning: ignoring ___FCCreateKey.eh in export list
ld warning: ignoring ___FCAddIntToKey.eh in export list
ld warning: ignoring ___FCAddDateToKey.eh in export list
ld warning: ignoring ___FCTerminate.eh in export list
ld warning: ignoring ___FCSetCounter.eh in export list
ld warning: ignoring ___FCAddDataToKey.eh in export list
ld warning: ignoring ___FCAssert2.eh in export list
ld warning: ignoring ___FCHeartbeatTimer.eh in export list
ld warning: ignoring ___FCRegisterMemory.eh in export list
ld warning: ignoring ___FCStartTimer.eh in export list
ld warning: ignoring ___FCAssertParam.eh in export list
ld warning: ignoring ___FCEndTimer.eh in export list
ld warning: ignoring ___FCTrace.eh in export list
ld warning: ignoring ___FCInitializeManifest.eh in export list
ld warning: ignoring ___FCSetDisplay.eh in export list
ld warning: ignoring ___FCAssertParam2.eh in export list
ld warning: ignoring ___FCTrigger.eh in export list
ld warning: ignoring ___FCInitialize.eh in export list
ld warning: ignoring ___FCFlushPersistentCounters.eh in export list
ld warning: ignoring ___FCCreatePersistentCounter.eh in export list
ld warning: ignoring ___FCClearKey.eh in export list
ld warning: ignoring ___FCCreatePersistentKey.eh in export list
ld warning: ignoring ___FCLibraryVersion.eh in export list
ld warning: ignoring ___FCUnregisterMemory.eh in export list
ld warning: ignoring ___FCAddStringToKey.eh in export list
ld warning: ignoring ___FCTrigger2.eh in export list
ld warning: ignoring ___FCGetCounter.eh in export list
Undefined symbols:
"get_end()", referenced from:
spResourceLimitsCollector::Collect(BlackBox&, spKeyDataStream*, SPIRAL_TRIGGER_CONTEXT*) in ResourceLimitsC.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Building target "Keygen" of project "Talkback" with configuration "Debug"
Checking Dependencies
Building target "Transceiver" of project "Talkback" with configuration "Debug"
Checking Dependencies
Building target "Termite" of project "Talkback" with configuration "Debug"
Checking Dependencies
Building target "Talkback" of project "Talkback" with configuration "Debug"
Checking Dependencies
Thanks
-A
Le 14 janv. 09 à 14:59, Arnab Ganguly a écrit :
Hi All,
I am trying to port a code from Xcode 2.4 to Xcode 3.1.I am getting the linking error due to symbols not found for the following function "get_end()", referenced from:"
The same code gets compiled in XCode 2.4 without any issue.I have included the header file #include <mach-o/getsect.h>.
Any help would be very much appreciated.
It's strange as this symbol is properly defined in the libSystem.
Show us the transcript if you want more help.
Note that if you're updating your code, you may consider replace this function call by a better solution as strongly recommended :
man get_end:
These routines provide a stopgap measure to programs that use the UNIX link-editor defined symbols. Use of these routines is very strongly discouraged.
The problem is that any program that is using UNIX link editor defined symbols (_end, _etext or _edata) is making assumptions that the program has the mem-
ory layout of a UNIX program.
This is an incorrect assumption for a program built by the Mach-O link editor. The reason that these routines are provided is that if very minimal assump-
tions about the layout are used and the default format and memory layout of the Mach-O link editor is used to build the program, some things may work by
using the values returned by these routines in place of the addresses of their UNIX link-editor defined symbols. So use at your own risk, and only if you
know what your doing. Or better yet, convert the program to use the appropriate Mach or Mach-O functions. If you are trying to allocate memory use
vm_allocate(2), if you are trying to find out about your address space use vm_region(2) and if you are trying to find out where your program is loaded use
the dyld(3) functions.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden