We have these macros in os-macosx-x86.32.h:

#if __DARWIN_UNIX03
        #define MACH_EXC_STATE_FAULT(exc_state) (exc_state)->__faultvaddr
        #define MACH_STACK_POINTER(thr_state) (thr_state)->__esp
        #define MACH_PROGRAM_COUNTER(thr_state) (thr_state)->__eip
        #define UAP_PROGRAM_COUNTER(ucontext) \
                MACH_PROGRAM_COUNTER(&(((ucontext_t 
*)(ucontext))->uc_mcontext->__ss))
#else
        #define MACH_EXC_STATE_FAULT(exc_state) (exc_state)->faultvaddr
        #define MACH_STACK_POINTER(thr_state) (thr_state)->esp
        #define MACH_PROGRAM_COUNTER(thr_state) (thr_state)->eip
        #define UAP_PROGRAM_COUNTER(ucontext) \
                MACH_PROGRAM_COUNTER(&(((ucontext_t 
*)(ucontext))->uc_mcontext->ss))    
#endif

__DARWIN_UNIX03 is defined on 10.5 but not 10.4

I know that it compiles on 10.5 for sure, so it seems that the second  
definition of UAP_PROGRAM_COUNTER is incorrect.

Unfortunately I don't have access to a 10.4 machine right now. This  
code was written by Matthew Willis; Matthew, do you have any ideas?

Slava

On Apr 12, 2008, at 7:51 AM, Stefan Scholl wrote:

> Hi!
>
> $ nice build-support/factor.sh update
> [...]
> gcc -c -Wall -O3  -fomit-frame-pointer -fPIC -fno-builtin-strlen - 
> fno-builtin-strcat -mtune=pentium4 -o vm/bignum.o vm/bignum.c
> vm/os-unix.c: In function uap_stack_pointer:
> vm/os-unix.c:199: error: dereferencing pointer to incomplete type
> vm/os-unix.c: In function memory_signal_handler:
> vm/os-unix.c:214: error: dereferencing pointer to incomplete type
> vm/os-unix.c: In function misc_signal_handler:
> vm/os-unix.c:221: error: dereferencing pointer to incomplete type
> make[1]: *** [vm/os-unix.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [macosx-x86-32] Error 2
> make failed
>
>
> MacOS X 10.4.11 (Intel), gcc 4.0.1
>
> Don't know since when, just tried it yesterday and today.
>
>
>
> Regards,
> Stefan
>
> -- 
> Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save  
> $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to