Bug 7248 - "tdbtorture" doesn't build
Summary: "tdbtorture" doesn't build
Status: RESOLVED FIXED
Alias: None
Product: TDB
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
Hardware: Sparc Solaris
: P3 normal
Target Milestone: ---
Assignee: Rusty Russell
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-14 13:26 UTC by Matthias Dieter Wallnöfer
Modified: 2010-03-22 15:31 UTC (History)
0 users

See Also:


Attachments
patch (941 bytes, patch)
2010-03-14 14:47 UTC, Volker Lendecke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Dieter Wallnöfer 2010-03-14 13:26:22 UTC
"tdbtorture" doesn't build on Solaris since it uses "nanosleep". I checked the dependency and in our case we really rely on it (we need it to wait for 1/10 sec - so with "sleep" it's undoable).
To make this work also on Solaris we need to link against "librt" (-lrt).
Comment 1 Matthias Dieter Wallnöfer 2010-03-14 13:27:03 UTC
Add also Jelmer since he is a build system expert
Comment 2 Volker Lendecke 2010-03-14 14:47:56 UTC
Created attachment 5496 [details]
patch

Does that fix it?

Volker
Comment 3 Matthias Dieter Wallnöfer 2010-03-15 04:41:09 UTC
Yeah, I tested this on OpenSolaris and it worked. vl, feel free to push it!
Comment 4 Volker Lendecke 2010-03-15 04:46:05 UTC
It's up to the tdb maintainers to push this. You might want to re-assign this bug to tridge or Rusty Russel.

Volker
Comment 5 Matthias Dieter Wallnöfer 2010-03-15 05:26:12 UTC
Rusty, would you like to push this fix (remove dependency on "nanosleep" in tdbtorture)?
Comment 6 Volker Lendecke 2010-03-22 15:31:14 UTC
Did push it to master, closing the bug.

If someone complains, we can always revert it.

Volker