[MacPorts] #64996: Why nhc98 fails to build, any ideas?

MacPorts noreply at macports.org
Tue Apr 12 23:42:00 UTC 2022


#64996: Why nhc98 fails to build, any ideas?
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, snowleopard
      Port:  nhc98         |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 I have found a patch that claims to address the issue, however I cannot
 make it work still:
 https://github.com/Millak/guix/blob/master/gnu/packages/patches/nhc98-c-update.patch


 {{{
 # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53964

 --- Makefile.inc.orig   2010-07-09 20:40:18.000000000 +0800
 +++ Makefile.inc        2022-04-13 07:12:27.000000000 +0800
 @@ -1,6 +1,9 @@
  ### Configurable variables:
 +# We want C89 semantics plus C++-style comments and things like the
 +# 'setjmp_buf' and 'u_short' types.  More importantly, build with '-O1'
 +# only to avoid modern optimizations that break the code.

 -OPT = -O3
 +OPT = -O1 -std=gnu89 -D_GNU_SOURCE=1
  #ARCH = -m32
  ARCH =


 --- script/nhc98heap.c.orig     2007-03-13 06:03:52.000000000 +0800
 +++ script/nhc98heap.c  2022-04-13 07:09:55.000000000 +0800
 @@ -1,5 +1,6 @@
  #include <stdlib.h>
  #include <stdio.h>
 +#include <ctype.h>
  main(int argc, char **argv)
  {
    int prefix = 1;


 --- src/runtime/Kernel/collector.c.orig 2007-03-13 06:03:52.000000000
 +0800
 +++ src/runtime/Kernel/collector.c      2022-04-13 07:11:12.000000000
 +0800
 @@ -2,6 +2,7 @@
  #include <stdlib.h>
  #include <stdio.h>
  #include <string.h>
 +#include <unistd.h>
  #include "node.h"
  /*#include "newmacros.h"  -- already included in node.h */
  /*#include "runtime.h"    -- already included in node.h */

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64996#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list