Building cctools from source is like stabbing yourself in the kidney. You should use darwinbuild if you want to build the Apple-provided source only, or use odcctools if you want additional portability patches to build on multiple OSes and versions and have relocatable -- prefix support.

I've already imported Apple cctools-590.42.1 and Apple ld64-47.2 into odcctools CVS, and will release a snapshot after some more work.

Shantonu

On Jun 5, 2006, at 7:08 PM, Geoffrey Keating wrote:


On 05/06/2006, at 6:55 PM, Jack Howarth wrote:

Geoff,
Okay. I downloaded the cctools-590.42.1.tar.gz and attempted to build it using the same fink packaging script used for odcctools. However I get
a build failure of...

cc -O -g -I../../include -Wall -Wno-long-double -no-cpp-precomp - fno-builtin-round - D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ - D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -static -DRLD - DSA_RLD -fno-builtin -finline -fno-keep-inline-functions -fsigned- bitfields -force_cpusubtype_ALL -msoft-float -nostdinc -I/System/ Library/Frameworks/Kernel.framework/PrivateHeaders/libsa -I/System/ Library/Frameworks/Kernel.framework/PrivateHeaders -I/System/ Library/Frameworks/Kernel.framework/Headers/libsa -I/System/Library/ Frameworks/Kernel.framework/Headers/bsd -I/System/Library/ Frameworks/Kernel.framework/Headers -DKERNEL -DKERNEL_PRIVATE - DAPPLE -DNeXT -DLIBSA_PRIVATE -c \
        -MD -dependency-file ./get_toc_byte_sex.d \
        -o ./get_toc_byte_sex.o ../get_toc_byte_sex.c
../get_toc_byte_sex.c:25:16: error: ar.h: No such file or directory
../get_toc_byte_sex.c: In function 'get_toc_byte_sex':

which has been apparently been reported on the darwin lists without
replies...

http://lists.apple.com/archives/darwin-userlevel/2006/Jan/msg00016.html

Any suggestions for working around this problem?

You probably need to have Xcode 2.3 installed to build this version of cctools. You may also need to use the 10.4u SDK or be working on an Intel machine (My installation of Xcode 2.3 has an ar.h in at least /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ar.h).


Reply via email to