"step 2" Build Error |
By Jonathan A. Zdziarski
Book Price: $39.99 USD
£24.99 GBP
PDF Price: $27.99
Cover | Table of Contents | Forum | Colophon
![]() ![]() |
"step 2" Build Error |
Apr 7 2008, 12:15 AM
Post
#1
|
|
|
New Member ![]() Group: Members Posts: 3 Joined: 6-April 08 Member No.: 197 |
The step which includes:
$ ../../odcctools/configure --target=arm-apple-darwin --disable-ld64 $ make breaks at this point: gcc -o otool main.o ofile_print.o m68k_disasm.o i860_disasm.o m88k_disasm.o i386_disasm.o ppc_disasm.o hppa_disasm.o sparc_disasm.o arm_disasm.o print_objc.o ofile.o -multiply_defined suppress -L..//libstuff -lstuff Undefined symbols: "_print_objc_string_object_section_64", referenced from: _processor in main.o "_print_objc2", referenced from: _processor in main.o ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: *** [otool] Error 1 make: *** [otool] Error 2 As far as I know, there's nothing unusual about my mac: 10.5.2, 4 GB ram, Xcode 3.1. Thanks! |
|
|
|
Apr 7 2008, 02:35 AM
Post
#2
|
|
|
Active Member ![]() ![]() Group: Members Posts: 24 Joined: 1-April 08 Member No.: 187 |
This could have something to do with the new dynamic linker introduced with the Apple SDK. The odcctools package has been freshened to support the new SDK, but the changes have not yet been merged into the public branch. Try swapping out odcctools repository for the branched version with these updates:
cd ../../iphone-dev/odcctools (or wherever this is in your path) svn switch http://iphone-dev.googlecode.com/svn/branc...dcctools-9.2-ld Then retry your configure and make statements. If it builds, this will let you link to both 1.0/1.1 and 1.2/2.0 iPhone frameworks. Let me know how it works out. If you continue to have problems, I'll look into it and provide you with some answers. EDIT: Also make sure you are doing this BEFORE the make, as prescribed by the book: export INCPRIVEXT="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" This post has been edited by jzdziarski: Apr 7 2008, 02:38 AM |
|
|
|
Apr 7 2008, 03:45 AM
Post
#3
|
|
|
New Member ![]() Group: Members Posts: 3 Joined: 6-April 08 Member No.: 197 |
Thanks, Jonathan, for looking into this. I did as you suggested (did the svn swap then started the sequence of steps from "pushd iphone-dev"), but got exactly the same result.
|
|
|
|
Apr 7 2008, 01:26 PM
Post
#4
|
|
|
Active Member ![]() ![]() Group: Members Posts: 24 Joined: 1-April 08 Member No.: 187 |
Last time, you left this out:
export INCPRIVEXT="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" Prior to the make. Have you included this? Can you paste the full list of commands you're typing? And have you tried this from a clean svn? |
|
|
|
Apr 8 2008, 07:14 AM
Post
#5
|
|
|
New Member ![]() Group: Members Posts: 3 Joined: 6-April 08 Member No.: 197 |
Jonathan, thank you for your patience. My problem was due to not-quite-up-to-date Xcode. I got a fresh 3.0 from ADC and started back at the beginning with clean svn extractions. Now, I'm at "Congratulations,...". Thanks!
|
|
|
|
Apr 23 2008, 07:21 AM
Post
#6
|
|
|
New Member ![]() Group: Members Posts: 6 Joined: 22-April 08 Member No.: 246 |
I had this issue too and could only get around it by editing makefiles:
http://code.google.com/p/iphone-dev/issues/detail?id=128 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 16th May 2008 - 12:44 PM |