Building kextsymboltool as described in 'Kernel Programming'
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com It says cd kext_tools-version gcc kextsymboltool.c -o kextsymboltoo sudo cp kextsymboltool /usr/local/bin but the compiler says Thank you very much. Best regards Michael _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... The new release of Kernel Programming describes how to build kextsymboltool. [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)? This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Tuexen