Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2024 23:14:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 283480] secuirty/Libfido2: compilation broken after /usr/src changes POSIX visibility on ppoll()
Message-ID:  <bug-283480-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283480

            Bug ID: 283480
           Summary: secuirty/Libfido2: compilation broken after /usr/src
                    changes POSIX visibility on ppoll()
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: beldin@beldin.org

Recent changes in /usr/src, specifically commit
74ecdf86d8d2a94a4bfcf094a2e21b4747e4907f changed visibility of ppoll to onl=
y be
visible if __POSIX_VISIBLE >=3D 202405 (previously _BSD_VISIBLE) which resu=
lts in
the following error during build of libfido2:

FAILED: src/CMakeFiles/fido2.dir/hid_unix.c.o=20
/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=3D0x10100000L -DTLS=3D__thread -D_FIDO_INTERNAL
-D_FIDO_MAJOR=3D1 -D_FIDO_MINOR=3D15 -D_FIDO_PATCH=3D0
-I/wrkdirs/usr/ports/security/libfido2/work/libfido2-1.15.0/src
-I/usr/local/include -D_POSIX_C_SOURCE=3D200809L -D_BSD_SOURCE -D__BSD_VISI=
BLE=3D1
-std=3Dc99 -O2 -pipe  -DOPENSSL_API_COMPAT=3D0x10100000L -fstack-protector-=
strong
-fno-strict-aliasing -O2 -pipe  -DOPENSSL_API_COMPAT=3D0x10100000L
-fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -D_FORTIFY_SOURCE=
=3D2
-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=3D2047 -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 =3D 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.

(poll is still visible since it suggests that as an alternative, so correct
includes are being included)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283480-7788>