Opened 9 months ago
Closed 9 months ago
#72453 closed defect (duplicate)
bmon @4.0: error: use of undeclared identifier 'unused'
| Reported by: | raramayo (Rodolfo Aramayo) | Owned by: | l2dy (Zero King) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | bugderry | |
| Port: | bmon |
Description
Hardware: Apple M4-Max OS: Sequoia 15.4.1 MacPorts base version 2.10.7
---> Computing dependencies for bmon ---> Fetching archive for bmon ---> Attempting to fetch bmon-4.0_3.darwin_24.arm64.tbz2 from https://packages.macports.org/bmon ---> Attempting to fetch bmon-4.0_3.darwin_24.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/bmon ---> Attempting to fetch bmon-4.0_3.darwin_24.arm64.tbz2 from https://bos.us.packages.macports.org/bmon ---> Fetching distfiles for bmon ---> Attempting to fetch bmon-4.0.tar.gz from https://distfiles.macports.org/bmon ---> Verifying checksums for bmon ---> Extracting bmon ---> Configuring bmon ---> Building bmon Error: Failed to build bmon: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_bmon/bmon/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port bmon failed
Attachments (1)
Change History (4)
Changed 9 months ago by raramayo (Rodolfo Aramayo)
comment:1 Changed 9 months ago by jmroot (Joshua Root)
| Owner: | set to l2dy |
|---|---|
| Status: | new → assigned |
comment:2 Changed 9 months ago by bugderry
| Cc: | bugderry added |
|---|
comment:3 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → duplicate |
|---|---|
| Status: | assigned → closed |
| Summary: | bmon fails to build → bmon @4.0: error: use of undeclared identifier 'unused' |
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.
Note: See
TracTickets for help on using
tickets.

log_file