Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.0
-
None
-
Linux Centos 5 x64, kernel 2.6.18
-
bad93acfba492954543a293dbf87769a6953d630
Description
I'm trying to build QT5.1 on a Centos5 x86-64 that has a 2.6.18 kernel.
The build from source fails on qtbase/src/testlib/qbenchmarkperfevents.cpp because the code inside makes a syscall to check if SYS_perf_event_open is available on the platform. But as i have an older linux kernel, the symbol SYS_perf_event_open is not in my kernel headers, so the test function can't compile.
I think configure should check if this symbol is defined, and
- either add config macros that disable that functionality (comment the syscalls and make QBenchmarkPerfEventMeasurer::isAvailable() return 0)
- or display a configure error