[Bug 283697] security/libfido2: build failed: error: call to undeclared function 'ppoll'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Dec 2024 19:25:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283697

            Bug ID: 283697
           Summary: security/libfido2: build failed: error: call to
                    undeclared function 'ppoll'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: dan.kotowski@a9development.com
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

[  3% 70/1044] /usr/bin/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/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src
-I/usr/local/include -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D__BSD_VISIBLE=1
-std=c99 -O2 -pipe  -DOPENSSL_API_COMPAT=0x10100000L -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe  -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/hid_unix.c.o -MF
src/CMakeFiles/fido2.dir/hid_unix.c.o.d -o
src/CMakeFiles/fido2.dir/hid_unix.c.o -c
/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src/hid_unix.c
FAILED: src/CMakeFiles/fido2.dir/hid_unix.c.o
/usr/bin/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/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src
-I/usr/local/include -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D__BSD_VISIBLE=1
-std=c99 -O2 -pipe  -DOPENSSL_API_COMPAT=0x10100000L -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe  -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/hid_unix.c.o -MF
src/CMakeFiles/fido2.dir/hid_unix.c.o.d -o
src/CMakeFiles/fido2.dir/hid_unix.c.o -c
/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src/hid_unix.c
/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src/hid_unix.c:69:11:
error: call to undeclared function 'ppoll'; ISO C99 and later do not support
implicit function declarations [-Werror,-Wimplicit-function-declaration]
   69 |         if ((r = ppoll(&pfd, 1, ms > -1 ? &ts : NULL, sigmask)) < 1) {
      |                  ^
/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src/hid_unix.c:69:11:
note: did you mean 'poll'?
/usr/include/poll.h:117:5: note: 'poll' declared here
  117 | int     poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
      |         ^
1 error generated.


root@pkg1:/usr/ports/security/libfido2 # freebsd-version -ru
15.0-CURRENT
15.0-CURRENT
root@pkg1:/usr/ports/security/libfido2 # cat /var/run/os-release
NAME=FreeBSD
VERSION="15.0-CURRENT"
VERSION_ID="15.0"
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 15.0-CURRENT"
CPE_NAME="cpe:/o:freebsd:freebsd:15.0"
HOME_URL="https://FreeBSD.org/"
BUG_REPORT_URL="https://bugs.FreeBSD.org/"
root@pkg1:/usr/ports/security/libfido2 # uname -a
FreeBSD pkg1.a9development.com 15.0-CURRENT FreeBSD 15.0-CURRENT 1500029 amd64

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