Mike Jumper created GUACAMOLE-1892:
--------------------------------------

             Summary: Build fails with "undefined reference to 'timer_create'"
                 Key: GUACAMOLE-1892
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1892
             Project: Guacamole
          Issue Type: Bug
            Reporter: Mike Jumper


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

{code:none}
/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'
{code}

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:

{code:none}
LDFLAGS="-lrt" ./configure
{code}

Running {{make}}, etc. should then succeed as normal.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to