openscap icon indicating copy to clipboard operation
openscap copied to clipboard

MacOS X build fails because of chroot

Open evgenyz opened this issue 5 years ago • 0 comments

MacOS X build fails (GH actions CI).

/Users/runner/work/openscap/openscap/src/OVAL/probes/probe/worker.c:1013:8: error: implicit declaration of function 'chroot' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                        if (chroot(rootdir) != 0) {
                            ^
/Users/runner/work/openscap/openscap/src/OVAL/probes/probe/worker.c:1176:7: error: implicit declaration of function 'chroot' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                if (chroot(".") == -1) {
                    ^
2 errors generated.

Version: 1.3.5

This problem was mitigated to calm down CI, but the root problem is still unknown and solution is a mere hack #1626. Related issue: #1624.

evgenyz avatar Nov 11 '20 07:11 evgenyz