Hi Taco,
On Mon, 24 Dec 2007, Taco Hoekwater wrote:
Perhaps not any more in 10.5? Something changed from 10.4 to 10.5 that
broke luatex's build process. Just the building though, pre-compiled
binaries work fine. What exactly has changed is a mystery so far.
You're right, I think it has been changed in 10.5, the following text
is copied from sigaltstack(2) in 10.5:
LEGACY SYNOPSIS
#include
#include
The include file is necessary.
struct sigaltstack {
char *ss_sp;
int ss_size;
int ss_flags;
};
int
sigaltstack(const struct sigaltstack *ss,
struct sigaltstack *oss);
The variable types have changed. Specifically, the
sigaltstack struct is no longer used.
COMPATIBILITY
Use of the (obsolete) sigaltstack struct will cause
compiler diagnostics. Use stack_t, defined in
.
I just checked out the latest luatex source from svn, with
the following patch, luatex builds fine on 10.5:
Index: src/texk/web2c/lib/texmfmp.c
===================================================================
--- src/texk/web2c/lib/texmfmp.c (revision 972)
+++ src/texk/web2c/lib/texmfmp.c (working copy)
@@ -405,7 +405,11 @@
#ifdef WIN32
SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER)
&segv_handler_filter);
#else
+#if __DARWIN_UNIX03
+ stack_t sigstk;
+#else
struct sigaltstack sigstk;
+#endif
struct sigaction segv_act;
sigstk.ss_sp = xmalloc(SIGSTKSZ);
sigstk.ss_size = SIGSTKSZ;
HTH.
- Jiang