[MacPorts] #67248: grep @3.10 is broken on some versions of Tiger (?PPC ONLY): error: expected '=', ',', '; ', 'asm' or '__attribute__' before 'mcontext64_t'
MacPorts
noreply at macports.org
Wed May 24 21:33:08 UTC 2023
#67248: grep @3.10 is broken on some versions of Tiger (?PPC ONLY): error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'mcontext64_t'
---------------------------+-------------------------
Reporter: barracuda156 | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: tiger
Port: grep |
---------------------------+-------------------------
Comment (by ballapete):
The pre-compiled output has:
{{{
# 128 "/usr/include/sys/signal.h" 3 4
#define SIG_DFL (void (*)( ))0
#define SIG_IGN (void (*)( ))1
#define SIG_HOLD (void (*)( ))5
#define SIG_ERR ((void (*)( ))-1)
#define _MCONTEXT_T
typedef __darwin_mcontext_t mcontext_t;
#define _MCONTEXT64_T
typedef __darwin_mcontext64_t mcontext64_t;
# 160 "/usr/include/sys/signal.h" 3 4
#define _SIGSET_T
typedef __darwin_sigset_t sigset_t;
# 170 "/usr/include/sys/signal.h" 3 4
#define _UCONTEXT_T
typedef __darwin_ucontext_t ucontext_t;
#define _UCONTEXT64_T
typedef __darwin_ucontext64_t ucontext64_t;
# 186 "/usr/include/sys/signal.h" 3 4
}}}
The types used are not defined in this scope. I think `sys/ucontext.h`
needs to be included that has `#include <machine/ucontext.h>` which has a
switch:
{{{
#ifndef _MACHINE_UCONTEXT_H_
#define _MACHINE_UCONTEXT_H_
#if defined (__ppc__) || defined (__ppc64__)
#include "ppc/ucontext.h"
#elif defined (__i386__) || defined(__x86_64__)
#include "i386/ucontext.h"
#else
#error architecture not supported
#endif
#endif /* _MACHINE_UCONTEXT_H_ */
}}}
Could be a `configure.cppflags-append -include sys/ucontext.h` helps to
cure the problem…
--
Ticket URL: <https://trac.macports.org/ticket/67248#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list