Bug #975

test-rwlock1 can fail when system linker defaults to --as-needed

Added by Michael Hudson-Doyle almost 6 years ago. Updated over 5 years ago.

Target version:
Start date:
Due date:
% Done:




test-rwlock1 was failing on ubuntu builders, for example:

Digging revealed that the test-rwlock1 binary did not have a DT_NEEDED entry for libpthread, because Ubuntu defaults to --as-needed for the linker and there was no non-weak reference to any symbol in libpthread. I added a spurious reference to errno (__errno_location is defined in and the build succeeds again, but it's a bit of a silly fix. I'm not sure what would be better. (From a distro perspective, trying to be careful about whether libpthread is linked in or not is just unhelpful...)


#1 Updated by Antoine LUONG almost 6 years ago

  • Project changed from PRELUDE SIEM to Libprelude
  • Status changed from New to Assigned
  • Assignee set to Yoann VANDOORSELAERE

#2 Updated by Antoine LUONG almost 6 years ago

This is a problem in GnuLib, fixed in

We need to update the code in our repositories.

#3 Updated by Michael Hudson-Doyle almost 6 years ago

Ah thanks for the link. I had some trouble using that patch though, because libtool re-ordered the linker commands so they became ineffective.

#4 Updated by Antoine LUONG over 5 years ago

  • Status changed from Assigned to Resolved

The GnuLib code was updated in 1a762afb9bbdffb7ffd8689c7db4a0ae1bb73745 for the 5.0.0 version.

Also available in: Atom PDF