Re: sysent and XCode
Re: sysent and XCode
- Subject: Re: sysent and XCode
- From: "D.Walsh" <email@hidden>
- Date: Fri, 29 Apr 2005 08:03:33 -0400
- Mta-interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com
On Apr 29, 2005, at 07:13, Marco Bambini wrote:
Hi All,
I am writing a Kernel Extension with XCode 1.5 on Panther and I need to use the sysent system call.
The problem is that if I write something like:
#include <sys/syscall.h>
then I have a compilation error:
"sys/syscall.h: No such file or directory"
Please note that the file /usr/include/sys/syscall.h exists, and if I modify the include statement with:
#include < /usr/include/sys/syscall.h>
Then it now compiles fine...
Why? Any help?
Thanks a lot,
Marco Bambini
I've seen this problem pop up when you have the SDK's installed then decide to delete them to save disk space or they are never installed and an XCode project is defaulting to use the 10.3.0 SDK
I'd look at the target your building for, if all of the Developer SDK's are installed you will have the several options for building, the first one (current OS) would be your running files. (/usr/lib /usr/include)
Here's where the syscall.h files are located on a full install of the SDK's
/Developer/SDKs/MacOSX10.1.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/syscall.h
/Developer/SDKs/MacOSX10.1.5.sdk/usr/include/sys/syscall.h
/Developer/SDKs/MacOSX10.2.7.sdk/usr/include/sys/syscall.h
/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/sys/syscall.h
/Developer/SDKs/MacOSX10.3.0.sdk/usr/include/sys/syscall.h
/usr/include/sys/syscall.h
I ran a test with a new project (does nothing) and used the following:
/* This is a proposed C API for support of SASL
*
*********************************IMPORTANT*******************************
* THIS DOES NOTHING BUT TEST INCLUDE STATEMENTS. *
*********************************IMPORTANT*******************************
*/
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/easy.h>
#include <dev/disk.h>
#include <sys/syscall.h>
#include <vfs/vfs_journal.h>
I had no problem selecting an target and building, found the header files every time.
-- Dale _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden