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)

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