Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#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

https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/92034/steps/install-port/logs/stdio

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 2 years ago by Schamschula (Marius Schamschula)

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.

comment:2 Changed 2 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 2 years ago by ryandesign (Ryan Carsten Schmidt)

We also saw this error on macOS 11 on arm64:

https://build.macports.org/builders/ports-11_arm64-builder/builds/48809/steps/install-port/logs/stdio

but not on macOS 11 on x86_64 nor on macOS 12 on arm64 nor x86_64.

comment:4 Changed 2 years ago by Schamschula (Marius Schamschula)

In 7a223ac918bd1ed4209f0706e6fe77ab4dc2b704/macports-ports (master):

xar: attempt fix: expected function body after function declarator

See: #64837

comment:5 Changed 2 years ago by Schamschula (Marius Schamschula)

Well, that didn't work.

comment:6 Changed 2 years ago by Schamschula (Marius Schamschula)

In 8dc5428b0f24d3f2090d5ccc992982200966dfd1/macports-ports (master):

xar: attempt fix 3: expected function body after function declarator

See: #64837

comment:7 Changed 2 years ago by Schamschula (Marius Schamschula)

For older (10.9 and below) there is another issue, see #64842

comment:8 Changed 2 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

comment:9 Changed 2 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.