Snow Leopard xnu kernel test patch
rapid share.com/files/285287767/xnu-1456.1.26-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…
- Primary Author
- @andyvand Published 2009-09-26
- Collection
- OSx86 Core & 10.X
- Archival Footprint
- 106,479 historical reads · 52 curated field notes (from 81 dispatches) · 2009-09-26 – 2009-11-25
- Credited Voices (14)
- @andyvand (17)@pαuℓzurrr. (17)@never_mind (14)@xXrkidXx (10)@Lykich (6)@aryajuanda (6)@perisman (2)@maya77 (2)@bobtom0 (2)@rbm@dashboard@RetroRen@direlime@val88chan
rapid share.com/files/285287767/xnu-1456.1.26-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...
Author Updates & Technical Revisions
Follow-up dispatches by @andyvand
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
@maya77As I understood you in another posts, this will never work in 64-bit mode on AMD. True?
Sure it will...
But not on SSE2 only machines
@never_mindbtw, "why is the rum gone?" sse3emu.c: ///////////////////// #include <stdint.h> /* kaitek: the SSE3 emulator is automatically disabled if sse3emu_size is zero. */ const uint8_t sse3emu_data = { 0x00 }; const uint32_t sse3emu_size = 0; ///////////////////// Ohno! No SSE3 emulator in 32bit after all? | -)
I could add that afterwards but lets first get this fixed up and working...
@never_mindI guess _SYS_LINKER_SET_H_ is not defined (should it be?), cause if code in libkern/libkern/kernel_mach_header.h is changed to : //#ifndef _SYS_LINKER_SET_H_ void *getsectdatafromheader(kernel_mach_header_t *, const char *, const char *, unsigned long *); //#endif the compile errors in linker_set.h regarding getsectdatafromheader…
Check task_access_server.mig...
Try manually migging it and check for errors, then let me know...
@never_mindCould you give me some hints on howto do that please?
look for the file in spotlight
use /usr/bin/mig <file.mig> to try to mig it...
Check the returned info + files + line
@pαuℓzurrr.MIG clock.h MIG clock_priv.h MIG host_priv.h Generating libkern/version.h from /Users/paulzurrr/desktop/xnu/xnu-1456.1.26/libkern/libkern/version.h.template MIG host_security.h MIG ledger.h MIG lock_set.h MIG mach_host.h MIG default_pager_object.h MIG mach_port.h MIG mach_vm.h Generating bsd/sys/syscall.h from…
Check where PADL_ and PADR_ are defined and make sure the corresponding header file is included.
Also I've read somewhere else that there might be missing #endif directives to #if directives in some of the headers.
Perhaps you should investigate?
@pαuℓzurrr.It seems that their defined in mach_traps.h... Not sure which header file to include...
I'm not sure where they are in but if they are for example in osfmk/i386/mach_traps.h
you #include <i386/mach_traps.h>
Just an example...
Check the base path and include it before the definitions
Also check for those unmatched #if s
I have bought an external HD so I'll be on Snow myself soon
I am not pleased with the modbin kernel...
It panics right after init
I'm not able to install SL on my external HD
@pαuℓzurrr.What does the kernel panic say andy? Did you tried the test7 kernel? I haven't had the time too check on the error while compiling yet... Hope you can figure it out
It crashes after basic initialization with reason : unknown...
Seems my CPU isn't supported on that kernel (Intel Celeron M 420)
@never_mindMe neither! Need custom kernel with SSE3 emulator, or no go Forward we go! p.s. why are you not able to install it on external hd?
Since the installer can't load up due to the not working kernel...
I tried installing from USB HD
@pαuℓzurrr.MIG clock.h MIG clock_priv.h MIG host_priv.h Generating libkern/version.h from /Users/Paul/desktop/xnu/xnu-1456.1.26/libkern/libkern/version.h.template MIG host_security.h MIG ledger.h MIG lock_set.h MIG mach_host.h MIG mach_port.h MIG mach_vm.h MIG default_pager_object.h MIG memory_object_control.h MIG memory_object_name.h MIG…
PE_parse_boot_arg should be replaced with PE_parse_boot_argn
example: PE_parse_boot_arg("argument", &var) -> PE_parse_boot_argn("argument", &var, sizeof(var))
PADL_ and PADR_ you should look up and make sure bsd/vfs/vfs_attrlist.c has the header included before bsd/sys/sysproto.h
@never_mindOh hehe, i thought you tried to install via OSinstall.mpkg... Need that kernel too BTW, I am compiling the SL kernel on LEO. That of course doesn't really work, but what I can do is compile most, so I can at least check for compile errors. I've installed 10.6 SDK headers manually in Leo. I even managed to compile one kernel at some…
I also found a way to do it by removing -Werror and making sure it doesn't use xcrun for the tools in makedefs/makeinc.cmd + various Makefiles
I've been thinking of writing a little xcrun tool which does the same without changing it (just printing the tools statically e.g. xcrun -find mig should return /usr/bin/mig)
@pαuℓzurrr.Yes it worked when i added the the right PE_parse line, but i dont think i have the knowledge/time to go any further with it... One question, what do i need to get rid of this; xcodebuild: 'ctfconvert' not found /Developer/usr/bin/xcodebuild fails with 512 - Unknown error: 512
Add to makedefs/MakeInc.def on top:
export BUILD_STABS = 1
@pαuℓzurrr.Ok so vfs_attrlist.c is in bsd/vfs/ And mach_traps.h is in osfmk/mach/ Should i add; #include <osfmk/mach/mach_traps.h> To vfs_attrlist.c? And Andy wouldn't it be easier if you would maybe remotely control my pc to test?
yes... before the inclusion of the "bad header"
P.S. Sorry... I'm using a win PC right now... can't remotely control...
@pαuℓzurrr.Hmm tried that, said it couldn't find the directory/file I used a VNC server for remote control. Should work with any VNC Viewer for windows too But its 23:00 here now and i need to get up at 6:45. So maybe we can remote control tomorrow...
Yeah... same time here... 22:58...
Also is early day for me tomorrow but I'll continue a little bit longer
Synthesized Community Field Notes
52 technical responses curated from 81 original dispatches
Sources were patched without errors,
How to build xnu ?
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
W00! i cant wait! im SO looking forward to Snow Leopard!
@perismanhow 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)
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.
What do we have to do after running, patch -p0 -i xnu-1456.1.26-AnV_test.diff?
As I understood you in another posts, this will never work in 64-bit mode on AMD. True?
@andyvandgetsectdatafromheader 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
Should the "Missing }." that is mentioned in RMB post also be caused by a missing inclusion of the libkern/kernel_mach_header.h?
Where should it be included, as perisman mentions it seems to be (conditionally) included in bsd/sys/linker_set.h?
To me its unclear what is is causing this error were.
Could you shed a light on it a bit further Andy?
I guess _SYS_LINKER_SET_H_ is not defined (should it be?), cause if code in libkern/libkern/kernel_mach_header.h is changed to :
//#ifndef _SYS_LINKER_SET_H_
void *getsectdatafromheader(kernel_mach_header_t *, const char *, const char *, unsigned long *);
//#endif
the compile errors in linker_set.h regarding getsectdatafromheader disappear.
Cant seem to find though where this error:
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
is caused...
@never_mindShould the "Missing }." that is mentioned in RMB post also be caused by a missing inclusion of the libkern/kernel_mach_header.h? Where should it be included, as perisman mentions it seems to be (conditionally) included in bsd/sys/linker_set.h? To me its unclear what is is causing this error were. Could you shed a light on it a bit…
btw, "why is the rum gone?"
sse3emu.c:
/////////////////////
#include <stdint.h>
/* kaitek: the SSE3 emulator is automatically disabled if sse3emu_size is zero. */
const uint8_t sse3emu_data = { 0x00 };
const uint32_t sse3emu_size = 0;
/////////////////////
Ohno! No SSE3 emulator in 32bit after all? | -)
i have an AMD machine running SL in 32 bit mode with this metode : Snow Leopard 10A432 Install → , will try to compile it tonight... hope i can help creating 64 bit XNU kernel..
@andyvandCheck task_access_server.mig... Try manually migging it and check for errors, then let me know...
Could you give me some hints on howto do that please?
I've compiled xnu-1456.1.26 by following this guide: shantonu.blog spot.com/2009/09/mac-os-x-kernel-source-xnu-has-been.html
I have a Pentium-D so these are the minimum changes that need to be made to get it to boot:
changes
===============
* remove the CPUID checks in cpuid_set_info in osfmk/i386/cpuid.c: Specifically the cpuid_family and cpuid_model panic
* change 'cpufamily = CPUFAMILY_UNKNOWN' to 'cpufamily = CPUFAMILY_INTEL_6_14' in bsd/kern/kern_mib.c
* comment out cpuid_family check in tsc_init on line X in osfmk/i386/tsc.c. Specifically comment out this code:
if (cpuid_info->cpuid_family != CPU_FAMILY_PENTIUM_M) {
panic("tsc_init: unknown CPU family: 0x%X\n", cpuid_info->cpuid_family);
}
* comment out following lines in commpage_stuff_routine on line X in osfmk/i386/commpage/commpage.c:
if ((cur_routine!=0) && (matched==0))
panic("commpage no match for last, next address %08lx", rd->commpage_address);
A few more changes are needed to get x64 support but before I add that, I wanted to get 32bit mode to work.
With the above changes, the kernel boots but it hangs after the 'BSD root: disk0s2, major 14, minor 2' print. Normally after that it prints a few 'com.apple.launchd' lines but not with the kernel that I built and I don't know why. Any ideas?
MIG clock.h
MIG clock_priv.h
MIG host_priv.h
Generating libkern/version.h from /Users/paulzurrr/desktop/xnu/xnu-1456.1.26/libkern/libkern/version.h.template
MIG host_security.h
MIG ledger.h
MIG lock_set.h
MIG mach_host.h
MIG default_pager_object.h
MIG mach_port.h
MIG mach_vm.h
Generating bsd/sys/syscall.h from /Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/kern/syscalls.master
MIG memory_object_control.h
MIG memory_object_name.h
MIG processor.h
MIG gssd_mach.h
MIG kextd_mach.h
MIG processor_set.h
MIG security.h
MIG lockd_mach.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/paulzurrr/desktop/xnu/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 WKdmDecompress.o
CC WKdmCompress.o
CC device_tree.o
CC bootargs.o
CC IOHibernateRestoreKernel.o
CC randomdev.o
CC pe_gen.o
CC pe_init.o
CC pe_bootargs.o
CC fips_sha1.o
CC pe_identify_machine.o
CC smf.o
CC pe_kprintf.o
CC comp.o
CC pe_interrupt.o
CC pe_serial.o
CC prng.o
LDFILELIST pexpert
CC yarrowUtils.o
C++ IOLib.cpo
CC sha1mod.o
C++ IOLocks.cpo
CC memdev.o
CC unix_startup.o
C++ IOConditionLock.cpo
C++ IOSyncer.cpo
CC shadow.o
C++ IOHibernateIO.cpo
CC crc32.o
CC random.o
CC scanc.o
CC skpc.o
CC vn.o
CC strsep.o
CC inet_ntop.o
CC bcd.o
cc1plus: warnings being treated as errors
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp: In function ‘void iokit_post_constructor_init()’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/paulzurrr/desktop/xnu/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/paulzurrr/desktop/xnu/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
make[6]: *** [IOStartIOKit.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
cc1: warnings being treated as errors
In file included from /Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:47:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: warning: implicit declaration of function ‘PADL_’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: expected expression before ‘int’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: variably modified ‘fd_l_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: warning: implicit declaration of function ‘PADR_’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: expected expression before ‘int’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: variably modified ‘fd_r_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: expected expression before ‘uint32_t’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: variably modified ‘arch_offset_l_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: expected expression before ‘uint32_t’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: variably modified ‘arch_offset_r_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: expected expression before ‘uint32_t’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: variably modified ‘arch_size_l_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: expected expression before ‘uint32_t’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: variably modified ‘arch_size_r_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: expected expression before ‘user_addr_t’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: variably modified ‘map_addr_l_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: expected expression before ‘user_addr_t’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: variably modified ‘map_addr_r_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: expected expression before ‘u_int’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: variably modified ‘mode_l_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: expected expression before ‘u_int’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: variably modified ‘mode_r_’ at file scope
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:619: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:619: warning: its scope is only this definition or declaration, which is probably not what you want
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getvolattrlist’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:641: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:848: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1143: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1155: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1174: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getattrlist_internal’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1204: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1232: warning: passing argument 2 of ‘getvolattrlist’ from incompatible pointer type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1238: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1854: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1869: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1869: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1888: warning: ‘struct fgetattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1889: warning: no previous prototype for ‘fgetattrlist’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘fgetattrlist’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1893: error: storage size of ‘ap’ isn’t known
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1898: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1902: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1907: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1908: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1909: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1910: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1914: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1893: warning: unused variable ‘ap’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1922: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1923: warning: no previous prototype for ‘getattrlist’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getattrlist’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1937: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1939: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1946: warning: passing argument 2 of ‘getattrlist_internal’ from incompatible pointer type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1987: warning: ‘struct setattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘setattrlist_internal’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2008: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2048: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2053: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2059: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2059: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2075: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2311: warning: ‘struct setattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2312: warning: no previous prototype for ‘setattrlist’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘setattrlist’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2325: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2327: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2333: warning: passing argument 2 of ‘setattrlist_internal’ from incompatible pointer type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2341: warning: ‘struct fsetattrlist_args’ declared inside parameter list
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2342: warning: no previous prototype for ‘fsetattrlist’
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘fsetattrlist’:
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2346: error: storage size of ‘ap’ isn’t known
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2350: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2354: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2359: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2360: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2361: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2362: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2365: error: dereferencing pointer to incomplete type
/Users/paulzurrr/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2346: warning: unused variable ‘ap’
make[6]: *** [vfs_attrlist.o] Error 1
make[6]: *** Waiting for unfinished jobs....
C++ IODeviceTreeSupport.cpo
CC vfs_bio.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
C++ IORegistryEntry.cpo
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
make: *** [all] Error 2
I cant find task_access_server.mig in spotlight...
Fixed the, getsectdatafromheader error with this like never_mind said:
//#ifndef _SYS_LINKER_SET_H_
void *getsectdatafromheader(kernel_mach_header_t *, const char *, const char *, unsigned long *);
//#endif
Putting in #include <libkern/kernel_mach_header.h> into linker_set.h did however not work...
It seems that their defined in mach_traps.h...
Not sure which header file to include...
Nice to hear that Andy, looking forward to AnV snow kitty kernel
What does the kernel panic say andy? Did you tried the test7 kernel?
I haven't had the time too check on the error while compiling yet...
Hope you can figure it out
@andyvandlook for the file in spotlight use /usr/bin/mig <file.mig> to try to mig it... Check the returned info + files + line
Hi Andy,
migging the .h file (there's no .mig files?) is giving me buckets of error, but also on other .h files, so I am probably not doing it right.
But what I found is that , the "missing }." is caused by a missing newline in osfmk/conf/MASTER.i386
Seems hard to believe? Just open osfmk/conf/MASTER.i386 , go to the lastline, slam some <returns> (ok 1's enough) into the file (so, at the end) and after that the error is gone.
Tough one!
Let's see about this next error..
BBL!
p.s.
this is what diff gave me (opendiff didn't show me this, annoying!):
80,84d79
<
< # added builtin decryptor functions
< #
< options BUILTIN_DECRYPTER
< #options BUILTIN_DECRYPTER_VERBOSE
\ No newline at end of file
@andyvandI am not pleased with the modbin kernel... It panics right after init I'm not able to install SL on my external HD
Me neither!
Need custom kernel with SSE3 emulator, or no go
Forward we go!
p.s. why are you not able to install it on external hd?
@andyvandSince the installer can't load up due to the not working kernel... I tried installing from USB HD
Oh hehe, i thought you tried to install via OSinstall.mpkg...
Need that kernel too
BTW, I am compiling the SL kernel on LEO. That of course doesn't really work, but what I can do is compile most, so I can at least check for compile errors. I've installed 10.6 SDK headers manually in Leo. I even managed to compile one kernel at some point, but it gave my a brick due to linker errors. I know I need 10.6 compiler/linker/tools etc to really make it, but in Leo i've been able to compile to check for syntax errors etc using some tricks.
Are you also compiling this way now Andy? I understand you are not running SL so far either..
MIG clock.h
MIG clock_priv.h
MIG host_priv.h
Generating libkern/version.h from /Users/Paul/desktop/xnu/xnu-1456.1.26/libkern/libkern/version.h.template
MIG host_security.h
MIG ledger.h
MIG lock_set.h
MIG mach_host.h
MIG mach_port.h
MIG mach_vm.h
MIG default_pager_object.h
MIG memory_object_control.h
MIG memory_object_name.h
MIG processor.h
MIG processor_set.h
MIG security.h
MIG task.h
MIG task_access.h
Generating bsd/sys/syscall.h from /Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/kern/syscalls.master
MIG thread_act.h
MIG gssd_mach.h
MIG upl.h
MIG kextd_mach.h
MIG vm_map.h
MIG lockd_mach.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
MIG default_pager_alerts_user.c
CC WKdmCompress.o
MIG default_pager_object_server.c
CC WKdmDecompress.o
MIG device_server.h
CC device_tree.o
MIG device_server.c
CC bootargs.o
CC randomdev.o
CC pe_gen.o
MIG audit_triggers_user.c
MIG clock_reply_user.c
CC pe_init.o
CC pe_bootargs.o
MIG exc_user.c
CC pe_identify_machine.o
CC fips_sha1.o
CC pe_kprintf.o
MIG host_notify_reply_user.c
CC smf.o
CC pe_interrupt.o
CC comp.o
MIG mach_exc_user.c
CC pe_serial.o
LDFILELIST pexpert
MIG mach_notify_user.c
CC prng.o
MIG memory_object_user.c
MIG memory_object_control_user.c
CC IOHibernateRestoreKernel.o
MIG memory_object_default_user.c
MIG task_access_user.c
CC sha1mod.o
CC yarrowUtils.o
MIG upl_user.c
MIG vm_map_user.c
CC memdev.o
MIG clock_server.c
CC unix_startup.o
MIG clock_priv_server.c
MIG exc_server.c
C++ IOHibernateIO.cpo
C++ IOLib.cpo
MIG host_priv_server.c
MIG UNDRequest.c
MIG host_security_server.c
MIG UNDReplyServer.c
MIG ledger_server.c
MIG gssd_mach.c
MIG lock_set_server.c
MIG gssd_mach.h
MIG mach_exc_server.c
CC vn.o
C++ IOLocks.cpo
MIG mach_host_server.c
CC crc32.o
MIG mach_notify_server.c
CC random.o
MIG mach_port_server.c
CC shadow.o
CC scanc.o
CC skpc.o
MIG mach_vm_server.c
CC strsep.o
MIG memory_object_server.c
C++ IOConditionLock.cpo
MIG memory_object_control_server.c
CC inet_ntop.o
MIG kextd_mach.c
CC bcd.o
C++ IOSyncer.cpo
MIG memory_object_default_server.c
MIG kextd_mach.h
cc1: warnings being treated as errors
In file included from /Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:47:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: warning: implicit declaration of function ‘PADL_’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: expected expression before ‘int’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: variably modified ‘fd_l_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: warning: implicit declaration of function ‘PADR_’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: expected expression before ‘int’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: variably modified ‘fd_r_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: expected expression before ‘uint32_t’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: variably modified ‘arch_offset_l_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: expected expression before ‘uint32_t’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: variably modified ‘arch_offset_r_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: expected expression before ‘uint32_t’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: variably modified ‘arch_size_l_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: expected expression before ‘uint32_t’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: variably modified ‘arch_size_r_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: expected expression before ‘user_addr_t’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: variably modified ‘map_addr_l_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: expected expression before ‘user_addr_t’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: variably modified ‘map_addr_r_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: expected expression before ‘u_int’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: variably modified ‘mode_l_’ at file scope
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: expected expression before ‘u_int’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: variably modified ‘mode_r_’ at file scope
MIG memory_object_name_server.c
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:619: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:619: warning: its scope is only this definition or declaration, which is probably not what you want
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getvolattrlist’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:641: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:848: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1143: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1155: error: dereferencing pointer to incomplete type
MIG lockd_mach.c
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1174: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getattrlist_internal’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1204: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1232: warning: passing argument 2 of ‘getvolattrlist’ from incompatible pointer type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1238: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1854: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1869: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1869: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1888: warning: ‘struct fgetattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1889: warning: no previous prototype for ‘fgetattrlist’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘fgetattrlist’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1893: error: storage size of ‘ap’ isn’t known
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1898: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1902: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1907: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1908: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1909: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1910: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1914: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1893: warning: unused variable ‘ap’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1922: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1923: warning: no previous prototype for ‘getattrlist’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getattrlist’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1937: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1939: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1946: warning: passing argument 2 of ‘getattrlist_internal’ from incompatible pointer type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1987: warning: ‘struct setattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘setattrlist_internal’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2008: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2048: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2053: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2059: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2059: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2075: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2311: warning: ‘struct setattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2312: warning: no previous prototype for ‘setattrlist’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘setattrlist’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2325: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2327: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2333: warning: passing argument 2 of ‘setattrlist_internal’ from incompatible pointer type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2341: warning: ‘struct fsetattrlist_args’ declared inside parameter list
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2342: warning: no previous prototype for ‘fsetattrlist’
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘fsetattrlist’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2346: error: storage size of ‘ap’ isn’t known
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2350: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2354: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2359: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2360: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2361: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2362: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2365: error: dereferencing pointer to incomplete type
/Users/Paul/desktop/xnu/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2346: warning: unused variable ‘ap’
make[6]: *** [vfs_attrlist.o] 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_bsd] Error 2
make[1]: *** Waiting for unfinished jobs....
MIG processor_server.c
MIG lockd_mach.h
MIG processor_set_server.c
MIG security_server.c
cc1plus: warnings being treated as errors
/Users/Paul/desktop/xnu/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp: In function ‘void iokit_post_constructor_init()’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/Paul/desktop/xnu/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
/Users/Paul/desktop/xnu/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/Paul/desktop/xnu/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
make[6]: *** [IOStartIOKit.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
MIG task_server.c
MIG thread_act_server.c
MIG upl_server.c
MIG vm_map_server.c
MIG vm32_map_server.c
CC default_pager.o
C++ IODeviceTreeSupport.cpo
CC default_pager_alerts_user.o
CC dp_memory_object.o
CC gssd_mach.o
CC default_pager_object_server.o
CC lockd_mach.o
CC kextd_mach.o
UserNotification/UNDRequest.c: In function ‘UNDDisplayCustomFromDictionary_rpc’:
UserNotification/UNDRequest.c:656: warning: cast discards qualifiers from pointer target type
CC UNDReplyServer.o
CC UNDRequest.o
CC KUNCUserNotifications.o
CC db_ext_symtab.o
CC dp_backing_store.o
CC kdp_serial.o
C++ IORegistryEntry.cpo
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 ipc_hash.o
CC ipc_entry.o
CC kdp.o
CC ipc_init.o
CC ipc_notify.o
CC ipc_mqueue.o
CC ipc_object.o
CC kdp_udp.o
CC ipc_pset.o
CC ipc_port.o
CC ipc_space.o
CC ipc_table.o
CC ipc_splay.o
CC ipc_labelh.o
CC ipc_kmsg.o
CC ipc_right.o
CC mach_debug.o
CC ast.o
CC mach_msg.o
CC affinity.o
CC audit_sessionport.o
CC counters.o
CC clock.o
CC mach_port.o
CC clock_oldops.o
CC debug.o
CC exception.o
CC host_notify.o
CC ipc_clock.o
CC host.o
CC ipc_host.o
CC ipc_sync.o
CC ipc_kobject.o
CC ipc_mig.o
CC ledger.o
CC kalloc.o
CC mach_clock.o
CC machine.o
CC mk_sp.o
CC locks.o
CC page_decrypt.o
CC ipc_tt.o
CC mk_timer.o
CC processor_data.o
CC priority.o
CC queue.o
CC sched_average.o
CC printf.o
CC security.o
CC processor.o
CC stack.o
CC startup.o
CC syscall_emulation.o
CC sync_lock.o
CC syscall_subr.o
CC sync_sema.o
CC syscall_sw.o
CC task_swap.o
CC task_policy.o
CC sched_prim.o
CC thread_act.o
CC task.o
CC timer.o
CC thread.o
CC thread_call.o
CC thread_policy.o
CC timer_call.o
CC hibernate.o
CC bsd_kern.o
CC wait_queue.o
CC clock_server.o
CC clock_reply_user.o
CC clock_priv_server.o
CC exc_user.o
CC zalloc.o
CC pmc.o
CC exc_server.o
CC host_security_server.o
CC ledger_server.o
CC lock_set_server.o
CC mach_exc_user.o
CC mach_notify_user.o
CC mach_exc_server.o
CC host_priv_server.o
CC mach_host_server.o
CC memory_object_server.o
CC memory_object_default_server.o
CC mach_vm_server.o
CC memory_object_name_server.o
CC memory_object_control_server.o
CC mach_port_server.o
CC audit_triggers_user.o
CC task_access_user.o
CC upl_server.o
CC processor_server.o
CC processor_set_server.o
CC security_server.o
CC thread_act_server.o
CC task_server.o
CC vm32_map_server.o
CC device_vm.o
CC vm_external.o
CC vm_debug.o
CC bsd_vm.o
CC vm_init.o
CC vm_kern.o
CC memory_object.o
CC vm_fault.o
CC vm_purgeable.o
CC vm_object.o
CC vm_shared_region.o
CC vm_pageout.o
CC vm_swapfile_pager.o
CC vm_resident.o
CC vm32_user.o
CC iokit_rpc.o
CC device_init.o
CC kext_alloc.o
CC kmod.o
CC vm_map.o
CC chud_cpu.o
CC subrs.o
CC chud_glue.o
CC vm_user.o
CC chud_memory.o
CC chud_osfmk_callback.o
CC serial_general.o
CC chud_thread.o
CC pmap_x86_common.o
CC vm_apple_protect.o
CC machdep_call.o
CC bsd_i386.o
In file included from /Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/i386/cpuid.c:38:
/Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/i386/cpuid_legacy.h:32:1: error: "KB" redefined
In file included from /Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/mach/machine/vm_param.h:35,
from /Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/mach/vm_param.h:70,
from /Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/vm/vm_page.h:73,
from /Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/i386/cpuid.c:33:
/Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/mach/i386/vm_param.h:160:1: error: this is the location of the previous definition
CC cpu.o
cc1: warnings being treated as errors
/Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/i386/cpuid.c: In function ‘cpuid_set_info’:
/Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/i386/cpuid.c:830: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/Paul/desktop/xnu/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
/Users/Paul/desktop/xnu/xnu-1456.1.26/osfmk/i386/cpuid.c:834: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/Paul/desktop/xnu/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
make[6]: *** [cpuid.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC cpu_threads.o
CC pmap.o
CC device_server.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_osfmk] Error 2
make: *** [all] Error 2
Got a lil further, still allot of errors...
Also on pastebin: paste bin.com/m24986ef1
@andyvandPE_parse_boot_arg should be replaced with PE_parse_boot_argn example: PE_parse_boot_arg("argument", &var) -> PE_parse_boot_argn("argument", &var, sizeof(var)) PADL_ and PADR_ you should look up and make sure bsd/vfs/vfs_attrlist.c has the header included before bsd/sys/sysproto.h
Yes it worked when i added the the right PE_parse line, but i dont think i have the knowledge/time to go any further with it...
One question, what do i need to get rid of this;
xcodebuild: 'ctfconvert' not found
/Developer/usr/bin/xcodebuild fails with 512 - Unknown error: 512
k so does this mean we have a working Voodoo kernel? cause im dying here... my Leo install is ALL messed up and I dont want to erase it.. it has a LOT of stuff i need.. its what I get for not buying a TM backup disc...
Ok so vfs_attrlist.c is in bsd/vfs/
And mach_traps.h is in osfmk/mach/
Should i add;
#include <osfmk/mach/mach_traps.h>
To vfs_attrlist.c?
And Andy wouldn't it be easier if you would maybe remotely control my pc to test?
@andyvandyes... before the inclusion of the "bad header" P.S. Sorry... I'm using a win PC right now... can't remotely control...
Hmm tried that, said it couldn't find the directory/file
I used a VNC server for remote control. Should work with any VNC Viewer for windows too
But its 23:00 here now and i need to get up at 6:45.
So maybe we can remote control tomorrow...
@andyvandIt crashes after basic initialization with reason : unknown... Seems my CPU isn't supported on that kernel (Intel Celeron M 420)
I had the same problem with my box. I tried a different boot file and that fixed it. The 'debug boot' file listed here: http://www.insanelymac.com/forum/index.php?showtopic=18… ↗ worked for me as does the new Chameleon 2.0 RC3.
@andyvandYeah... same time here... 22:58... Also is early day for me tomorrow but I'll continue a little bit longer
Morning
I get these errors now:
xnu-1456.1.26/osfmk/i386/i386_init.c: In function ‘slave_tsc_init’:
/xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: implicit declaration of function ‘abs’
/xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: nested extern declaration of ‘abs’
/xnu-1456.1.26/osfmk/i386/i386_init.c: In function ‘slave_tsc_run_trials’:
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: error: ‘TSCSYNC_NUM_TRIALS’ undeclared (first use in this function)
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: error: (Each undeclared identifier is reported only once
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: error: for each function it appears in.)
/xnu-1456.1.26/osfmk/i386/i386_init.c:706: error: called object ‘tscsync’ is not a function
/xnu-1456.1.26/osfmk/i386/i386_init.c:702: warning: unused variable ‘deltas’
That stuff it errors on is defined in osfmk/i386/mp.c, but I don't get how this should be available in osfmk/i386/i386_init.c. Does it need to be compiled before i386_init.c (i guess its a global define or so?)
Any thoughts?
wait, now i get it, slave_tsc_init moved, so i guess those declarations need to go somplace else..
@never_mindMorning I get these errors now: xnu-1456.1.26/osfmk/i386/i386_init.c: In function ‘slave_tsc_init’: /xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: implicit declaration of function ‘abs’ /xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: nested extern declaration of ‘abs’ /xnu-1456.1.26/osfmk/i386/i386_init.c: In function…
@never_mindwait, now i get it, slave_tsc_init moved, so i guess those declarations need to go somplace else..
ok for now i just chucked those static definitions it needs into the file
Now, I ended up at an important bit! SSE3 emulator start!
/xnu-1456.1.26/osfmk/i386/start.s:202:junk `(_sse3emu_size)' after expression
/xnu-1456.1.26/osfmk/i386/start.s:207:4294967296 shortened to 0
/xnu-1456.1.26/osfmk/i386/start.s:209:junk `(_master_idt)' after expression
make[6]: *** [start.o] Error 1
Arrgh. Now why does it say that? An(d)y ideas?
never_mind, did you figured out the problem with PADL_ and PADR_?
Cause i think this needs to be added to vfs_attrlist.c
#include <osfmk/mach/mach_traps.h>
But im not sure if that the correct way. mach_traps.h is in osfmk/mach/
And vfs_attrlist.c is in bsd/vfs/
Do you know how to change the path so it looks in the right directory?
And Andy, are you from belgium? Cause im dutch
Show 22 additional community field notes (#31–#52)
Not sure if this was "right", but what i did is put the sysproto.h from the 10.6 SDK in bsd/sys/ and included the bit in there that was in the original bsd/sys/sysproto.h
That takes me past that error..
@pαuℓzurrr.never_mind, did you figured out the problem with PADL_ and PADR_? Cause i think this needs to be added to vfs_attrlist.c #include <osfmk/mach/mach_traps.h> But im not sure if that the correct way. mach_traps.h is in osfmk/mach/ And vfs_attrlist.c is in bsd/vfs/ Do you know how to change the path so it looks in the right directory? And…
What do you mean with original? Cause i dont have sysproto.h. Only when i apply andy's patch...
Edit:
When deleted its generated from syscalls.master...
@pαuℓzurrr.What do you mean with original? Cause i dont have sysproto.h. Only when i apply andy's patch... Edit: When deleted its generated from syscalls.master...
Sorry, I meant after the patch.. I don't know, that generated one didn't work right?
Yes it did No errors when it generated...
Generating bsd/sys/sysproto.h from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/bsd/kern/syscalls.master
Here is the generated sysproto.h
paste bin.com/m18b29e92
This are the errors i'm having now...
CC bootargs.o
LDFILELIST pexpert
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/bsd/kern/kern_mib.c: In function ‘sysctl_mib_init’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/bsd/kern/kern_mib.c:715: error: break statement not within loop or switch
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/bsd/kern/kern_mib.c:717: error: ‘default’ label not within a switch statement
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/bsd/kern/kern_mib.c:764: error: expected declaration or statement at end of input
make[6]: *** [kern_mib.o] 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_bsd] Error 2
make[1]: *** Waiting for unfinished jobs....
cc1: warnings being treated as errors
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/libkern/kernel_mach_header.c: In function ‘get_cs_cmd_from_header’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/libkern/kernel_mach_header.c:183: warning: implicit declaration of function ‘ASSERT’
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/libkern/kernel_mach_header.c:183: warning: nested extern declaration of ‘ASSERT’
make[6]: *** [kernel_mach_header.o] 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_libkern] Error 2
In file included from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/cpuid.c:38:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/cpuid_legacy.h:32:1: error: "KB" redefined
In file included from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/mach/machine/vm_param.h:35,
from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/mach/vm_param.h:70,
from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/vm/vm_page.h:73,
from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/cpuid.c:33:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/mach/i386/vm_param.h:160:1: error: this is the location of the previous definition
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/cpuid.c: In function ‘cpuid_set_info’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/cpuid.c:830: error: too few arguments to function ‘PE_parse_boot_argn’
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/osfmk/i386/cpuid.c:834: error: too few arguments to function ‘PE_parse_boot_argn’
make[6]: *** [cpuid.o] 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_osfmk] Error 2
cc1plus: warnings being treated as errors
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp: In function ‘void iokit_post_constructor_init()’:
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
/Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
make[6]: *** [IOStartIOKit.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
C++ IOMapper.cpo
C++ IOMemoryCursor.cpo
C++ IOCopyMapper.cpo
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
make: *** [all] Error 2
Mmm, i didn't get any errors in pexpert... Did you see my PM?
@pαuℓzurrr.Yes it did No errors when it generated... Generating bsd/sys/sysproto.h from /Users/paulzurrr/Desktop/XNU/xnu-1456.1.26/bsd/kern/syscalls.master Here is the generated sysproto.h paste bin.com/m18b29e92 Still got a lot of errors with PE_parse_boot_arg...
this i my err
MIG UNDReplyServer.c
cc1plus: warnings being treated as errors
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/iokit/Kernel/IOStartIOKit.cpp: In function ‘void iokit_post_constructor_init()’:
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
/Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/arya/Downloads/Kernels/xnu-1456.1.26-Test/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
make[6]: *** [IOStartIOKit.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
make[1]: *** Waiting for unfinished jobs....
pastebin : paste bin.com/m77caee23
added : pass the pexpert by editing the /pexpert/pexpert/pexpert.h:
#if !defined(__LP64__) && !defined(__arm__)
extern boolean_t PE_parse_boot_arg(
const char *arg_string,
void *arg_ptr) __deprecated;
#endif
to :
#if !defined(__LP64__) && !defined(__arm__)
extern boolean_t PE_parse_boot_arg(
const char *arg_string,
void *arg_ptr);
#endif
i dont know if i m doing the right thing or not..
i get pass the ASERT thing by add
#include <kern/voodoo_assert.h> in /bsd/kern/mach_header.c
anybody got it fully patched yet? and in kernel form lol?
@xXrkidXxanybody got it fully patched yet? and in kernel form lol?
Not yet I think we might be talking days... Getting close
@never_mindMorning I get these errors now: xnu-1456.1.26/osfmk/i386/i386_init.c: In function ‘slave_tsc_init’: /xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: implicit declaration of function ‘abs’ /xnu-1456.1.26/osfmk/i386/i386_init.c:679: warning: nested extern declaration of ‘abs’ /xnu-1456.1.26/osfmk/i386/i386_init.c: In function…
Got the same error now. Can you tell me how you solved it?
Also have a error in cpuid_legacy.h32:1 error: "KB" redefined...
yesss were gettting closer! I CAN FEEL IT lol! God, i need a copy of OS X, windows is SO slow... that or more RAM so are all these messages just errors people are encountering? or is this just a log?
Anything yet guys? It'd be such a shame to not see a kernel soon... I'm missing the good 'ol days of OS X... Windows is failing miserably
lol no not yet im sure when its ready youll see it everywhere
Andy,
I'm sure this all will go faster if you have working SL installation.
Please use these instructions and necessary files to install it:
rapid share.com/files/287963888/SL_Stuff.zip
Several solutions failed for me, but this one worked.
These tools the patch too is necessary ?
bootstrap_cmds-72.tar.gz
dtrace-78.tar.gz
kext_tools-177.tar.gz
cxxfilt-9.tar.gz
My result:
my-Mac:~ slava$ cd xnu-1456.1.26
my-Mac:xnu-1456.1.26 slava$ make ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS="RELEASE"
MIG clock.h
Generating libkern/version.h from /Users/slava/xnu-1456.1.26/libkern/libkern/version.h.template
MIG clock_priv.h
MIG default_pager_object.h
MIG host_priv.h
MIG host_security.h
MIG ledger.h
MIG lock_set.h
MIG mach_host.h
Generating bsd/sys/syscall.h from /Users/slava/xnu-1456.1.26/bsd/kern/syscalls.master
MIG mach_port.h
MIG mach_vm.h
MIG memory_object_control.h
MIG memory_object_name.h
MIG kextd_mach.h
MIG processor.h
MIG gssd_mach.h
MIG processor_set.h
MIG lockd_mach.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/slava/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 bootargs.o
CC device_tree.o
CC pe_gen.o
CC randomdev.o
CC pe_init.o
CC pe_bootargs.o
CC IOHibernateRestoreKernel.o
CC pe_identify_machine.o
CC smf.o
CC pe_kprintf.o
CC pe_interrupt.o
CC fips_sha1.o
CC comp.o
CC pe_serial.o
LDFILELIST pexpert
CC prng.o
In file included from /Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92,
from /Users/slava/xnu-1456.1.26/iokit/Kernel/IOLib.cpp:55:
/Users/slava/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/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope
/Users/slava/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/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope
make[6]: *** [IOLib.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
CC yarrowUtils.o
In file included from /Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92,
from /Users/slava/xnu-1456.1.26/iokit/Kernel/IOHibernateIO.cpp:160:
/Users/slava/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/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope
/Users/slava/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/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope
CC sha1mod.o
C++ IOLocks.cpo
make[6]: *** [IOHibernateIO.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
In file included from /Users/slava/xnu-1456.1.26/bsd/sys/sysctl.h:92,
from /Users/slava/xnu-1456.1.26/bsd/dev/unix_startup.c:49:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast
cc1: warnings being treated as errors
In file included from /Users/slava/xnu-1456.1.26/bsd/sys/sysctl.h:92,
from /Users/slava/xnu-1456.1.26/bsd/sys/user.h:81,
from /Users/slava/xnu-1456.1.26/bsd/sys/vfs_context.h:8,
from /Users/slava/xnu-1456.1.26/bsd/sys/vnode_internal.h:87,
from /Users/slava/xnu-1456.1.26/bsd/dev/vn/vn.c:104:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:
/Users/slava/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast
make[6]: *** [vn.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC unix_startup.o
CC memdev.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
my-Mac:xnu-1456.1.26 slava$
Code build :
appl esana.es/foro/77/22174/compilar-kernel-xnu-mac-os-x.html
woohoo, keep working hard guys! were so close i can taste Snow Kitty! lol
Has added:
#include <i386/mach_traps.h>
Has corrected:
//#ifndef _SYS_LINKER_SET_H_
void *getsectdatafromheader(kernel_mach_header_t *, const char *, const char *, unsigned long *);
//#endif
Result:
my-Mac:xnu-1456.1.26 slava$ make ARCH_CONFIGS="I386 X86_64" KERNEL_CONFIGS="RELEASE"
MIG clock.h
Generating libkern/version.h from /Users/slava/xnu-1456.1.26/libkern/libkern/version.h.template
MIG clock_priv.h
MIG host_priv.h
MIG host_security.h
Generating bsd/sys/syscall.h from /Users/slava/xnu-1456.1.26/bsd/kern/syscalls.master
MIG ledger.h
MIG lock_set.h
MIG mach_host.h
MIG mach_port.h
MIG mach_vm.h
MIG default_pager_object.h
MIG memory_object_control.h
MIG memory_object_name.h
MIG gssd_mach.h
MIG kextd_mach.h
MIG lockd_mach.h
MIG processor.h
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
MIG default_pager_alerts_user.c
CC WKdmCompress.o
MIG default_pager_object_server.c
CC device_tree.o
MIG device_server.h
MIG device_server.c
CC randomdev.o
MIG audit_triggers_user.c
MIG clock_reply_user.c
MIG exc_user.c
MIG host_notify_reply_user.c
MIG mach_exc_user.c
MIG mach_notify_user.c
MIG memory_object_user.c
MIG memory_object_control_user.c
CC WKdmDecompress.o
MIG memory_object_default_user.c
CC bootargs.o
MIG task_access_user.c
CC pe_gen.o
MIG upl_user.c
MIG vm_map_user.c
MIG clock_server.c
MIG clock_priv_server.c
CC pe_init.o
MIG exc_server.c
CC pe_bootargs.o
CC pe_identify_machine.o
MIG host_priv_server.c
CC fips_sha1.o
CC pe_kprintf.o
MIG host_security_server.c
CC smf.o
CC comp.o
MIG ledger_server.c
CC pe_interrupt.o
MIG lock_set_server.c
CC pe_serial.o
LDFILELIST pexpert
CC prng.o
MIG mach_exc_server.c
MIG UNDRequest.c
MIG mach_host_server.c
MIG UNDReplyServer.c
MIG mach_notify_server.c
MIG gssd_mach.c
MIG mach_port_server.c
MIG gssd_mach.h
MIG mach_vm_server.c
MIG memory_object_server.c
CC sha1mod.o
CC yarrowUtils.o
MIG memory_object_control_server.c
MIG memory_object_default_server.c
MIG memory_object_name_server.c
MIG processor_server.c
CC memdev.o
CC OSAtomicOperations.o
MIG processor_set_server.c
MIG security_server.c
C++ OSDebug.cpo
MIG task_server.c
CC unix_startup.o
MIG thread_act_server.c
MIG upl_server.c
MIG vm_map_server.c
MIG vm32_map_server.c
MIG kextd_mach.c
MIG kextd_mach.h
C++ IOHibernateIO.cpo
CC vn.o
MIG lockd_mach.c
MIG lockd_mach.h
CC shadow.o
CC crc32.o
C++ OSMetaClass.cpo
CC IOHibernateRestoreKernel.o
CC random.o
CC scanc.o
CC skpc.o
CC default_pager.o
CC strsep.o
CC inet_ntop.o
CC bcd.o
cc1: warnings being treated as errors
In file included from /Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:47:
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:2: warning: implicit declaration of function ‘PADL_’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: expected expression before ‘int’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: variably modified ‘fd_l_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:2: warning: implicit declaration of function ‘PADR_’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: expected expression before ‘int’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:2: error: variably modified ‘fd_r_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: expected expression before ‘uint32_t’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: variably modified ‘arch_offset_l_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: expected expression before ‘uint32_t’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:3: error: variably modified ‘arch_offset_r_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: expected expression before ‘uint32_t’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: variably modified ‘arch_size_l_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: expected expression before ‘uint32_t’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:4: error: variably modified ‘arch_size_r_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: expected expression before ‘user_addr_t’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: variably modified ‘map_addr_l_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: expected expression before ‘user_addr_t’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:5: error: variably modified ‘map_addr_r_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: expected expression before ‘u_int’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: variably modified ‘mode_l_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: expected expression before ‘u_int’
/Users/slava/xnu-1456.1.26/bsd/sys/sysproto.h:6: error: variably modified ‘mode_r_’ at file scope
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:619: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:619: warning: its scope is only this definition or declaration, which is probably not what you want
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getvolattrlist’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:641: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:848: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1143: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1155: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1174: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getattrlist_internal’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1204: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1232: warning: passing argument 2 of ‘getvolattrlist’ from incompatible pointer type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1238: error: dereferencing pointer to incomplete type
C++ OSObject.cpo
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1854: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1869: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1869: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1888: warning: ‘struct fgetattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1889: warning: no previous prototype for ‘fgetattrlist’
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘fgetattrlist’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1893: error: storage size of ‘ap’ isn’t known
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1898: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1902: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1907: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1908: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1909: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1910: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1914: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1893: warning: unused variable ‘ap’
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1922: warning: ‘struct getattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1923: warning: no previous prototype for ‘getattrlist’
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘getattrlist’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1937: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1939: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1946: warning: passing argument 2 of ‘getattrlist_internal’ from incompatible pointer type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:1987: warning: ‘struct setattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘setattrlist_internal’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2008: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2048: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2053: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2059: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2059: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2075: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2311: warning: ‘struct setattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2312: warning: no previous prototype for ‘setattrlist’
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘setattrlist’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2325: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2327: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2333: warning: passing argument 2 of ‘setattrlist_internal’ from incompatible pointer type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: At top level:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2341: warning: ‘struct fsetattrlist_args’ declared inside parameter list
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2342: warning: no previous prototype for ‘fsetattrlist’
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c: In function ‘fsetattrlist’:
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2346: error: storage size of ‘ap’ isn’t known
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2350: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2354: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2359: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2360: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2361: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2362: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2365: error: dereferencing pointer to incomplete type
/Users/slava/xnu-1456.1.26/bsd/vfs/vfs_attrlist.c:2346: warning: unused variable ‘ap’
make[6]: *** [vfs_attrlist.o] 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_bsd] Error 2
make[1]: *** Waiting for unfinished jobs....
CC c_start.o
CC c_stop.o
CC cplus_start.o
CC cplus_stop.o
C++ IOLib.cpo
LIBTOOL libkmod.a
C++ OSArray.cpo
C++ IOLocks.cpo
LIBTOOL libkmodc++.a
C++ OSBoolean.cpo
ERROR: OSBoolean.cpp: failed to get mapping for tid 10562
CC dp_backing_store.o
C++ IOConditionLock.cpo
C++ OSCollection.cpo
CC dp_memory_object.o
CC default_pager_alerts_user.o
C++ IOSyncer.cpo
C++ OSCollectionIterator.cpo
CC gssd_mach.o
cc1plus: warnings being treated as errors
/Users/slava/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp: In function ‘void iokit_post_constructor_init()’:
/Users/slava/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
/Users/slava/xnu-1456.1.26/iokit/Kernel/IOStartIOKit.cpp:100: warning: ‘PE_parse_boot_arg’ is deprecated (declared at /Users/slava/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/pexpert/pexpert/pexpert.h:239)
make[6]: *** [IOStartIOKit.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
CC default_pager_object_server.o
CC lockd_mach.o
CC kextd_mach.o
C++ OSData.cpo
UserNotification/UNDRequest.c: In function ‘UNDDisplayCustomFromDictionary_rpc’:
UserNotification/UNDRequest.c:656: warning: cast discards qualifiers from pointer target type
CC UNDReplyServer.o
CC UNDRequest.o
CC db_ext_symtab.o
CC KUNCUserNotifications.o
C++ OSDictionary.cpo
C++ OSIterator.cpo
C++ IODeviceTreeSupport.cpo
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 kdp_serial.o
CC kdp.o
C++ OSNumber.cpo
CC kdp_udp.o
C++ OSOrderedSet.cpo
CC OSRuntimeSupport.o
CC ipc_entry.o
C++ OSRuntime.cpo
CC ipc_hash.o
C++ OSSerialize.cpo
CC ipc_init.o
C++ OSSet.cpo
CC ipc_notify.o
CC ipc_mqueue.o
C++ OSString.cpo
CC ipc_kmsg.o
CC ipc_object.o
C++ OSSymbol.cpo
CC ipc_port.o
C++ OSUnserialize.cpo
CC ipc_pset.o
C++ OSUnserializeXML.cpo
CC ipc_space.o
CC mkext.o
CC ipc_right.o
CC OSKextVersion.o
CC ipc_splay.o
C++ OSKextLib.cpo
CC ipc_table.o
CC scanf.o
CC ipc_labelh.o
cc1: warnings being treated as errors
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:151: warning: no previous prototype for ‘getsectbynamefromheader_64’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c: In function ‘getsectbynamefromheader_64’:
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:151: warning: implicit declaration of function ‘getsegbynamefromheader_64’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:151: warning: nested extern declaration of ‘getsegbynamefromheader_64’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:151: warning: assignment makes pointer from integer without a cast
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c: At top level:
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:175: warning: no previous prototype for ‘getsegbynamefromheader_64’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:175: error: conflicting types for ‘getsegbynamefromheader_64’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:151: error: previous implicit declaration of ‘getsegbynamefromheader_64’ was here
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:178: warning: no previous prototype for ‘get_cs_cmd_from_header’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c: In function ‘get_cs_cmd_from_header’:
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:183: warning: implicit declaration of function ‘ASSERT’
/Users/slava/xnu-1456.1.26/libkern/kernel_mach_header.c:183: warning: nested extern declaration of ‘ASSERT’
make[6]: *** [kernel_mach_header.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC uuid.o
CC mach_debug.o
CC mach_msg.o
CC ast.o
C++ OSKext.cpo
CC affinity.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_libkern] Error 2
CC audit_sessionport.o
CC counters.o
CC mach_port.o
CC clock.o
CC clock_oldops.o
CC exception.o
CC debug.o
CC host_notify.o
CC ipc_clock.o
CC host.o
CC ipc_host.o
CC ipc_kobject.o
CC ipc_sync.o
CC ipc_mig.o
CC ledger.o
CC kalloc.o
CC mach_clock.o
CC locks.o
CC machine.o
CC mk_sp.o
CC page_decrypt.o
CC ipc_tt.o
CC mk_timer.o
CC priority.o
CC processor_data.o
CC queue.o
CC sched_average.o
CC printf.o
CC processor.o
CC security.o
CC startup.o
CC stack.o
CC syscall_emulation.o
CC sync_lock.o
CC sync_sema.o
CC syscall_sw.o
CC syscall_subr.o
CC task_swap.o
CC task_policy.o
CC sched_prim.o
CC thread_act.o
CC task.o
CC thread_call.o
CC timer.o
CC thread.o
CC thread_policy.o
CC timer_call.o
CC hibernate.o
CC bsd_kern.o
CC wait_queue.o
CC clock_server.o
CC clock_reply_user.o
CC clock_priv_server.o
CC zalloc.o
CC exc_user.o
CC exc_server.o
CC pmc.o
CC host_security_server.o
CC ledger_server.o
CC lock_set_server.o
CC mach_exc_user.o
CC mach_notify_user.o
CC mach_exc_server.o
CC host_priv_server.o
CC mach_host_server.o
CC memory_object_server.o
CC memory_object_default_server.o
CC mach_port_server.o
CC mach_vm_server.o
CC memory_object_control_server.o
CC memory_object_name_server.o
CC audit_triggers_user.o
CC task_access_user.o
CC upl_server.o
CC processor_server.o
CC processor_set_server.o
CC thread_act_server.o
CC security_server.o
CC task_server.o
CC vm32_map_server.o
CC device_vm.o
CC vm_external.o
CC vm_debug.o
CC bsd_vm.o
CC vm_init.o
CC vm_kern.o
CC memory_object.o
CC vm_fault.o
CC vm_purgeable.o
CC vm_object.o
CC vm_shared_region.o
CC vm_pageout.o
CC vm_swapfile_pager.o
CC vm_resident.o
CC vm32_user.o
CC iokit_rpc.o
CC device_init.o
CC kext_alloc.o
CC vm_map.o
CC vm_user.o
CC kmod.o
CC chud_glue.o
CC subrs.o
CC chud_cpu.o
CC chud_memory.o
CC chud_osfmk_callback.o
CC serial_general.o
CC chud_thread.o
CC pmap_x86_common.o
CC vm_apple_protect.o
CC machdep_call.o
CC bsd_i386.o
CC cpu.o
CC cpuid.o
CC device_server.o
CC cpu_threads.o
CC cpu_topology.o
CC etimer.o
CC pmap.o
CC gdt.o
CC fpu.o
CC idle_pt.o
CC i386_init.o
CC ktss.o
CC io_map.o
CC ldt.o
CC i386_vm_init.o
CC machine_routines.o
CC loose_ends.o
CC machine_check.o
CC machine_task.o
CC locks_i386.o
CC phys.o
CC rtclock.o
CC mp_desc.o
CC user_ldt.o
CC Diagnostics.o
CC trap.o
CC tsc.o
CC commpage_sigs.o
CC pmCPU.o
CC conf.o
CC pcb.o
CC commpage.o
CC acpi.o
CC lapic.o
CC model_dep.o
CC mtrr.o
CC mp.o
CC video_scroll.o
CC serial_console.o
CC kdp_vm.o
CC kdp_machdep.o
CC panic_dialog.o
CC hibernate_i386.o
CC kdp_x86_common.o
CC hibernate_restore.o
CC chud_cpu_i386.o
CC chud_osfmk_callback_i386.o
CC vmx_cpu.o
CC chud_thread_i386.o
CC video_console.o
CC vmx_shims.o
AS bcopy.o
AS _setjmp.o
CC startup64.o
AS bzero.o
AS idt.o
AS i386_lock.o
AS locore.o
AS start.o
AS lowmem_vectors.o
AS machine_routines_asm.o
AS cswitch.o
AS commpage_asm.o
AS atomic.o
AS commpage_mach_absolute_time.o
AS cpu_number.o
AS spinlocks.o
AS pthreads.o
AS cacheflush.o
AS commpage_gettimeofday.o
AS bcopy_scalar.o
AS bcopy_sse2.o
AS bcopy_sse3x.o
AS bcopy_sse3x_64.o
AS bcopy_sse42.o
AS bcopy_sse42_64.o
AS bzero_scalar.o
AS bzero_sse2_64.o
AS bzero_sse2.o
AS bzero_sse42.o
AS bzero_sse42_64.o
AS memset_pattern_sse2_64.o
AS memset_pattern_sse2.o
AS longcopy_sse3x_64.o
AS longcopy_sse3x.o
AS acpi_wakeup.o
AS start64.o
AS fifo_queues.o
AS idt64.o
LDFILELIST osfmk
make: *** [all] Error 2
my-Mac:xnu-1456.1.26 slava$
How to correct other errors?
yea... i waqs kinda hoping to have more progress sooner... I'm missing OS X, c'mon guys! keep working hard for the other people of the world! lmao
I think were kinda stuck and waitin for Andy to help us
= did you figured out the problem with PADL_ and PADR_?
Cause i think this needs to be added to vfs_attrlist.c
#include <osfmk/mach/mach_traps.h>
But im not sure if that the correct way. mach_traps.h is in osfmk/mach/
And vfs_attrlist.c is in bsd/vfs/ =
--------------------------------------------------------------------
how correctly and where to change and add it ?
Show how you repaired the ...
@Lykich= did you figured out the problem with PADL_ and PADR_? Cause i think this needs to be added to vfs_attrlist.c #include <osfmk/mach/mach_traps.h> But im not sure if that the correct way. mach_traps.h is in osfmk/mach/ And vfs_attrlist.c is in bsd/vfs/ = -------------------------------------------------------------------- how correctly…
you can read the older post, try to read from page 1.. you might found the sollution for that..
Kernel is made by qoopz, SSE2/SSE3 - 32/64 Bit Kernel for Snow Leopard by qoopz →
@aryajuandai have an AMD machine running SL in 32 bit mode with this metode : Snow Leopard 10A432 Install , will try to compile it tonight... hope i can help creating 64 bit XNU kernel..
waiting for this kernel so much…hope somebody would create it for non vanilla user
Sources & Contributor Provenance (14 credited usernames · Thread #4227)
| Username | Dossier Contribution | Dispatches | Active Window |
|---|---|---|---|
| @andyvand | Primary Author | 17 | 2009-09-26 → 2009-09-29 |
| @pαuℓzurrr. | Core Contributor | 17 | 2009-09-27 → 2009-10-12 |
| @never_mind | Core Contributor | 14 | 2009-09-27 → 2009-09-30 |
| @xXrkidXx | Core Contributor | 10 | 2009-09-26 → 2009-10-13 |
| @Lykich | Core Contributor | 6 | 2009-09-26 → 2009-10-05 |
| @aryajuanda | Core Contributor | 6 | 2009-09-28 → 2009-10-05 |
| @perisman | Contributor | 2 | 2009-09-26 → 2009-09-27 |
| @maya77 | Contributor | 2 | 2009-09-27 → 2009-10-03 |
| @bobtom0 | Contributor | 2 | 2009-09-29 |
| @rbm | Contributor | 1 | 2009-09-26 |
| @dashboard | Contributor | 1 | 2009-09-28 |
| @RetroRen | Contributor | 1 | 2009-09-29 |
| @direlime | Contributor | 1 | 2009-10-02 |
| @val88chan | Contributor | 1 | 2009-11-25 |