[MacPorts] #68277: dosbox-staging @0.80.1: error: call to undeclared function 'select'; ISO C99 and later do not support implicit function declarations
MacPorts
noreply at macports.org
Sat Sep 30 01:33:59 UTC 2023
#68277: dosbox-staging @0.80.1: error: call to undeclared function 'select'; ISO
C99 and later do not support implicit function declarations
-----------------------------+----------------------
Reporter: thaewrapt | Owner: kakuhen
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sonoma
Port: dosbox-staging |
-----------------------------+----------------------
Comment (by ryandesign):
Upstream has fixed it by including that header so we could add a patch to
MacPorts to do the same.
However it's also pointed out in the upstream issue that this code only
takes effect when xinput was found and is only relevant to X11, and while
we do offer xinput and X11 in MacPorts, this port does not declare
dependencies on xinput or any other X11 ports, so this use may be
unintentional. For example if I configure dosbox-staging on my system
using trace mode (on Monterey where it works; [ticket:66358 trace mode is
broken on Ventura] and later), I see:
{{{
---> Configuring dosbox-staging
Warning: The following existing files were hidden from the build system by
trace mode:
/opt
/opt/local/bin/ar
/opt/local/bin/git
/opt/local/bin/gmake
/opt/local/bin/lipo
/opt/local/lib/pkgconfig/xi.pc
/private/var/select/sh
/usr/X11R6
}}}
And:
{{{
% port provides /opt/local/lib/pkgconfig/xi.pc
/opt/local/lib/pkgconfig/xi.pc is provided by: xorg-libXi
}}}
xorg-libXi is the X11 input extension.
So the port should either declare a dependency on xorg-libXi if it wants
to use it, or ensure that it will not be used even if it is installed.
--
Ticket URL: <https://trac.macports.org/ticket/68277#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list