[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805064#comment-17805064
 ] 

Jimmy commented on GUACAMOLE-1892:
----------------------------------

[~mjumper] I've just created a PR for this issue: 
[https://github.com/apache/guacamole-server/pull/476]

Please check it. Thanks.

> 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
>          Components: guacamole-server
>    Affects Versions: 1.5.4
>            Reporter: Mike Jumper
>            Priority: Minor
>
> 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