[MacPorts] #64545: gtk-gnutella: update to @1.2.2: how to fix the build?

MacPorts noreply at macports.org
Mon Mar 6 02:26:17 UTC 2023

#64545: gtk-gnutella: update to @1.2.2: how to fix the build?
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  update        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.0
Resolution:                |   Keywords:
      Port:  gtk-gnutella  |

Comment (by barracuda156):

 On PPC is fail with Bus error here:
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_PROTECTION_FAILURE at address: 0x00000010
 0x002e6aec in sig_compute_pc_index ()

 Maybe this does not work?

 #define REGISTER_COUNT(u)       N_ITEMS((u)->uc_mcontext.gregs)
 #define REGISTER_BASE(u)        ((ulong *) (u)->uc_mcontext.gregs)
 #define REGISTER_VALUE(u,x)     ((ulong) (u)->uc_mcontext.gregs[x])


 #define REGISTER_COUNT(u)       (sizeof((u)->uc_mcontext) / sizeof(ulong))
 #define REGISTER_BASE(u)        ((ulong *) &(u)->uc_mcontext)
 #define REGISTER_VALUE(u,x)     ((ulong *) &(u)->uc_mcontext)[x]


 #include "log.h"                        /* For s_error_expr() */
 #define REGISTER_COUNT(u)       0
 #define REGISTER_BASE(u)        NULL
 #define REGISTER_VALUE(u,x)     \
         (s_error_expr("%s: cannot access machine registers", G_STRFUNC),

 It does not look correct.

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

More information about the macports-tickets mailing list