[Bug 283789] security/libfido2 fails due to implicit function declaration

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Jan 2025 07:52:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283789

            Bug ID: 283789
           Summary: security/libfido2 fails due to implicit function
                    declaration
           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: dclarke@blastwave.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

On FreeBSD 15.0-CURRENT poudriere reports a failure due to : 

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.

Not sure but it looks like this triggers a LOT of other packages being
skipped over : 

titan# 
titan# cat .poudriere.ports.skipped
databases/akonadi akonadi-23.08.5_3 libfido2-1.15.0
net/akonadi-calendar akonadi-calendar-23.08.5 libfido2-1.15.0
net/akonadi-contacts akonadi-contacts-23.08.5_1 libfido2-1.15.0
deskutils/akonadi-import-wizard akonadi-import-wizard-23.08.5_1 libfido2-1.15.0
net/akonadi-mime akonadi-mime-23.08.5 libfido2-1.15.0
net/akonadi-notes akonadi-notes-23.08.5 libfido2-1.15.0
net/akonadi-search akonadi-search-23.08.5 libfido2-1.15.0
deskutils/akonadiconsole akonadiconsole-23.08.5_1 libfido2-1.15.0
deskutils/akregator akregator-23.08.5_1 libfido2-1.15.0
net/calendarsupport calendarsupport-23.08.5 libfido2-1.15.0
net/eventviews eventviews-23.08.5 libfido2-1.15.0
deskutils/grantlee-editor grantlee-editor-23.08.5_1 libfido2-1.15.0
net/incidenceeditor incidenceeditor-23.08.5 libfido2-1.15.0
deskutils/kaddressbook kaddressbook-23.08.5_1 libfido2-1.15.0
deskutils/kalarm kalarm-23.08.5 libfido2-1.15.0
x11/kde5 kde5-5.27.11.23.08.5_2 libfido2-1.15.0
deskutils/kdepim kdepim-23.08.5_2 libfido2-1.15.0
deskutils/kdepim-addons kdepim-addons-23.08.5_1 libfido2-1.15.0
deskutils/kdepim-runtime kdepim-runtime-23.08.5_4 libfido2-1.15.0
misc/kdeutils kdeutils-23.08.5_2 libfido2-1.15.0
security/kgpg kgpg-23.08.5 libfido2-1.15.0
deskutils/kmail kmail-23.08.5_1 libfido2-1.15.0
deskutils/kmail-account-wizard kmail-account-wizard-23.08.5_1 libfido2-1.15.0
net/kmailtransport kmailtransport-23.08.5 libfido2-1.15.0
deskutils/kontact kontact-23.08.5 libfido2-1.15.0
deskutils/korganizer korganizer-23.08.5 libfido2-1.15.0
net/libgravatar libgravatar-23.08.5 libfido2-1.15.0
deskutils/libkdepim libkdepim-23.08.5 libfido2-1.15.0
net/libksieve libksieve-23.08.5 libfido2-1.15.0
net/mailcommon mailcommon-23.08.5_1 libfido2-1.15.0
net/mailimporter mailimporter-23.08.5 libfido2-1.15.0
deskutils/mbox-importer mbox-importer-23.08.5_1 libfido2-1.15.0
net/messagelib messagelib-23.08.5_1 libfido2-1.15.0
databases/mysql80-client mysql80-client-8.0.39 libfido2-1.15.0
databases/mysql80-server mysql80-server-8.0.39_1 libfido2-1.15.0
deskutils/pim-data-exporter pim-data-exporter-23.08.5_1 libfido2-1.15.0
deskutils/pim-sieve-editor pim-sieve-editor-23.08.5 libfido2-1.15.0
net/pimcommon pimcommon-23.08.5 libfido2-1.15.0
databases/qt5-sqldrivers-mysql qt5-sqldrivers-mysql-5.15.16p130 libfido2-1.15.0
titan# 

Seems reasonable to put in a function prototype there.

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