[MacPorts] #62276: optool @0.1: error: expected '; ' after top level declarator (was: optool Fails to Build on Lion)

MacPorts noreply at macports.org
Sat Feb 13 08:49:24 UTC 2021


#62276: optool @0.1: error: expected ';' after top level declarator
---------------------+----------------------
  Reporter:  RobK88  |      Owner:  raimue
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.4
Resolution:          |   Keywords:  lion
      Port:  optool  |
---------------------+----------------------
Changes (by ryandesign):

 * keywords:  Lion => lion
 * owner:  (none) => raimue
 * status:  new => assigned
 * cc: raimue@… (removed)


Comment:

 The first error in the log is:
 {{{
 optool/defines.h:68:22: warning: type specifier missing, defaults to 'int'
 [-Wimplicit-int]
 typedef NS_ENUM(int, OPError) {
                      ^~~~~~~
 optool/defines.h:68:9: warning: type specifier missing, defaults to 'int'
 [-Wimplicit-int]
 typedef NS_ENUM(int, OPError) {
 ~~~~~~~ ^
 optool/defines.h:68:30: error: expected ';' after top level declarator
 typedef NS_ENUM(int, OPError) {
                              ^
                              ;
 2 warnings and 1 error generated.
 }}}
 I'm aware that `NS_ENUM` is a "new" compiler feature, but I don't know how
 new. Presumably the version of clang available on Lion is not new enough.
 optool 0.1 was released in 2014 which is several years after Lion.

 Rainer hasn't been interested lately in working on issues only affecting
 older systems, but if a solution can be found, he usually accepts it.

 The developers of optool have a
 [https://github.com/alexzielenski/optool/releases/latest precompiled
 binary] available on their site; you could see if that works.

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


More information about the macports-tickets mailing list