Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » missing "unistd.h"

UBBFriend: Email this page to someone!    
Author Topic: missing "unistd.h"
Jacky
Junior Member
Member # 499

posted September 05, 2002 08:09 AM      Profile for Jacky     Send New Private Message      Edit/Delete Post  Reply With Quote 
Hi all,

Last week, I started to use MacOSX, and I tried to
build kernel(XNU).
But I have a serious problem.
When I try to build cctools, I get following error message.

%sudo make RC_OS=macos kld_build
cc -g -I.. -I../../include -I. -Wall -Wno-precomp -Wno-long-double -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
/System/Library/Frameworks/Kernel.framework/Headers/sys/file.h:63: header file 'sys/unistd.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[1]: *** [pass1.o] Error 1
make: *** [kld_build] Error 2

Truely, there is no such a header file.
How can I get the file? Please help me.


Posts: 2 | Registered: Sep 2002  |  IP: Logged
apex
Administrator
Member # 1

posted September 09, 2002 12:46 PM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
I have unistd.h in 10.2. Make sure you install the BSD subsytem and the latest version of dev tools.
code:

/usr/include/sys/unistd.h
/usr/include/unistd.h


Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged
Jacky
Junior Member
Member # 499

posted September 11, 2002 01:00 AM      Profile for Jacky     Send New Private Message      Edit/Delete Post  Reply With Quote 
I have installed the latest version of DeveloperTools.
I have /usr/include/sys/unistd.h and /usr/include/unistd.h.
I think cctools requires
/System/Library/Frameworks/Kernel.framework/Headers/sys/unistd.h.
Do you have this one? If you have, did you do something special?

>Make sure you install the BSD subsystem
I don't know what is the BSD subsystem and where to get that.

Posts: 2 | Registered: Sep 2002  |  IP: Logged
DMCrimson
Member
Member # 503

posted October 04, 2002 01:35 AM      Profile for DMCrimson     Send New Private Message      Edit/Delete Post  Reply With Quote 
BSD subsystem is part of OS X...it's on the install CD.
Posts: 15 | From: Finland | Registered: Sep 2002  |  IP: Logged
jpm
Member
Member # 574

posted December 20, 2002 02:10 PM      Profile for jpm     Send New Private Message      Edit/Delete Post  Reply With Quote 
unfortunately it was errantly not included in the kernel framework. you can resolve this issue with:
code:
% sudo cp /usr/include/sys/unistd.h \
/System/Library/Frameworks/Kernel.framework/Headers/sys/

additionally, i have thrown together some of my notes into a doc for building xnu -- this might be helpful: http://www.opendarwin.org/~jpm/xnu.html


Posts: 18 | From: 42° 16.62' north, 83° 45.23' west | Registered: Dec 2002  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2