Skip to content

Dependency sys/sysctl.h is deprecated #2

@chrisdonlan

Description

@chrisdonlan

Running into issues building these samples on Fedora 33. Specifically, the threaded rendering example.

The following file is deprecated from glibc,

sys/sysctl.h

sysctl is deprecated

Error output:

make[3]: Entering directory '/home/chris/ray-tracing/build'
[ 16%] Building CXX object gl_vk_bk3dthreaded/CMakeFiles/gl_vk_bk3dthreaded.dir/mt/CThread.cpp.o
/home/chris/ray-tracing/gl_vk_bk3dthreaded/mt/CThread.cpp:34:13: fatal error: sys/sysctl.h: No such file or directory
   34 | #   include <sys/sysctl.h>
      |             ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [gl_vk_bk3dthreaded/CMakeFiles/gl_vk_bk3dthreaded.dir/build.make:173: gl_vk_bk3dthreaded/CMakeFiles/gl_vk_bk3dthreaded.dir/mt/CThread.cpp.o] Error 1
make[3]: Leaving directory '/home/chris/lab/ray-tracing/build'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions