[Samba] Compile Samba for Windows Use - SMBClient.exe mainly

Andrew Bartlett abartlet at samba.org
Fri May 13 10:25:28 UTC 2016

On Thu, 2016-05-12 at 15:39 +0000, Allan P. Dynes wrote:
> I have an odd use case where I need to get the Samba Client
> (SMBClient.exe) compiled for use on a Windows 2012 server to access
> another Windows 2012 Server through SMB.  I have scoured the
> internet, posted to forums, and even emailed authors that have
> compiled older version of Samba with no luck.  For example Lee
> Peckham complied just the client and posted it here: 
> https://www.leepa.io/lpackham/smbclient/ but it's v3.0.7 .  Ross
> Smith compiled all of Samba here: https://smithii.com/samba but
> that's 3.0.23c.  I am looking to compile the latest version of either
> 3.* or 4.* and I have had no luck using CygWin to do so.  Not having
> too much experience with things I may be doing something wrong but I
> can't get past the configure stage on either 3.* or 4.* nor can I
> compile just the client by itself which is the only part I need.
> Are there any resources anywhere that would help get this done or any
> suggestions anyone can make?  Or is there anyone that has experience
> in this that is willing to give me instructions?  Or does anyone
> already have newer version of the client compiled?  I believe the
> issue I'm having is the older SMBClient.exe I'm using from the above
> links has trouble with the new 2012 R2 servers.  .I can read from
> server shares using it and get files but cannot create files (put),
> they result in 0 byte files instead of what they should be. 

The best way forward might be to use the new Linux subsystem coming to
windows 2016 ('ubuntu for windows').  I don't expect compiling modern
versions of Samba on windows will be particularly practical,
particularly with the new waf build system.

Andrew Bartlett 

Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

More information about the samba mailing list