#64837 closed defect (fixed)
xar @1.8.0.483: error: expected function body after function declarator
| Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | Schamschula (Marius Schamschula) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.7.2 |
| Keywords: | Cc: | ||
| Port: | xar |
Description
In file included from lib/bzxar.c:51:
include/xar.h:272:39: error: expected function body after function declarator
char *xar_get_safe_path(xar_file_t f) API_AVAILABLE(macos(12.0));
^
In file included from lib/arcmod.c:38:
In file included from lib/arcmod.h:41:
include/xar.h:272:39: error: expected function body after function declarator
char *xar_get_safe_path(xar_file_t f) API_AVAILABLE(macos(12.0));
^
In file included from lib/data.c:44:
include/xar.h:272:39: error: expected function body after function declarator
char *xar_get_safe_path(xar_file_t f) API_AVAILABLE(macos(12.0));
^
In file included from lib/darwinattr.c:46:
include/xar.h:272:39: error: expected function body after function declarator
char *xar_get_safe_path(xar_file_t f) API_AVAILABLE(macos(12.0));
^
/usr/bin/clang -pipe -I/opt/local/libexec/openssl3/include -Os -std=c99 -arch x86_64 -fPIC -DPIC -dynamic -Iinclude -Iinclude -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -I/opt/local/include/libxml2 -c lib/ea.c -o lib/ea.o
In file included from lib/archive.c:62:
include/xar.h:272:39: error: expected function body after function declarator
char *xar_get_safe_path(xar_file_t f) API_AVAILABLE(macos(12.0));
^
1 error generated.
Change History (9)
comment:1 Changed 5 years ago by Schamschula (Marius Schamschula)
comment:2 Changed 5 years ago by JDLH (Jim DeLaHunt)
I observe this error also on macOS 12.3 Monterey.
uname -v is: Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000
arch is: arm64
comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
We also saw this error on macOS 11 on arm64:
but not on macOS 11 on x86_64 nor on macOS 12 on arm64 nor x86_64.
comment:4 Changed 5 years ago by Schamschula (Marius Schamschula)
comment:6 Changed 5 years ago by Schamschula (Marius Schamschula)
comment:7 Changed 5 years ago by Schamschula (Marius Schamschula)
For older (10.9 and below) there is another issue, see #64842
comment:8 Changed 5 years ago by jmroot (Joshua Root)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:9 Changed 5 years ago by JDLH (Jim DeLaHunt)
I was just able to build and activate xar @1.8.0.483_3, on on macOS 12.3 Monterey.
uname -v is: Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000
arch is: arm64
Thank you!
Note: See
TracTickets for help on using
tickets.

I sure wish that these errors would pop up more consistently across OS versions. I saw no such issue on Big Sure/Intel.
I'll see if I can deal with the missing function prototype that cause me to include the header file in some other way.