[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] Re: MAC OSX port
From: |
Martin Snelgrove |
Subject: |
[Axiom-developer] Re: MAC OSX port |
Date: |
Mon, 14 Feb 2005 19:18:22 -0500 |
Tim;
Appended below please find the second half of my response, with the
compile: looks to me like it's finding struct sigaction from
/usr/include/sys
regards
ws
P.S. let me know if I should be "attach"ing files like these rather
than inlining them, or whether I'm polluting too many inboxes.
On Feb 14, 2005, at 01.19, root wrote:
Please try the following and send the output:
cd /Users/snelgar/downloads/axiom/int/lib
gcc -E -Wall -D_GNU_SOURCE -DMACOSXplatform -I/usr/X11/include
-I/usr/include/sys bsdsignal.c
The -E flag run the preprocessor and inline all of the include files.
If sigaction is not declared then we have to figure out where the MAC
would hide the declaration.
lib $ gcc -E -Wall -D_GNU_SOURCE -DMACOSXplatform -I/usr/X11/include
-I/usr/include/sys bsdsignal.c
# 1 "bsdsignal.c"
#pragma GCC set_debug_pwd "/Users/snelgar/downloads/axiom/int/lib"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bsdsignal.c"
bsdsignal.c:34:22: useproto.h: No such file or directory
bsdsignal.c:35:23: bsdsignal.h: No such file or directory
# 37 "bsdsignal.c"
# 1 "/usr/include/sys/signal.h" 1
# 66 "/usr/include/sys/signal.h"
# 1 "/usr/include/sys/appleapiopts.h" 1 3 4
# 67 "/usr/include/sys/signal.h" 2
# 1 "/usr/include/machine/signal.h" 1 3 4
# 27 "/usr/include/machine/signal.h" 3 4
# 1 "/usr/include/ppc/signal.h" 1 3 4
# 32 "/usr/include/ppc/signal.h" 3 4
typedef int sig_atomic_t;
# 50 "/usr/include/ppc/signal.h" 3 4
typedef enum {
REGS_SAVED_NONE,
REGS_SAVED_CALLER,
REGS_SAVED_ALL
} regs_saved_t;
# 66 "/usr/include/ppc/signal.h" 3 4
struct sigcontext {
int sc_onstack;
int sc_mask;
int sc_ir;
int sc_psw;
int sc_sp;
void *sc_regs;
};
# 28 "/usr/include/machine/signal.h" 2 3 4
# 73 "/usr/include/sys/signal.h" 2
# 134 "/usr/include/sys/signal.h"
# 1 "/usr/include/sys/types.h" 1 3 4
# 69 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 70 "/usr/include/sys/types.h" 2 3 4
# 1 "/usr/include/machine/types.h" 1 3 4
# 30 "/usr/include/machine/types.h" 3 4
# 1 "/usr/include/ppc/types.h" 1 3 4
# 69 "/usr/include/ppc/types.h" 3 4
typedef signed char int8_t;
typedef unsigned char u_int8_t;
typedef short int16_t;
typedef unsigned short u_int16_t;
typedef int int32_t;
typedef unsigned int u_int32_t;
typedef long long int64_t;
typedef unsigned long long u_int64_t;
typedef int32_t register_t;
typedef long int intptr_t;
typedef unsigned long int uintptr_t;
# 31 "/usr/include/machine/types.h" 2 3 4
# 73 "/usr/include/sys/types.h" 2 3 4
# 1 "/usr/include/machine/ansi.h" 1 3 4
# 33 "/usr/include/machine/ansi.h" 3 4
# 1 "/usr/include/ppc/ansi.h" 1 3 4
# 93 "/usr/include/ppc/ansi.h" 3 4
typedef union {
char __mbstate8[128];
long long _mbstateL;
} __mbstate_t;
# 34 "/usr/include/machine/ansi.h" 2 3 4
# 75 "/usr/include/sys/types.h" 2 3 4
# 1 "/usr/include/machine/endian.h" 1 3 4
# 30 "/usr/include/machine/endian.h" 3 4
# 1 "/usr/include/ppc/endian.h" 1 3 4
# 81 "/usr/include/ppc/endian.h" 3 4
unsigned long htonl (unsigned long);
unsigned short htons (unsigned short);
unsigned long ntohl (unsigned long);
unsigned short ntohs (unsigned short);
# 31 "/usr/include/machine/endian.h" 2 3 4
# 76 "/usr/include/sys/types.h" 2 3 4
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef u_int64_t u_quad_t;
typedef int64_t quad_t;
typedef quad_t * qaddr_t;
typedef char * caddr_t;
typedef int32_t daddr_t;
typedef int32_t dev_t;
typedef u_int32_t fixpt_t;
typedef u_int32_t gid_t;
typedef u_int32_t in_addr_t;
typedef u_int16_t in_port_t;
typedef u_int32_t ino_t;
typedef long key_t;
typedef u_int16_t mode_t;
typedef u_int16_t nlink_t;
typedef quad_t off_t;
typedef int32_t pid_t;
typedef quad_t rlim_t;
typedef int32_t segsz_t;
typedef int32_t swblk_t;
typedef u_int32_t uid_t;
typedef u_int32_t useconds_t;
# 118 "/usr/include/sys/types.h" 3 4
typedef unsigned long clock_t;
typedef long unsigned int size_t;
typedef int ssize_t;
typedef long time_t;
# 147 "/usr/include/sys/types.h" 3 4
typedef int32_t fd_mask;
typedef struct fd_set {
fd_mask fds_bits[(((1024) + (((sizeof(fd_mask) * 8)) - 1)) /
((sizeof(fd_mask) * 8)))];
} fd_set;
# 183 "/usr/include/sys/types.h" 3 4
struct _pthread_handler_rec
{
void (*routine)(void *);
void *arg;
struct _pthread_handler_rec *next;
};
# 203 "/usr/include/sys/types.h" 3 4
typedef struct _opaque_pthread_t { long sig; struct
_pthread_handler_rec *cleanup_stack; char opaque[596];} *pthread_t;
typedef struct _opaque_pthread_attr_t { long sig; char opaque[36]; }
pthread_attr_t;
typedef struct _opaque_pthread_mutexattr_t { long sig; char opaque[8];
} pthread_mutexattr_t;
typedef struct _opaque_pthread_mutex_t { long sig; char opaque[40]; }
pthread_mutex_t;
typedef struct _opaque_pthread_condattr_t { long sig; char opaque[4]; }
pthread_condattr_t;
typedef struct _opaque_pthread_cond_t { long sig; char opaque[24]; }
pthread_cond_t;
typedef struct _opaque_pthread_rwlockattr_t { long sig; char
opaque[12]; } pthread_rwlockattr_t;
typedef struct _opaque_pthread_rwlock_t { long sig; char opaque[124]; }
pthread_rwlock_t;
typedef struct { long sig; char opaque[4]; } pthread_once_t;
typedef unsigned long pthread_key_t;
# 135 "/usr/include/sys/signal.h" 2
typedef unsigned int sigset_t;
union sigval {
int sigval_int;
void *sigval_ptr;
};
struct sigevent {
int sigev_notify;
int sigev_signo;
union sigval sigev_value;
void (*sigev_notify_function)(union sigval);
pthread_attr_t *sigev_notify_attributes;
};
typedef struct __siginfo {
int si_signo;
int si_errno;
int si_code;
int si_pid;
unsigned int si_uid;
int si_status;
void *si_addr;
union sigval si_value;
long si_band;
unsigned int pad[7];
} siginfo_t;
# 218 "/usr/include/sys/signal.h"
union __sigaction_u {
void (*__sa_handler)(int);
void (*__sa_sigaction)(int, struct __siginfo *,
void *);
};
struct __sigaction {
union __sigaction_u __sigaction_u;
void (*sa_tramp)(void *, int, int, siginfo_t *, void *);
sigset_t sa_mask;
int sa_flags;
};
struct sigaction {
union __sigaction_u __sigaction_u;
sigset_t sa_mask;
int sa_flags;
};
# 275 "/usr/include/sys/signal.h"
typedef void (*sig_t) (int);
struct sigaltstack {
char *ss_sp;
int ss_size;
int ss_flags;
};
typedef struct sigaltstack stack_t;
# 297 "/usr/include/sys/signal.h"
struct sigvec {
void (*sv_handler)(int);
int sv_mask;
int sv_flags;
};
# 315 "/usr/include/sys/signal.h"
struct sigstack {
char *ss_sp;
int ss_onstack;
};
# 348 "/usr/include/sys/signal.h"
void (*signal (int, void (*) (int))) (int);
# 38 "bsdsignal.c" 2
bsdsignal.c:38:24: bsdsignal.H1: No such file or directory
SignalHandlerFunc
bsdSignal(int sig,SignalHandlerFunc action,int restartSystemCall)
{
struct sigaction in,out;
in.__sigaction_u.__sa_handler = action;
if(restartSystemCall) in.sa_flags = 0x0002;
else in.sa_flags = 0;
# 68 "bsdsignal.c"
return (sigaction(sig, &in, &out) ? (SignalHandlerFunc) -1 :
(SignalHandlerFunc) out.__sigaction_u.__sa_handler);
}
lib $