[MacPorts] #68333: libfido2 @1.13.0: error: use of undeclared identifier 'id'
MacPorts
noreply at macports.org
Sun Oct 15 23:35:29 UTC 2023
#68333: libfido2 @1.13.0: error: use of undeclared identifier 'id'
-------------------------+-------------------------------------------------
Reporter: | Owner: trodemaster
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: snowleopard lion mountainlion
Port: libfido2 | mavericks yosemite elcapitan
-------------------------+-------------------------------------------------
Comment (by barracuda156):
I will update sequentially.
1. If I just drop the `hid_osx` patch, build fails on:
{{{
:info:build [ 8%] Building C object src/CMakeFiles/fido2.dir/__/openbsd-
compat/explicit_bzero_win32.c.o
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/src
&& /opt/local/bin/gcc-mp-13 -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CBOR_H -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ERR_H
-DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE -DHAVE_OPENSSLV_H
-DHAVE_POSIX_IOCTL -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H -DHAVE_STRLCAT
-DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=13 -D_FIDO_PATCH=0
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DARWIN_C_SOURCE
-D__STDC_WANT_LIB_EXT1__=1 -std=c99 -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -arch ppc
-mmacosx-version-min=10.6 -fPIC -Wall -Wextra -Wshadow -Wcast-qual
-Wwrite-strings -Wmissing-prototypes -Wbad-function-cast -Wimplicit-
fallthrough -pedantic -pedantic-errors -fstack-protector-all -Wno-unused-
result -MD -MT src/CMakeFiles/fido2.dir/__/openbsd-
compat/explicit_bzero_win32.c.o -MF CMakeFiles/fido2.dir/__/openbsd-
compat/explicit_bzero_win32.c.o.d -o CMakeFiles/fido2.dir/__/openbsd-
compat/explicit_bzero_win32.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0
/openbsd-compat/explicit_bzero_win32.c
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:
In function 'get_path':
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:176:18:
error: implicit declaration of function 'IOHIDDeviceGetService'; did you
mean 'IOHIDDeviceGetReport'? [-Wimplicit-function-declaration]
:info:build 176 | if ((s = IOHIDDeviceGetService(dev)) ==
MACH_PORT_NULL) {
:info:build | ^~~~~~~~~~~~~~~~~~~~~
:info:build | IOHIDDeviceGetReport
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:176:18:
warning: conversion to 'io_service_t' {aka 'unsigned int'} from 'int' may
change the sign of the result [-Wsign-conversion]
:info:build [ 8%] Building C object src/CMakeFiles/fido2.dir/__/openbsd-
compat/freezero.c.o
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/src
&& /opt/local/bin/gcc-mp-13 -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CBOR_H -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ERR_H
-DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE -DHAVE_OPENSSLV_H
-DHAVE_POSIX_IOCTL -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H -DHAVE_STRLCAT
-DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=13 -D_FIDO_PATCH=0
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DARWIN_C_SOURCE
-D__STDC_WANT_LIB_EXT1__=1 -std=c99 -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -arch ppc
-mmacosx-version-min=10.6 -fPIC -Wall -Wextra -Wshadow -Wcast-qual
-Wwrite-strings -Wmissing-prototypes -Wbad-function-cast -Wimplicit-
fallthrough -pedantic -pedantic-errors -fstack-protector-all -Wno-unused-
result -MD -MT src/CMakeFiles/fido2.dir/__/openbsd-compat/freezero.c.o -MF
CMakeFiles/fido2.dir/__/openbsd-compat/freezero.c.o.d -o
CMakeFiles/fido2.dir/__/openbsd-compat/freezero.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0
/openbsd-compat/freezero.c
:info:build [ 8%] Generating fido_assert_blob_len.3
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/man
&& ln -sf fido_assert_new.3 fido_assert_blob_len.3
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:181:13:
error: implicit declaration of function
'IORegistryEntryGetRegistryEntryID'; did you mean
'IORegistryEntryGetParentEntry'? [-Wimplicit-function-declaration]
:info:build 181 | if (IORegistryEntryGetRegistryEntryID(s, &id)
!= KERN_SUCCESS) {
:info:build | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build | IORegistryEntryGetParentEntry
:info:build [ 8%] Building C object src/CMakeFiles/fido2.dir/__/openbsd-
compat/recallocarray.c.o
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/src
&& /opt/local/bin/gcc-mp-13 -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CBOR_H -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ERR_H
-DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE -DHAVE_OPENSSLV_H
-DHAVE_POSIX_IOCTL -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H -DHAVE_STRLCAT
-DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=13 -D_FIDO_PATCH=0
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DARWIN_C_SOURCE
-D__STDC_WANT_LIB_EXT1__=1 -std=c99 -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -arch ppc
-mmacosx-version-min=10.6 -fPIC -Wall -Wextra -Wshadow -Wcast-qual
-Wwrite-strings -Wmissing-prototypes -Wbad-function-cast -Wimplicit-
fallthrough -pedantic -pedantic-errors -fstack-protector-all -Wno-unused-
result -MD -MT src/CMakeFiles/fido2.dir/__/openbsd-
compat/recallocarray.c.o -MF CMakeFiles/fido2.dir/__/openbsd-
compat/recallocarray.c.o.d -o CMakeFiles/fido2.dir/__/openbsd-
compat/recallocarray.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0
/openbsd-compat/recallocarray.c
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:
In function 'fido_hid_manifest':
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:260:13:
error: 'kIOHIDManagerOptionNone' undeclared (first use in this function);
did you mean 'IOHIDManagerOpen'?
:info:build 260 | kIOHIDManagerOptionNone)) == NULL) {
:info:build | ^~~~~~~~~~~~~~~~~~~~~~~
:info:build | IOHIDManagerOpen
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:260:13:
note: each undeclared identifier is reported only once for each function
it appears in
:info:build [ 8%] Generating fido_assert_blob_ptr.3
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/man
&& ln -sf fido_assert_new.3 fido_assert_blob_ptr.3
:info:build [ 8%] Building C object src/CMakeFiles/fido2.dir/__/openbsd-
compat/strlcat.c.o
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/src
&& /opt/local/bin/gcc-mp-13 -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CBOR_H -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ERR_H
-DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE -DHAVE_OPENSSLV_H
-DHAVE_POSIX_IOCTL -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H -DHAVE_STRLCAT
-DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=13 -D_FIDO_PATCH=0
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DARWIN_C_SOURCE
-D__STDC_WANT_LIB_EXT1__=1 -std=c99 -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -arch ppc
-mmacosx-version-min=10.6 -fPIC -Wall -Wextra -Wshadow -Wcast-qual
-Wwrite-strings -Wmissing-prototypes -Wbad-function-cast -Wimplicit-
fallthrough -pedantic -pedantic-errors -fstack-protector-all -Wno-unused-
result -MD -MT src/CMakeFiles/fido2.dir/__/openbsd-compat/strlcat.c.o -MF
CMakeFiles/fido2.dir/__/openbsd-compat/strlcat.c.o.d -o
CMakeFiles/fido2.dir/__/openbsd-compat/strlcat.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0
/openbsd-compat/strlcat.c
:info:build [ 8%] Building C object src/CMakeFiles/fido2.dir/__/openbsd-
compat/timingsafe_bcmp.c.o
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/src
&& /opt/local/bin/gcc-mp-13 -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CBOR_H -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ERR_H
-DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE -DHAVE_OPENSSLV_H
-DHAVE_POSIX_IOCTL -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H -DHAVE_STRLCAT
-DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=13 -D_FIDO_PATCH=0
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DARWIN_C_SOURCE
-D__STDC_WANT_LIB_EXT1__=1 -std=c99 -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-isystem/opt/local/include/LegacySupport
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -arch ppc
-mmacosx-version-min=10.6 -fPIC -Wall -Wextra -Wshadow -Wcast-qual
-Wwrite-strings -Wmissing-prototypes -Wbad-function-cast -Wimplicit-
fallthrough -pedantic -pedantic-errors -fstack-protector-all -Wno-unused-
result -MD -MT src/CMakeFiles/fido2.dir/__/openbsd-
compat/timingsafe_bcmp.c.o -MF CMakeFiles/fido2.dir/__/openbsd-
compat/timingsafe_bcmp.c.o.d -o CMakeFiles/fido2.dir/__/openbsd-
compat/timingsafe_bcmp.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0
/openbsd-compat/timingsafe_bcmp.c
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:
In function 'disable_sigpipe':
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:370:23:
error: 'F_SETNOSIGPIPE' undeclared (first use in this function)
:info:build 370 | if (fcntl(fd, F_SETNOSIGPIPE, &disabled) ==
-1) {
:info:build | ^~~~~~~~~~~~~~
:info:build [ 8%] Generating fido_assert_clientdata_hash_len.3
:info:build cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build/man
&& ln -sf fido_assert_new.3 fido_assert_clientdata_hash_len.3
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:
In function 'get_ioreg_entry':
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:392:13:
error: implicit declaration of function 'IORegistryEntryIDMatching'; did
you mean 'IORegistryEntryInPlane'? [-Wimplicit-function-declaration]
:info:build 392 | IORegistryEntryIDMatching(id)));
:info:build | ^~~~~~~~~~~~~~~~~~~~~~~~~
:info:build | IORegistryEntryInPlane
:info:build
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:392:13:
error: passing argument 2 of 'IOServiceGetMatchingService' makes pointer
from integer without a cast [-Wint-conversion]
:info:build 392 | IORegistryEntryIDMatching(id)));
:info:build | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build | |
:info:build | int
:info:build In file included from
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/libfido2-1.13.0/src/hid_osx.c:17:
:info:build
/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:335:25:
note: expected 'CFDictionaryRef' {aka 'const struct __CFDictionary *'} but
argument is of type 'int'
:info:build 335 | CFDictionaryRef matching );
:info:build | ~~~~~~~~~~~~~~~~^~~~~~~~
:info:build make[2]: *** [src/CMakeFiles/fido2.dir/hid_osx.c.o] Error 1
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_security_libfido2/libfido2/work/build'
:info:build make[1]: *** [src/CMakeFiles/fido2.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68333#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list