Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1892

Build fails with "undefined reference to 'timer_create'"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.4
    • 1.5.5
    • guacamole-server
    • None

    Description

      When attempting to build guacamole-server on Ubuntu 20.04.6, the build fails with the following errors:

      /usr/bin/ld: .../src/libguac/.libs/libguac.so: undefined reference to `timer_delete'
      /usr/bin/ld: .../src/libguac/.libs/libguac.so: undefined reference to `timer_settime'
      /usr/bin/ld: .../src/libguac/.libs/libguac.so: undefined reference to `timer_create'
      

      This is because the timer_create(), timer_settime(), and timer_delete() functions are defined in a separate library on Ubuntu 20.04 (librt). A configure test likely needs to be added to recognize whether librt needs to be linked in.

      NOTE: Users encountering this error can work around the problem by performing the build with the LDFLAGS environment variable set to "-lrt". For example, when running configure for a fresh build:

      LDFLAGS="-lrt" ./configure
      

      Running make, etc. should then succeed as normal.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mjumper Mike Jumper
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: