Building kextsymboltool as described in 'Kernel Programming'
Building kextsymboltool as described in 'Kernel Programming'
- Subject: Building kextsymboltool as described in 'Kernel Programming'
- From: Michael Tuexen <email@hidden>
- Date: Mon, 27 Jun 2005 11:06:56 +0200
The new release of Kernel Programming describes how to build
kextsymboltool.
It says
cd kext_tools-version
gcc kextsymboltool.c -o kextsymboltoo
sudo cp kextsymboltool /usr/local/bin
but the compiler says
[Tiger-MacMini:~/Desktop/kext_tools-59] tuexen% gcc kextsymboltool.c -
o kextsymboltool kextsymboltool.c:21:24: mach-o/kld.h: No such file
or directory
kextsymboltool.c:28:38: IOKit/kext/KXKextManager.h: No such file or
directory
kextsymboltool.c:35: error: parse error before "readFile"
kextsymboltool.c:35: warning: data definition has no type or storage
class
kextsymboltool.c:37: error: parse error before "writeFile"
kextsymboltool.c:37: warning: data definition has no type or storage
class
kextsymboltool.c:41: error: parse error before "writeFile"
kextsymboltool.c: In function `writeFile':
kextsymboltool.c:43: error: `KXKextManagerError' undeclared (first
use in this function)
kextsymboltool.c:43: error: (Each undeclared identifier is reported
only once
kextsymboltool.c:43: error: for each function it appears in.)
kextsymboltool.c:43: error: parse error before "err"
kextsymboltool.c:46: error: `err' undeclared (first use in this
function)
kextsymboltool.c:46: error: `kKXKextManagerErrorDiskFull' undeclared
(first use in this function)
kextsymboltool.c:48: error: `kKXKextManagerErrorNone' undeclared
(first use in this function)
kextsymboltool.c: At top level:
kextsymboltool.c:57: error: parse error before "readFile"
kextsymboltool.c: In function `readFile':
kextsymboltool.c:59: error: `KXKextManagerError' undeclared (first
use in this function)
kextsymboltool.c:59: error: parse error before "err"
kextsymboltool.c:85: error: `err' undeclared (first use in this
function)
kextsymboltool.c:85: error: `kKXKextManagerErrorNone' undeclared
(first use in this function)
kextsymboltool.c: In function `main':
kextsymboltool.c:253: error: `KXKextManagerError' undeclared (first
use in this function)
kextsymboltool.c:253: error: parse error before "err"
kextsymboltool.c:335: error: `err' undeclared (first use in this
function)
kextsymboltool.c:336: error: `kKXKextManagerErrorNone' undeclared
(first use in this function)
kextsymboltool.c:443: error: `kKXKextManagerErrorUnspecified'
undeclared (first use in this function)
kextsymboltool.c:451: error: `kKXKextManagerErrorFileAccess'
undeclared (first use in this function)
kextsymboltool.c:496: error: `kKXKextManagerErrorAlreadyLoaded'
undeclared (first use in this function)
So mach-o/kld.h and IOKit/kext/KXKextManager.h are missing. I found
mach-o/kld.h inside cctools-576.2
but do not know where to get IOKit/kext/KXKextManager.h.
Could someone tell where to get the file (and update the document
Kernel Programming)?
Thank you very much.
Best regards
Michael
_______________________________________________
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