Skip to content

FreeBSD 15 buildbot: Python fails to build with error: call to undeclared function 'ppoll' #144309

@vstinner

Description

@vstinner

Bug report

Bug description:

FreeBSD 15 buildbot: https://buildbot.python.org/#/builders/1238/builds/7690

Build error:

--- Modules/selectmodule.o ---
./Modules/selectmodule.c:703:23: error: call to undeclared function 'ppoll'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
  703 |         poll_result = ppoll(self->ufds, self->ufd_len, ts_p, NULL);
      |                       ^
./Modules/selectmodule.c:703:23: 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.

configure:

checking for ppoll... yes
...
checking for sys/poll.h... yes

Python has been modified to use the ppoll() function by PR gh-143529.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-freebsdbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions