Problems compiling cctools-590.18
Problems compiling cctools-590.18
- Subject: Problems compiling cctools-590.18
- From: Bastian Müller <email@hidden>
- Date: Sun, 15 Jan 2006 12:18:20 +0100
Hi,
I installed Mac OS X 10.4.2 PPC, did an update to 10.4.3, got the
Developer Tools from the DVD.
XCode was 2.0, downloaded the recent update to 2.2. I've currently
installed:
>>
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5247.obj~4/src/configure --
disable-checking -enable-werror --prefix=/usr --mandir=/share/man --
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
[^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --
build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --
target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5247)
<<
>>
Apple Computer, Inc. version cctools-590.18.obj~10, GNU assembler
version 1.38
<<
So, now I downloaded cctools-590.18.tar.gz and tried to compile it.
It didn't compile. Problems I got/have with cctools:
>>
cc -O -g -I../../include -Wall -Wno-long-double -no-cpp-precomp -
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':
../get_toc_byte_sex.c:49: error: 'SARMAG' undeclared (first use in
this function)
../get_toc_byte_sex.c:49: error: (Each undeclared identifier is
reported only once
../get_toc_byte_sex.c:49: error: for each function it appears in.)
../get_toc_byte_sex.c:52: error: invalid application of 'sizeof' to
incomplete type 'struct ar_hdr'
../get_toc_byte_sex.c:53: error: dereferencing pointer to incomplete
type
../get_toc_byte_sex.c:54: error: invalid application of 'sizeof' to
incomplete type 'struct ar_hdr'
../get_toc_byte_sex.c:56: error: dereferencing pointer to incomplete
type
../get_toc_byte_sex.c:57: error: dereferencing pointer to incomplete
type
../get_toc_byte_sex.c:61: error: invalid application of 'sizeof' to
incomplete type 'struct ar_hdr'
../get_toc_byte_sex.c:68: error: dereferencing pointer to incomplete
type
make[2]: *** [get_toc_byte_sex.o] Error 1
make[1]: *** [static_kld] Error 2
make: *** [all] Error 1
<<
Copied /usr/include/ar.h to include/.
Next thing:
>>
cc -g -I.. -I../../include -I. -Wall -Wno-long-double -no-cpp-precomp
-I/System/Library/Frameworks/System.framework/PrivateHeaders -DRLD -
DKLD -O -c -MD \
-dependency-file ./layout.d -o ./layout.o ../layout.c
In file included from ../layout.c:58:
../../include/mach-o/rld.h:30:29: error: streams/streams.h: No such
file or directory
In file included from ../layout.c:58:
../../include/mach-o/rld.h:34: error: parse error before '*' token
../../include/mach-o/rld.h:40: error: parse error before '*' token
../../include/mach-o/rld.h:48: error: parse error before '*' token
../../include/mach-o/rld.h:51: error: parse error before '*' token
../../include/mach-o/rld.h:56: error: parse error before '*' token
../../include/mach-o/rld.h:60: error: parse error before '*' token
../../include/mach-o/rld.h:64: error: parse error before '*' token
../../include/mach-o/rld.h:71: error: parse error before '*' token
In file included from ../layout.c:65:
../ld.h:345: warning: conflicting types for built-in function 'round'
make[2]: *** [layout.o] Error 1
make[1]: *** [kld_build] Error 2
make: *** [all] Error 1
<<
Can't find streams.h anywhere.
I just used the default configuration. Is there anything I have to set?
Couldn't find any description on how to compile it appropriately.
It would be very cool if somebody could please give me a hint to get
this working.
Thanks.
--
Bastian Müller http://turbo24prg.c3d2.de/
<<</>> http://www.c3d2.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden