#1
|
||||
|
||||
Snow Leopard xnu kernel test patch
http://rapidshare.com/files/28528776...-AnV_test.diff
I can't compile it since I use Leopard and xcrun doesn't work under it. Could somebody please do a test build for me? NOTE: It could still contain a few errors or mistakes at this time. Enjoy this new test patch... |
#2
|
||||
|
||||
Sources were patched without errors,
How to build xnu ? OS: Mac OS X 10.6.7 Snow Leopard Last edited by Lykich; 09-26-2009 at 06:59 PM. |
#3
|
|||
|
|||
applying diff
how apply the patch?
|
#4
|
|||
|
|||
Download from opensource.apple.com these packages, and build it.
cxxfilt-9.tar.gz dtrace-78.tar.gz kext_tools-177.tar.gz bootstrap_cmds-72.tar.gz I can compile the original sources but the patched not. I get this error: MIG clock.h MIG default_pager_object.h MIG clock_priv.h MIG host_priv.h MIG host_security.h MIG ledger.h MIG lock_set.h MIG mach_host.h Generating libkern/version.h from /Users/Pet/Desktop/xnu-1456.1.26/libkern/libkern/version.h.template MIG mach_port.h MIG gssd_mach.h MIG mach_vm.h MIG kextd_mach.h MIG memory_object_control.h MIG memory_object_name.h MIG lockd_mach.h MIG processor.h Generating bsd/sys/syscall.h from /Users/Pet/Desktop/xnu-1456.1.26/bsd/kern/syscalls.master MIG processor_set.h MIG security.h MIG task.h MIG task_access.h MIG thread_act.h MIG upl.h MIG vm_map.h MIG audit_triggers_server.h MIG clock_reply_server.h MIG exc_server.h MIG mach_exc_server.h MIG memory_object_server.h MIG memory_object_default_server.h MIG notify_server.h MIG task_access_server.h Missing }. make[4]: *** [/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//RELEASE_I386/osfmk/RELEASE/Makefile] Error 1 make[3]: *** [build_all] Error 2 make[2]: *** [build_all_conf] Error 2 make[1]: *** [build_all_osfmk] Error 2 make[1]: *** Waiting for unfinished jobs.... CC WKdmCompress.o CC WKdmDecompress.o CC device_tree.o CC bootargs.o CC pe_gen.o CC randomdev.o CC pe_init.o CC pe_bootargs.o CC pe_identify_machine.o CC IOHibernateRestoreKernel.o CC pe_kprintf.o CC pe_interrupt.o In file included from /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92, from /Users/Pet/Desktop/xnu-1456.1.26/iokit/Kernel/IOHibernateIO.cpp:160: /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_begin(kernel_mach_header_t*, const char*)’: /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_limit(kernel_mach_header_t*, const char*)’: /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope CC pe_serial.o LDFILELIST pexpert make[6]: *** [IOHibernateIO.cpo] Error 1 make[6]: *** Waiting for unfinished jobs.... CC fips_sha1.o CC comp.o CC smf.o CC yarrowUtils.o CC prng.o In file included from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/sysctl.h:92, from /Users/Pet/Desktop/xnu-1456.1.26/bsd/dev/unix_startup.c:49: /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’: /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’ /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’ /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:In file included from /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92, from /Users/Pet/Desktop/xnu-1456.1.26/iokit/Kernel/IOLib.cpp:55: /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_begin(kernel_mach_header_t*, const char*)’: /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_limit(kernel_mach_header_t*, const char*)’: /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast make[6]: *** [IOLib.cpo] Error 1 make[5]: *** [build_all] Error 2 make[4]: *** [do_all] Error 2 make[3]: *** [build_all] Error 2 make[2]: *** [build_all_conf] Error 2 make[1]: *** [build_all_iokit] Error 2 CC memdev.o CC sha1mod.o cc1: warnings being treated as errors In file included from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/sysctl.h:92, from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/user.h:81, from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/vfs_context.h:8, from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/vnode_internal.h:87, from /Users/Pet/Desktop/xnu-1456.1.26/bsd/dev/vn/vn.c:104: /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’: /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’ /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’ /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’: /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast CC unix_startup.o make[6]: *** [vn.o] Error 1 make[6]: *** Waiting for unfinished jobs.... CC crc32.o CC random.o CC shadow.o make[5]: *** [build_all] Error 2 make[4]: *** [do_all] Error 2 make[3]: *** [build_all] Error 2 make[2]: *** [build_all_conf] Error 2 make[1]: *** [build_all_bsd] Error 2 make: *** [all] Error 2 |
#5
|
|||
|
|||
W00! i cant wait!! im SO looking forward to Snow Leopard!!!!
Computer: Gateway 838GM | 9.5.0 Vodoo Kernel |2.0 RC4 Chameleon Bootloader | Processor:Intel Pentium 4 630 / 3 GHz | RAM: 512MB | OS: Windows 7 32BIT, OSx86 iPC 10.5.6 | Mainboard Chipset: Intel 915G Express | Graphics Card:Integrated Intel GMA 900 | Video Memory: Dynamic Video Memory Technology 3.0 | Audio:ALC 860 |Card Reader:8 in 1 Integrated| Hard Drives:1x 200GB SATA(Win 7), 1x 320GB SATA(OS X) Both Internal
|
#6
|
||||
|
||||
getsectdatafromheader is declared in <libkern/kernel_mach_header.h>
you should put #include <libkern/kernel_mach_header.h> into the failing header That should fix this up |
#7
|
|||
|
|||
patch -p0 -i xnu-1456.1.26-AnV_test.diff
from the directory you have both the patch and the sources in (in xnu-1456.1.26) Last edited by never_mind; 09-27-2009 at 11:19 AM. |
#8
|
|||
|
|||
I have the same error as rbm, without patching compile, and patched no.
I take a look at headers, and libkern/mach_kernel_header.h is include under ifdef kernel argument. |
#9
|
||||
|
||||
What do we have to do after running, patch -p0 -i xnu-1456.1.26-AnV_test.diff?
Thanks! Mac Inspiron 531 » 10.6.8 • 10.8.0 Legacy Kernel • AMD Athlon 64 X2 5000+ (2.60GHz) Dell M2N61-AX/nForce 430/MCP61 • 4GB Dual Channel DDR2 667MHz ALC888 • nVidia GeForce 8600 GT 256 MB 2 x WDC WD5000AAKS 500 GB SATA HDD |
#10
|
||||
|
||||
As I understood you in another posts, this will never work in 64-bit mode on AMD. True?
💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers. |