Build failure with linux-headers 6.6
corectrl is failing to build since I upgraded to linux-headers 6.6, below are the lines I think are needed to fix the issue, but I will also attach the complete log from portage.
FAILED: src/helper/CMakeFiles/corectrl_helper.dir/pmon/nlprocexecsocket.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DELPP_FORCE_USE_STD_THREAD -DELPP_NO_DEFAULT_LOG_FILE -DELPP_NO_LOG_TO_FILE -DELPP_THREAD_SAFE -DFMT_SHARED -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_NO_DEBUG -I/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999_build/src/helper -I/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper -I/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999_build/src/helper/corectrl_helper_autogen/include -I/usr/include/botan-3 -I/usr/include/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtDBus -march=raptorlake -O2 -pipe -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=gnu++20 -fPIC -MD -MT src/helper/CMakeFiles/corectrl_helper.dir/pmon/nlprocexecsocket.cpp.o -MF src/helper/CMakeFiles/corectrl_helper.dir/pmon/nlprocexecsocket.cpp.o.d -o src/helper/CMakeFiles/corectrl_helper.dir/pmon/nlprocexecsocket.cpp.o -c /var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp
In file included from /var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp:9:
/usr/include/linux/cn_proc.h: In function ‘proc_cn_event valid_event(proc_cn_event)’:
/usr/include/linux/cn_proc.h:72:17: error: invalid conversion from ‘unsigned int’ to ‘proc_cn_event’ [-fpermissive]
72 | ev_type &= PROC_EVENT_ALL;
| ^
| |
| unsigned int
/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp: In member function ‘ProcessEvent NLProcExecSocket::waitForEvent() const’:
/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp:67:24: error: ‘PROC_EVENT_EXEC’ is not a member of ‘proc_event’
67 | case proc_event::PROC_EVENT_EXEC:
| ^~~~~~~~~~~~~~~
/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp:71:24: error: ‘PROC_EVENT_EXIT’ is not a member of ‘proc_event’
71 | case proc_event::PROC_EVENT_EXIT:
| ^~~~~~~~~~~~~~~
In file included from /var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp:11:
/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp: In member function ‘int NLProcExecSocket::installSocketFilter() const’:
/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp:141:61: error: ‘PROC_EVENT_EXEC’ is not a member of ‘proc_event’
141 | BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(proc_event::PROC_EVENT_EXEC), 0, 6),
| ^~~~~~~~~~~~~~~
/var/tmp/portage/app-misc/corectrl-9999/work/corectrl-9999/src/helper/pmon/nlprocexecsocket.cpp:159:61: error: ‘PROC_EVENT_EXIT’ is not a member of ‘proc_event’
159 | BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(proc_event::PROC_EVENT_EXIT), 0, 6),
| ^~~~~~~~~~~~~~~