Re: kld_build Error on Darwin 6.5
Hello Felix, Thanks Felix for your help, Felix Kronlage wrote:
On Fri, May 02, 2003 at 03:08:27PM +1200, Michael A. Williams wrote:
Has anyone seen this compiling Darwin 6.5?
[...]
In file included from ../pass1.c:36:
/System/Library/Frameworks/Kernel.framework/Headers/sys/file.h:63:24: No
include path in which to find sys/unistd.h
make[1]: *** [pass1.o] Error 1
make: *** [kld_build] Error 2
it's lacking sys/unistd.h at the proper location:
% sudo cp /usr/include/sys/unistd.h \
/System/Library/Frameworks/Kernel.framework/Headers/sys
Okay then we get the following, [sd10x50:~/src/cctools/ld] mike% make RC_OS=macos cc -g -I.. -I../../include -I. -Wall -Wno-precomp -Wno-long-double -no-cpp-precomp -static -DRLD -DKLD -fno-builtin -finline -fno-keep-inline-functions -fsigned-bitfields -force_cpusubtype_ALL -msoft-float -nostdinc -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 -O -c -MD \ -dependency-file ./pass1.d -o ./pass1.o ../pass1.c In file included from /System/Library/Frameworks/Kernel.framework/Headers/sys/file.h:63, from ../pass1.c:36: /System/Library/Frameworks/Kernel.framework/Headers/sys/unistd.h:190:20: No include path in which to find signal.h make[1]: *** [pass1.o] Error 1 make: *** [kld_build] Error 2 So we edit unistd.h and modify the <signal.h> to be <sys/signal.h> after copying signal.h then we edit the Makefile in cctools/ld from seghack to /usr/local/bin/seghack and that works. I am not sure why some of these additional steps are required, must be my installation related. so far kernel is building ;) Thanks again, Cheers, Mike. -- Michael A. Williams Security Software Engineering and InfoSec Manager NetXSecure NZ Limited, http://www.netxsecure.net Ph: +64.3.318.2973 Fax: +64.3.318.2975 Mob: +64.21.995.914 _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Michael A. Williams