-
-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
track_process: PROC_EVENT* undeclared on CentOS 6 #1119
Comments
As a temporary workaround, you could specify I am currently working on a patch that will detect if the various PROC_EVENT_*s are declared. Unfortunately track_process will not work prior to Linux v3.2 due to it using PROC_EVENT_COMM. I will also produce a patch so that it properly detects if nftables can be used. |
Issue acassen#1119 reported that keepalived wouldn't build on CentOS 6. Various PROC_EVENT_* declarations were assumed to exist, some of which were not introduced until Linux v3.10. Most of them are not needed, but PROC_EVENT_COMM is used by the track_process code. This commit now checks for the existence of the PROC_EVENT_* declarations, but since keepalived uses PROC_EVENT_COMM, track_process is not supported prior to Linux v3.2. Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Commit 1637032 resolves the compilation failure I'm not sure how to reliably detect the init type. |
Thanks. Regarding init: CentOS 6 uses upstart, but many people (including me) still prefer to use sysvinit scripts on it. |
Commit 9c94b40 should resolve setting the init option in the spec file. |
@pqarmitage I have update in OpenWrt recently to the newest version 2.0.19. An user reported problems in some arch wich does not have defined in the kernel config
I think its not enough to check if the c kernel definitions are valid but we need also check if the kernel params are enbabled. So could we check this? |
…not enabled This fixes a runtime startup error for system, which does not have enabled the kernel config option CONFIG_PROC_EVENTS. This workaround was published on github under the following URL. acassen/keepalived#1119 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
I'm trying to compile keepalived-2.0.12 on CentOS 6.10.
Configure command passed without any errors:
./configure --with-init=SYSV --disable-nftables
However, make fails on track_process.c:
My first thought was that CONFIG_PROC_EVENTS is not set (#1099), but it is there.
On CentOS 7, package is compiled without any issue, so there might be an issue with kernel version.
The text was updated successfully, but these errors were encountered: