InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Snow Leopard xnu kernel test patch (http://infinitemac.com/showthread.php?t=4227)

andyvand 09-26-2009 04:46 PM

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... ;)

Lykich 09-26-2009 06:57 PM

Sources were patched without errors,
How to build xnu ?

perisman 09-26-2009 08:00 PM

applying diff
 
how apply the patch?

rbm 09-26-2009 10:53 PM

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

xXrkidXx 09-26-2009 10:56 PM

W00! i cant wait!! im SO looking forward to Snow Leopard!!!!

andyvand 09-27-2009 08:32 AM

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

never_mind 09-27-2009 11:17 AM

Quote:

Originally Posted by perisman (Post 35954)
how apply the patch?

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)

perisman 09-27-2009 12:06 PM

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.

pαuℓzurrr. 09-27-2009 05:30 PM

What do we have to do after running, patch -p0 -i xnu-1456.1.26-AnV_test.diff?
Thanks!

maya77 09-27-2009 08:48 PM

As I understood you in another posts, this will never work in 64-bit mode on AMD. True?