ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jjgod Jiang <gzjjgod@gmail.com>
To: Taco Hoekwater <taco@elvenkind.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	luatex develompent list <dev-luatex@ntg.nl>
Subject: Re: [Dev-luatex]    luatex not compiling
Date: Tue, 25 Dec 2007 11:14:24 +0800 (CST)	[thread overview]
Message-ID: <alpine.OSX.1.00.0712251110490.47078@jjgod-computer-2.local> (raw)
In-Reply-To: <47701B9F.3010303@elvenkind.com>

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 <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;
          };

          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
          <signal.h>.

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-12-25  3:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 18:05 Hans van der Meer
2007-12-21 10:50 ` Martin Schröder
2007-12-21 15:10   ` Idris Samawi Hamid
2007-12-21 15:27     ` Taco Hoekwater
2007-12-23 20:25       ` [Dev-luatex] " Jjgod Jiang
2007-12-24 20:50         ` Taco Hoekwater
2007-12-25  3:14           ` Jjgod Jiang [this message]
2007-12-25  7:43             ` Taco Hoekwater
2007-12-25 10:13           ` Yannis Haralambous
2007-12-26  9:13             ` luigi scarso
2007-12-26 11:54             ` Otared Kavian
2007-12-21 17:49     ` luigi scarso
2007-12-24 12:12   ` Hans van der Meer
2007-12-24 20:45     ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.1.00.0712251110490.47078@jjgod-computer-2.local \
    --to=gzjjgod@gmail.com \
    --cc=dev-luatex@ntg.nl \
    --cc=ntg-context@ntg.nl \
    --cc=taco@elvenkind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).