[Dev-luatex] [NTG-context] luatex not compiling

Jjgod Jiang gzjjgod at gmail.com
Tue Dec 25 04:14:24 CET 2007

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:

          #include <sys/types.h>
          #include <signal.h>

          The include file <sys/types.h> is necessary.

          struct sigaltstack {
                  char   *ss_sp;
                  int     ss_size;
                  int     ss_flags;

          sigaltstack(const struct sigaltstack *ss,
                      struct sigaltstack *oss);

          The variable types have changed.  Specifically, the
          sigaltstack struct is no longer used.

          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) 
+#if __DARWIN_UNIX03
+    stack_t sigstk;
      struct sigaltstack sigstk;
      struct sigaction segv_act;
      sigstk.ss_sp = xmalloc(SIGSTKSZ);
      sigstk.ss_size = SIGSTKSZ;


- Jiang

More information about the dev-luatex mailing list