Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32507

Build from source failure on linuxes with kernels older than 2.6.31

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.1
    • 5.1.0
    • Testing: qtestlib
    • 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

      Attachments

        For Gerrit Dashboard: QTBUG-32507
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            bartoli Olivier BARTHELEMY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes