InfiniteMac OSx86

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

andyvand 09-26-2009 04:46 PM

Snow Leopard xnu kernel test patch
 
http://rapidshare.com/files/28528776...-AnV_test.diff
I can't compile it since I use Leopard and xcrun doesn't work under it.
Could somebody please do a test build for me?
NOTE: It could still contain a few errors or mistakes at this time.
Enjoy this new test patch... ;)

Lykich 09-26-2009 06:57 PM

Sources were patched without errors,
How to build xnu ?

perisman 09-26-2009 08:00 PM

applying diff
 
how apply the patch?

rbm 09-26-2009 10:53 PM

Download from opensource.apple.com these packages, and build it.

cxxfilt-9.tar.gz
dtrace-78.tar.gz
kext_tools-177.tar.gz
bootstrap_cmds-72.tar.gz

I can compile the original sources but the patched not. I get this error:

MIG clock.h
MIG default_pager_object.h
MIG clock_priv.h
MIG host_priv.h
MIG host_security.h
MIG ledger.h
MIG lock_set.h
MIG mach_host.h
Generating libkern/version.h from /Users/Pet/Desktop/xnu-1456.1.26/libkern/libkern/version.h.template
MIG mach_port.h
MIG gssd_mach.h
MIG mach_vm.h
MIG kextd_mach.h
MIG memory_object_control.h
MIG memory_object_name.h
MIG lockd_mach.h
MIG processor.h
Generating bsd/sys/syscall.h from /Users/Pet/Desktop/xnu-1456.1.26/bsd/kern/syscalls.master
MIG processor_set.h
MIG security.h
MIG task.h
MIG task_access.h
MIG thread_act.h
MIG upl.h
MIG vm_map.h
MIG audit_triggers_server.h
MIG clock_reply_server.h
MIG exc_server.h
MIG mach_exc_server.h
MIG memory_object_server.h
MIG memory_object_default_server.h
MIG notify_server.h
MIG task_access_server.h
Missing }.
make[4]: *** [/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//RELEASE_I386/osfmk/RELEASE/Makefile] Error 1
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_osfmk] Error 2
make[1]: *** Waiting for unfinished jobs....
CC WKdmCompress.o
CC WKdmDecompress.o
CC device_tree.o
CC bootargs.o
CC pe_gen.o
CC randomdev.o
CC pe_init.o
CC pe_bootargs.o
CC pe_identify_machine.o
CC IOHibernateRestoreKernel.o
CC pe_kprintf.o
CC pe_interrupt.o
In file included from /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92,
from /Users/Pet/Desktop/xnu-1456.1.26/iokit/Kernel/IOHibernateIO.cpp:160:
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_begin(kernel_mach_header_t*, const char*)’:
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_limit(kernel_mach_header_t*, const char*)’:
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope
CC pe_serial.o
LDFILELIST pexpert
make[6]: *** [IOHibernateIO.cpo] Error 1
make[6]: *** Waiting for unfinished jobs....
CC fips_sha1.o
CC comp.o
CC smf.o
CC yarrowUtils.o
CC prng.o
In file included from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/sysctl.h:92,
from /Users/Pet/Desktop/xnu-1456.1.26/bsd/dev/unix_startup.c:49:
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’:
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:In file included from /Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/sysctl.h:92,
from /Users/Pet/Desktop/xnu-1456.1.26/iokit/Kernel/IOLib.cpp:55:
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_begin(kernel_mach_header_t*, const char*)’:
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:195: error: ‘getsectdatafromheader’ was not declared in this scope
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h: In function ‘void** __linker_set_object_limit(kernel_mach_header_t*, const char*)’:
/Users/Pet/Desktop/xnu-1456.1.26/BUILD/obj//EXPORT_HDRS/bsd/sys/linker_set.h:208: error: ‘getsectdatafromheader’ was not declared in this scope

/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast
make[6]: *** [IOLib.cpo] Error 1
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_iokit] Error 2
CC memdev.o
CC sha1mod.o
cc1: warnings being treated as errors
In file included from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/sysctl.h:92,
from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/user.h:81,
from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/vfs_context.h:8,
from /Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/vnode_internal.h:87,
from /Users/Pet/Desktop/xnu-1456.1.26/bsd/dev/vn/vn.c:104:
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_begin’:
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: implicit declaration of function ‘getsectdatafromheader’
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: nested extern declaration of ‘getsectdatafromheader’
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:195: warning: assignment makes pointer from integer without a cast
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h: In function ‘__linker_set_object_limit’:
/Users/Pet/Desktop/xnu-1456.1.26/bsd/sys/linker_set.h:208: warning: assignment makes pointer from integer without a cast
CC unix_startup.o
make[6]: *** [vn.o] Error 1
make[6]: *** Waiting for unfinished jobs....
CC crc32.o
CC random.o
CC shadow.o
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_bsd] Error 2
make: *** [all] Error 2

xXrkidXx 09-26-2009 10:56 PM

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

andyvand 09-27-2009 08:32 AM

getsectdatafromheader is declared in <libkern/kernel_mach_header.h>
you should put #include <libkern/kernel_mach_header.h> into the failing header
That should fix this up

never_mind 09-27-2009 11:17 AM

Quote:

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

patch -p0 -i xnu-1456.1.26-AnV_test.diff

from the directory you have both the patch and the sources in (in xnu-1456.1.26)

perisman 09-27-2009 12:06 PM

I have the same error as rbm, without patching compile, and patched no.
I take a look at headers, and libkern/mach_kernel_header.h is include under ifdef kernel argument.

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

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

maya77 09-27-2009 08:48 PM

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

never_mind 09-27-2009 10:17 PM

Quote:

Originally Posted by andyvand (Post 36000)
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

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?

Cheers! :)

never_mind 09-28-2009 10:09 AM

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




Quote:

Originally Posted by never_mind (Post 36084)
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?

Cheers! :)


never_mind 09-28-2009 10:13 AM

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? | -)

dashboard 09-28-2009 11:56 AM

Somebody compiled this yet? Can't wait :D

andyvand 09-28-2009 11:56 AM

Quote:

Originally Posted by maya77 (Post 36081)
As 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

andyvand 09-28-2009 11:57 AM

Quote:

Originally Posted by never_mind (Post 36126)
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 could add that afterwards but lets first get this fixed up and working...

andyvand 09-28-2009 11:59 AM

Quote:

Originally Posted by never_mind (Post 36125)
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...

Check task_access_server.mig...
Try manually migging it and check for errors, then let me know...

aryajuanda 09-28-2009 12:31 PM

i have an AMD machine running SL in 32 bit mode with this metode : http://www.infinitemac.com/f57/amd-s...install-t3727/ , will try to compile it tonight... hope i can help creating 64 bit XNU kernel..

never_mind 09-28-2009 04:14 PM

Quote:

Originally Posted by andyvand (Post 36143)
Check 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?

andyvand 09-28-2009 07:57 PM

Quote:

Originally Posted by never_mind (Post 36172)
Could 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

bobtom0 09-29-2009 04:39 AM

I've compiled xnu-1456.1.26 by following this guide: http://shantonu.blogspot.com/2009/09...-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?

pαuℓzurrr. 09-29-2009 08:42 AM

Code:

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

andyvand 09-29-2009 09:15 AM

Quote:

Originally Posted by pαuℓzurrr. (Post 36238)
Code:

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

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. 09-29-2009 10:24 AM

It seems that their defined in mach_traps.h...
Not sure which header file to include...

andyvand 09-29-2009 11:14 AM

Quote:

Originally Posted by pαuℓzurrr. (Post 36246)
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 ;)

RetroRen 09-29-2009 11:49 AM

Nice to hear that Andy, looking forward to AnV snow kitty kernel :)

andyvand 09-29-2009 12:25 PM

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. 09-29-2009 12:40 PM

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 :)

never_mind 09-29-2009 12:44 PM

Quote:

Originally Posted by andyvand (Post 36186)
look 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

never_mind 09-29-2009 12:58 PM

Quote:

Originally Posted by andyvand (Post 36252)
I 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??

andyvand 09-29-2009 01:39 PM

Quote:

Originally Posted by pαuℓzurrr. (Post 36254)
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)

andyvand 09-29-2009 01:40 PM

Quote:

Originally Posted by never_mind (Post 36257)
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??

Since the installer can't load up due to the not working kernel...
I tried installing from USB HD

never_mind 09-29-2009 02:10 PM

Quote:

Originally Posted by andyvand (Post 36262)
Since 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..

pαuℓzurrr. 09-29-2009 05:59 PM

Code:

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: http://pastebin.com/m24986ef1

andyvand 09-29-2009 06:32 PM

Quote:

Originally Posted by pαuℓzurrr. (Post 36286)
Code:

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: http://pastebin.com/m24986ef1

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

andyvand 09-29-2009 06:36 PM

Quote:

Originally Posted by never_mind (Post 36269)
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..

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. 09-29-2009 07:13 PM

Quote:

Originally Posted by andyvand (Post 36293)
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

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;
Code:

xcodebuild: 'ctfconvert' not found
/Developer/usr/bin/xcodebuild fails with 512 - Unknown error: 512

Thanks!

andyvand 09-29-2009 08:11 PM

Quote:

Originally Posted by pαuℓzurrr. (Post 36301)
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;
Code:

xcodebuild: 'ctfconvert' not found
/Developer/usr/bin/xcodebuild fails with 512 - Unknown error: 512

Thanks!

Add to makedefs/MakeInc.def on top:
export BUILD_STABS = 1

pαuℓzurrr. 09-29-2009 08:47 PM

Thanks man ;) Was kinda annoying when compiling :p

andyvand 09-29-2009 09:09 PM

Quote:

Originally Posted by pαuℓzurrr. (Post 36311)
Thanks man ;) Was kinda annoying when compiling :p

No problem ;)

xXrkidXx 09-29-2009 09:13 PM

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

pαuℓzurrr. 09-29-2009 09:28 PM

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? :p

andyvand 09-29-2009 09:47 PM

Quote:

Originally Posted by pαuℓzurrr. (Post 36316)
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? :p

yes... before the inclusion of the "bad header"
P.S. Sorry... I'm using a win PC right now... can't remotely control... :(

xXrkidXx 09-29-2009 09:48 PM

teamveiwer!! cross platform lol

pαuℓzurrr. 09-29-2009 09:55 PM

Quote:

Originally Posted by andyvand (Post 36317)
yes... 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...

andyvand 09-29-2009 09:58 PM

Quote:

Originally Posted by pαuℓzurrr. (Post 36319)
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 ;)

bobtom0 09-29-2009 11:51 PM

Quote:

Originally Posted by andyvand (Post 36261)
It 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/ind...owtopic=181699 worked for me as does the new Chameleon 2.0 RC3.

never_mind 09-30-2009 06:21 AM

Quote:

Originally Posted by andyvand (Post 36320)
Yeah... 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:

Code:

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?

aryajuanda 09-30-2009 06:34 AM

what is sysproto.h use for?

never_mind 09-30-2009 06:53 AM

wait, now i get it, slave_tsc_init moved, so i guess those declarations need to go somplace else..

Quote:

Originally Posted by never_mind (Post 36353)
Morning ;)

I get these errors now:

Code:

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?