Opened 4 weeks ago

#74609 assigned defect

fatdisk @1.0.0-beta: fails to build on macOS 27 Golden Gate

Reported by: michiow Owned by: glennmatthews
Priority: Normal Milestone:
Component: ports Version: 2.12.7
Keywords: goldengate Cc:
Port: fatdisk

Description

After upgrading to macOS 27.0.1 / Xcode 27.1, fatdisk @1.0.0-beta fails to build.

:info:build In file included from file.c:21:
:info:build ./main.h:151:10: error: conflicting types for 'getumask' [3]
:info:build   151 |  uint32_t getumask(void);
:info:build       |           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX27.sdk/usr/include/sys/stat.h:408:9: note: previous declaration is here
:info:build   408 |  mode_t  getumask(void) __API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), watchos(27.0));
:info:build       |          ^
:info:build make: *** [.o/dir.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build file.c:369:10: error: conflicting types for 'getumask' [3]
:info:build   369 |  uint32_t getumask (void)
:info:build       |           ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX27.sdk/usr/include/sys/stat.h:408:9: note: previous declaration is here
:info:build   408 |  mode_t  getumask(void) __API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), watchos(27.0));
:info:build       |          ^

macOS 27 defines getumask() in sys/stat.h, which conflicts with the project defined function of the same name, if __DARWIN_C_LEVEL is defined as __DARWIN_C_FULL. Unfortunately, this is required to include some other functions used in the project, so it only compiles by defining the name of getumask() as something else.

Attachments (1)

main.log​ (20.2 KB) - added by michiow 4 weeks ago.
Full build log.

Download all attachments as: .zip

Change History (1)

Changed 4 weeks ago by michiow

Attachment: main.log​ added

Full build log.

Note: See TracTickets for help on using tickets.