[Bug 280545] security/libfido2: build failed FAILED: 'cbor.h' file not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 Aug 2024 01:26:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280545

            Bug ID: 280545
           Summary: security/libfido2: build failed FAILED: 'cbor.h' file
                    not found
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: epopen@gmail.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
          Assignee: sunpoet@FreeBSD.org

On FreeBSD 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8
amd64 with recent ports tree, building of port "security/libfido2" fails with
follows even "devel/libcbor" installed(/usr/local/include/cbor.h existence).

===>  Building for libfido2-1.15.0
[  0% 2/1044] /usr/local/libexec/ccache/cc -DHAVE_ARC4RANDOM_BUF
-DHAVE_ASPRINTF -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ENDIAN_H
-DHAVE_ERR_H -DHAVE_EXPLICIT_BZERO -DHAVE_GETLINE -DHAVE_GETOPT -DH
AVE_GETPAGESIZE -DHAVE_GETRANDOM -DHAVE_OPENSSLV_H -DHAVE_READPASSPHRASE
-DHAVE_SIGNAL_H -DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF
-DHAVE_SYS_RANDOM_H -DHAVE_TIMESPECSUB -DHAVE_TIMINGSAFE
_BCMP -DHAVE_UNISTD_H -DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread
-D_FIDO_INTERNAL -D_FIDO_MAJOR=1 -D_FIDO_MINOR=15 -D_FIDO_PATCH=0
-I/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/
src -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D__BSD_VISIBLE=1 -std=c99 -O2
-pipe -march=native  -DOPENSSL_API_COMPAT=0x10100000L -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe -march=native  -DOPENSSL_API_COMPAT=0x10100000L
-fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -D_FORTIFY_SOURCE=2
-fPIC -Wall -Wextra -Werror -Wshadow -Wcast-qual -Wwrite-strings
-Wmissing-prototypes -Wbad-function-cast -Wimplicit-fallthrough -pedantic
-pedantic-errors -Wshorten-64-to-32 -fstack-protector-all -Wconversion
-Wsign-conversion -Wframe-larger-than=2047 -MD -MT
src/CMakeFiles/fido2.dir/aes256.c.o -MF src/CMakeFiles/fido2.dir/aes256.c.o.d
-o src/CMakeFiles/fido2.dir/aes256.c.o -c
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/aes256.c
FAILED: src/CMakeFiles/fido2.dir/aes256.c.o
/usr/local/libexec/ccache/cc -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ENDIAN_H -DHAVE_ERR_H
-DHAVE_EXPLICIT_BZERO -DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE
-DHAVE_GETRANDOM -DHAVE_OPENSSLV_H -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H
-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_SYS_RANDOM_H
-DHAVE_TIMESPECSUB -DHAVE_TIMINGSAFE_BCMP -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=15 -D_FIDO_PATCH=0
-I/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D__BSD_VISIBLE=1 -std=c99 -O2 -pipe
-march=native  -DOPENSSL_API_COMPAT=0x10100000L -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe -march=native  -DOPENSSL_API_COMPAT=0x10100000L
-fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -D_FORTIFY_SOURCE=2
-fPIC -Wall -Wextra -Werror -Wshadow -Wcast-qual -Wwrite-strings
-Wmissing-prototypes -Wbad-function-cast -Wimplicit-fallthrough -pedantic
-pedantic-errors -Wshorten-64-to-32 -fstack-protector-all -Wconversion
-Wsign-conversion -Wframe-larger-than=2047 -MD -MT
src/CMakeFiles/fido2.dir/aes256.c.o -MF src/CMakeFiles/fido2.dir/aes256.c.o.d
-o src/CMakeFiles/fido2.dir/aes256.c.o -c
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/aes256.c
In file included from
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/aes256.c:8:
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/fido.h:42:10:
fatal error: 'cbor.h' file not found
   42 | #include <cbor.h>
      |          ^~~~~~~~
1 error generated.
[  0% 2/1044] /usr/local/libexec/ccache/cc -DHAVE_ARC4RANDOM_BUF
-DHAVE_ASPRINTF -DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ENDIAN_H
-DHAVE_ERR_H -DHAVE_EXPLICIT_BZERO -DHAVE_GETLINE -DHAVE_GETOPT
-DHAVE_GETPAGESIZE -DHAVE_GETRANDOM -DHAVE_OPENSSLV_H -DHAVE_READPASSPHRASE
-DHAVE_SIGNAL_H -DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF
-DHAVE_SYS_RANDOM_H -DHAVE_TIMESPECSUB -DHAVE_TIMINGSAFE_BCMP -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=15 -D_FIDO_PATCH=0
-I/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D__BSD_VISIBLE=1 -std=c99 -O2 -pipe
-march=native  -DOPENSSL_API_COMPAT=0x10100000L -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe -march=native  -DOPENSSL_API_COMPAT=0x10100000L
-fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -D_FORTIFY_SOURCE=2
-fPIC -Wall -Wextra -Werror -Wshadow -Wcast-qual -Wwrite-strings
-Wmissing-prototypes -Wbad-function-cast -Wimplicit-fallthrough -pedantic
-pedantic-errors -Wshorten-64-to-32 -fstack-protector-all -Wconversion
-Wsign-conversion -Wframe-larger-than=2047 -MD -MT
src/CMakeFiles/fido2.dir/assert.c.o -MF src/CMakeFiles/fido2.dir/assert.c.o.d
-o src/CMakeFiles/fido2.dir/assert.c.o -c
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/assert.c
FAILED: src/CMakeFiles/fido2.dir/assert.c.o
/usr/local/libexec/ccache/cc -DHAVE_ARC4RANDOM_BUF -DHAVE_ASPRINTF
-DHAVE_CLOCK_GETTIME -DHAVE_DEV_URANDOM -DHAVE_ENDIAN_H -DHAVE_ERR_H
-DHAVE_EXPLICIT_BZERO -DHAVE_GETLINE -DHAVE_GETOPT -DHAVE_GETPAGESIZE
-DHAVE_GETRANDOM -DHAVE_OPENSSLV_H -DHAVE_READPASSPHRASE -DHAVE_SIGNAL_H
-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRSEP -DHAVE_SYSCONF -DHAVE_SYS_RANDOM_H
-DHAVE_TIMESPECSUB -DHAVE_TIMINGSAFE_BCMP -DHAVE_UNISTD_H
-DOPENSSL_API_COMPAT=0x10100000L -DTLS=__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=1 -D_FIDO_MINOR=15 -D_FIDO_PATCH=0
-I/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src
-D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D__BSD_VISIBLE=1 -std=c99 -O2 -pipe
-march=native  -DOPENSSL_API_COMPAT=0x10100000L -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe -march=native  -DOPENSSL_API_COMPAT=0x10100000L
-fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -D_FORTIFY_SOURCE=2
-fPIC -Wall -Wextra -Werror -Wshadow -Wcast-qual -Wwrite-strings
-Wmissing-prototypes -Wbad-function-cast -Wimplicit-fallthrough -pedantic
-pedantic-errors -Wshorten-64-to-32 -fstack-protector-all -Wconversion
-Wsign-conversion -Wframe-larger-than=2047 -MD -MT
src/CMakeFiles/fido2.dir/assert.c.o -MF src/CMakeFiles/fido2.dir/assert.c.o.d
-o src/CMakeFiles/fido2.dir/assert.c.o -c
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/assert.c
In file included from
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/assert.c:10:
/usr/PortsWRKDIR/usr/ports/security/libfido2/work/libfido2-1.15.0/src/fido.h:42:10:
fatal error: 'cbor.h' file not found
   42 | #include <cbor.h>
      |          ^~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/libfido2
*** Error code 1

Thanks a lot

-- 
You are receiving this mail because:
You are the assignee for the bug.