Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.4
-
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
- is caused by
-
GUACAMOLE-1846 Race condition can cause the first user for a connection to miss updates
- Closed
- is duplicated by
-
GUACAMOLE-1899 Newer Linux distros require librt to be explicitly linked
- Closed