InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 09-26-2009, 04:46 PM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
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...
Reply With Quote
  #2  
Old 09-26-2009, 06:57 PM
Lykich's Avatar
Lykich Lykich is offline
Puma
 
Join Date: Apr 2009
Posts: 26
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.
Reply With Quote
  #3  
Old 09-26-2009, 08:00 PM
perisman perisman is offline
Cheetah
 
Join Date: Mar 2008
Posts: 6
applying diff

how apply the patch?
Reply With Quote
  #4  
Old 09-26-2009, 10:53 PM
rbm rbm is offline
Cheetah
 
Join Date: Sep 2009
Posts: 5
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
Reply With Quote
  #5  
Old 09-26-2009, 10:56 PM
xXrkidXx xXrkidXx is offline
Leopard
 
Join Date: Apr 2009
Posts: 478
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
Reply With Quote
  #6  
Old 09-27-2009, 08:32 AM
andyvand's Avatar
andyvand andyvand is offline
 
Join Date: Apr 2009
Location: Tienen
Posts: 515
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
Reply With Quote
  #7  
Old 09-27-2009, 11:17 AM
never_mind never_mind is offline
Puma
 
Join Date: Jul 2009
Location: Melbourne
Posts: 23
Quote:
Originally Posted by perisman View Post
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)

Last edited by never_mind; 09-27-2009 at 11:19 AM.
Reply With Quote
  #8  
Old 09-27-2009, 12:06 PM
perisman perisman is offline
Cheetah
 
Join Date: Mar 2008
Posts: 6
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.
Reply With Quote
  #9  
Old 09-27-2009, 05:30 PM
pαuℓzurrr.'s Avatar
pαuℓzurrr. pαuℓzurrr. is offline
 
Join Date: Jan 2008
Location: The Netherlands
Posts: 280
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
Reply With Quote
  #10  
Old 09-27-2009, 08:48 PM
maya77's Avatar
maya77 maya77 is offline
Panther
 
Join Date: Jun 2008
Posts: 194
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.

Reply With Quote
Reply