[MacPorts] #71667: vtk @9.4.1: error: implicit declaration of function 'getentropy' is invalid in C99 [-Werror, -Wimplicit-function-declaration]
MacPorts
noreply at macports.org
Sat Dec 28 16:00:45 UTC 2024
#71667: vtk @9.4.1: error: implicit declaration of function 'getentropy' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
------------------------+--------------------------
Reporter: ryandesign | Owner: Dave-Allured
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: vtk libxml2
------------------------+--------------------------
https://build.macports.org/builders/ports-
11_x86_64-builder/builds/174902/steps/install-port/logs/stdio
{{{
ThirdParty/libxml2/vtklibxml2/dict.c:970:17: error: implicit declaration
of function 'getentropy' is invalid in C99 [-Werror,-Wimplicit-function-
declaration]
if (getentropy(globalRngState, sizeof(globalRngState)) == 0)
^
1 error generated.
}}}
This appears to be happening when building a bundled copy of libxml2.
Here is the vtk bug report:
https://gitlab.kitware.com/vtk/vtk/-/issues/19530
And the libxml2 bug report:
https://gitlab.gnome.org/GNOME/libxml2/-/issues/820
I'll apply the fix to the libxml2 port. Maybe vtk can then use MacPorts
libxml2 to avoid the need to build its own?
--
Ticket URL: <https://trac.macports.org/ticket/71667>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list