-
Notifications
You must be signed in to change notification settings - Fork 33
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
Compile fails on Centos7 #10
Comments
Do you know what version of the kernel and glibc you're running with? I'm guessing it's old enough that statx just isn't supported? Which I guess we could look at adding a slower non-statx path if really needed. Thanks.
|
@mikesart Thanks for looking, the Centos 7 kernel is still 3.10 and glibc on 2.17. I'm starting to phasing out my Centos 7 hosts this year as it is getting EOLed next year. Closing this off. |
Would it be possible for the utility to detect when the kernel doesn't support the statx or whatever it requires, and print out an appropriate error? I tried running it on The problem is that inotify-info output is wrong (shows zero handles):
I appreciate that Legacy systems are not going away, and it's good form for new-fangled software like this to fail correctly with 'unsupported kernel' or such message. "Total inotify Watches: 0" is a lie. Thank you. |
There is this bit of code in inotify-info.cpp:
Can you change this to be this:
And rebuild the app and see if it works? |
@mikesart, I tried the change you suggested and does not work. The behaviour is unchanged. My system used libc6 2.23-0ubuntu11.3, so the conditional evaluates as false with or without this change. I looked a bit into the situation, and submitted #19, which implements backwards compatibility to kernel 2.6.32. I have not tested earlier kernels. The stat functions are not called at all on old kernels, because individual watches cannot be resolved; the fdinfo files in /proc do not include the necessary device info (the |
Hi,
When running
make
I get failures. I've also tried compiling the code against the Developer Toolset 7..10.When using g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
When using Developer Toolset 9 - g++ (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
It compiled successfully on Rocky 8.
The text was updated successfully, but these errors were encountered: