[Samba] how to build smbtorture using static linked libraries
Herb Lewis
hlewis at panasas.com
Thu Oct 22 15:03:47 UTC 2015
This is working for me with the following configure option
--nonshared-binary=smbtorture
You also need to apply the following patch which is not yet in the sources
--- a/source4/torture/rpc/fsrvp.c
+++ b/source4/torture/rpc/fsrvp.c
@@ -41,7 +41,7 @@
#include "torture/torture.h"
#include "torture/smb2/proto.h"
#include "torture/rpc/torture_rpc.h"
-#include "librpc/gen_ndr/ndr_security.c"
+#include "librpc/gen_ndr/ndr_security.h"
#include "librpc/gen_ndr/ndr_srvsvc_c.h"
#include "librpc/gen_ndr/ndr_fsrvp_c.h"
On 10/21/2015 10:47 PM, Shuo Dong wrote:
> Hello all:
>
> I am trying to build smbtorture using static linked libraries.
> The samba source code I have is samba-4.1.13
>
> for configure, I did:
>
> waf configure --builtin-libraries=ALL
>
> for build, I did:
> waf build --targets=smbtorture (so that it only build target smbtorture)
>
> But, the waf build fails immediately.
>
>
> Then, I tried to only link with lib talloc and tevent statically, so I did:
>
> waf configure --builtin-libraries=talloc,tevent
>
> and then do:
> waf build --targets=smbtorture
>
> But then build fails in the link step with an ld error of undefined
> reference to some function.
>
> How can I resolve this issue, and build smbtorture with static linked
> libraries?
>
>
> Thanks
More information about the samba
mailing list