[MacPorts] #68333: libfido2 fails to build with clang on 10.11 and earlier: error: use of undeclared identifier 'id'
MacPorts
noreply at macports.org
Tue Oct 3 03:00:04 UTC 2023
#68333: libfido2 fails to build with clang on 10.11 and earlier: error: use of
undeclared identifier 'id'
--------------------------+-------------------------
Reporter: barracuda156 | Owner: trodemaster
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: libfido2
--------------------------+-------------------------
{{{
[ 32%] Generating fido_cbor_info_new.3.lint
cd
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_libfido2/libfido2/work/build/man
&& mandoc -T lint -W warning fido_cbor_info_new.3 >
fido_cbor_info_new.3.lint
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:189:59:
error: use of undeclared identifier 'id'
if (asprintf(&path, "%s%llu", IOREG, (unsigned long long)id) ==
-1) {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:195:10:
error: address of stack memory associated with local variable 'path'
returned [-Werror,-Wreturn-stack-address]
return (path);
^~~~
2 errors generated.
make[2]: *** [src/CMakeFiles/fido2_shared.dir/hid_osx.c.o] Error 1
}}}
See:
https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/233997/steps
/install-port/logs/stdio
https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/169298/steps
/install-port/logs/stdio
--
Ticket URL: <https://trac.macports.org/ticket/68333>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list