[MacPorts] #72453: bmon @4.0: error: use of undeclared identifier 'unused' (was: bmon fails to build)

MacPorts noreply at macports.org
Mon May 19 19:10:34 UTC 2025


#72453: bmon @4.0: error: use of undeclared identifier 'unused'
------------------------+--------------------
  Reporter:  raramayo   |      Owner:  l2dy
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:  duplicate  |   Keywords:
      Port:  bmon       |
------------------------+--------------------
Changes (by ryandesign):

 * status:  assigned => closed
 * resolution:   => duplicate


Comment:

 The error I see in the log is:

 {{{
 In file included from utils.c:31:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/mach/clock.h:13:
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/mach/mig_errors.h:113:34:
 error: use of undeclared identifier 'unused'
   113 | __NDR_convert__mig_reply_error_t(__unused mig_reply_error_t *x)
       |                                  ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/sys/cdefs.h:172:40:
 note: expanded from macro '__unused'
   172 | #define __unused        __attribute__((__unused__))
       |                                        ^
 ../include/bmon/bmon.h:63:36: note: expanded from macro '__unused__'
    63 | #define __unused__ __attribute__ ((unused))
       |                                    ^
 }}}

 So, bmon has defined something (`__unused__`) that interfered with the
 system headers.

 No user software is allowed to define identifiers whose names containing
 double underscores. Those names are reserved for use by the implementation
 (meaning: the compiler and system headers).

 This is a bmon bug, already reported to them here:
 https://github.com/tgraf/bmon/issues/89

 Duplicate of #62820.

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


More information about the macports-tickets mailing list