Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23629

wanpipe compile fails if kernel doesn't have do_gettimeofday

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: Installation
    • Labels:
      None
    • ToDo:
    • Distro Version:
      Oracle Linux 8 (wanpipe 7.0.34)
    • Distro:
      Other

      Description

      Running the setup installer compiling the wanpipe modules, compilation fails with may files failing due to not finding "do_gettimeofday".

      e.g., kdrvtmp/sdla_fr.c:1577:2: error: implicit declaration of function 'do_gettimeofday'; did you mean 'wp_gettimeofday'? [-Werror=implicit-function-declaration]

       

      The kernel sources do not have do_gettimeofday. I believe that function has been obsoleted.

      Appears that quite a bit of code is still using it though. The setup script seems to correctly detect that the method is not available in the kernel sources, but it seems that there are some parts of the code that are still using it.

      The seconds member will overflow in about a decade, so probably should be looking at updating the methods to use a more modern kernel interface.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gabeblack Gabe
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.