Opened 4 years ago
Last modified 20 months ago
#62458 assigned defect
yabai @3.3.6: implicit declaration of functions when building for i386
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | macports@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.99 |
Keywords: | Cc: | ||
Port: | yabai |
Description
On High Sierra, yabai doesn't build for i386 (neither i386 alone nor universal when i386 is among the archs) if I request that implicit declaration of functions be treated as an error:
$ sudo port -dns build yabai build_arch=i386 configure.objcflags="-Os -Werror=implicit-function-declaration"
:info:build ./src/osax/payload.m:207:57: error: implicit declaration of function 'get_dock_spaces_offset' is invalid in C99 [-Werror,-Wimplicit-function-declaration] :info:build uint64_t dock_spaces_addr = hex_find_seq(baseaddr + get_dock_spaces_offset(os_version), get_dock_spaces_pattern(os_version)); :info:build ^ :info:build ./src/osax/payload.m:207:93: error: implicit declaration of function 'get_dock_spaces_pattern' is invalid in C99 [-Werror,-Wimplicit-function-declaration] :info:build uint64_t dock_spaces_addr = hex_find_seq(baseaddr + get_dock_spaces_offset(os_version), get_dock_spaces_pattern(os_version)); :info:build ^
etc.
It does build successfully for i386 when not specifying -Werror=implicit-function-declaration
.
It does build successfully for x86_64 whether or not I specify -Werror=implicit-function-declaration
.
Attachments (1)
Change History (2)
Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 20 months ago by TheKevJames (Kevin James)
Note: See
TracTickets for help on using
tickets.
Looks like this is more specific to the yabai build itself rather than the macports wrapper; note that the yabai maintainer has not been involved with the macports work. Probably best to open a report on Github (https://github.com/koekeishiya/yabai/issues)