Re: [MacPorts] #61153: libffi @3.3_1: error: expected ‘)’ before ‘*’ token

MacPorts noreply at macports.org
Wed Sep 9 21:39:15 UTC 2020


#61153: libffi @3.3_1: error: expected ‘)’ before ‘*’ token
-------------------------+-----------------------------
  Reporter:  TzunamiOSX  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.3
Resolution:              |   Keywords:  leopard powerpc
      Port:  libffi      |
-------------------------+-----------------------------

Comment (by ballapete):

 The error is in `libffi-3.3/powerpc-apple-darwin8.11.0/include/ffi.h`.
 This C header file has a perfect type declaration:

 {{{
   436   #if FFI_GO_CLOSURES
   437
   438   typedef struct {
   439     void      *tramp;
   440     ffi_cif   *cif;
   441     void     (*fun)(ffi_cif*,void*,void**,void*);
   442   } ffi_go_closure;
   443
   444   FFI_API ffi_status ffi_prep_go_closure (ffi_go_closure*, ffi_cif
 *,
   445                                   void
 (*fun)(ffi_cif*,void*,void**,void*));
   446
   447   FFI_API void ffi_call_go (ffi_cif *cif, void (*fn)(void), void
 *rvalue,
   448                     void **avalue, void *closure);
   449
   450   #endif /* FFI_GO_CLOSURES */
   451
   452   /* ---- Public interface definition
 -------------------------------------- */
 }}}

 It's just necessary to define `FFI_GO_CLOSURES`, I think…

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


More information about the macports-tickets mailing list