Allan P. Dynes
2016-May-13 18:28 UTC
[Samba] Compile Samba for Windows Use - SMBClient.exe mainly
Unfortunately that’s not going to be an option. I'm using a cloud sharing software package called Pydio and it was originally written for *nix platforms. I got it running amazingly well on a 2012 R2 server with IIS 8.5 but there is no built in way to access another server share from the platform other than FTP over SSH or Samba. Again it was written for *nix so those options make sense. However I'm on Server 2012 trying to access another Server 2012. From reading more about this the WAF build system was implemented for a 4.* series of Samba. Since others I linked to have compiled different version of 3.* it stands to reason I can possible compile 3.6.25 on Windows? Should my question be targeted more twords a Cygwin newsgroup/forum then the Samba group or would someone have experience with building Samba on Windows have any ideas. Again I only need the client, I really don't need to build all of Samba. -----Original Message----- From: Andrew Bartlett [mailto:abartlet at samba.org] Sent: Friday, May 13, 2016 6:25 AM To: Allan P. Dynes; samba at lists.samba.org Subject: Re: [Samba] Compile Samba for Windows Use - SMBClient.exe mainly 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
Andrew Bartlett
2016-May-13 21:01 UTC
[Samba] Compile Samba for Windows Use - SMBClient.exe mainly
On Fri, 2016-05-13 at 18:28 +0000, Allan P. Dynes wrote:> Unfortunately that’s not going to be an option.I'm not sure there are many good options then.> I'm using a cloud sharing software package called Pydio and it was > originally written for *nix platforms. I got it running amazingly > well on a 2012 R2 server with IIS 8.5 but there is no built in way to > access another server share from the platform other than FTP over SSH > or Samba. Again it was written for *nix so those options make sense. > However I'm on Server 2012 trying to access another Server 2012.I'm of course assuming you can't just use the system redirector for some reason?> From reading more about this the WAF build system was implemented for > a 4.* series of Samba. Since others I linked to have compiled > different version of 3.* it stands to reason I can possible compile > 3.6.25 on Windows? Should my question be targeted more twords a > Cygwin newsgroup/forum then the Samba group or would someone have > experience with building Samba on Windows have any ideas. Again I > only need the client, I really don't need to build all of Samba.You are asking in the right place, or samba-technical, but this is essentially uncharted territory. I don't know if it would help, but so as not to just leave you at a dead end, perhaps you might get more luck with jcifs? (but you would have to build the smbclient replacement) BTW, out of total curiosity, what happens when you do try and run our build system on Windows, or on cygwin? (try running the buildtools/bin/waf directly if the make wrapper is in the way). 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
Rowland penny
2016-May-14 07:47 UTC
[Samba] Compile Samba for Windows Use - SMBClient.exe mainly
On 13/05/16 19:28, Allan P. Dynes wrote:> Unfortunately that’s not going to be an option. I'm using a cloud sharing software package called Pydio and it was originally written for *nix platforms. I got it running amazingly well on a 2012 R2 server with IIS 8.5 but there is no built in way to access another server share from the platform other than FTP over SSH or Samba. Again it was written for *nix so those options make sense. However I'm on Server 2012 trying to access another Server 2012.Have you tried 'putty' ? this provides FTP over SSH Rowland> > From reading more about this the WAF build system was implemented for a 4.* series of Samba. Since others I linked to have compiled different version of 3.* it stands to reason I can possible compile 3.6.25 on Windows? Should my question be targeted more twords a Cygwin newsgroup/forum then the Samba group or would someone have experience with building Samba on Windows have any ideas. Again I only need the client, I really don't need to build all of Samba. > > -----Original Message----- > From: Andrew Bartlett [mailto:abartlet at samba.org] > Sent: Friday, May 13, 2016 6:25 AM > To: Allan P. Dynes; samba at lists.samba.org > Subject: Re: [Samba] Compile Samba for Windows Use - SMBClient.exe mainly > > 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. > >
Jeff Sadowski
2016-May-14 22:03 UTC
[Samba] Compile Samba for Windows Use - SMBClient.exe mainly
When I saw this thread the other day I had to try myself just to see what would happen. I installed cygwin with all the build tools I'd think I needed gcc g++ make autoconfig. I ran "./configure --without-ad-dc" as it complained when I left out that argument. the first couple times configure complained about xxx missing and I installed xxx then configure just aborted after running a while without listing what was missing. It just said error I was going to look what packages where recommended to compile samba but couldn't find a good page myself. On Fri, May 13, 2016 at 3:01 PM, Andrew Bartlett <abartlet at samba.org> wrote:> On Fri, 2016-05-13 at 18:28 +0000, Allan P. Dynes wrote: > > Unfortunately that’s not going to be an option. > > I'm not sure there are many good options then. > > > I'm using a cloud sharing software package called Pydio and it was > > originally written for *nix platforms. I got it running amazingly > > well on a 2012 R2 server with IIS 8.5 but there is no built in way to > > access another server share from the platform other than FTP over SSH > > or Samba. Again it was written for *nix so those options make sense. > > However I'm on Server 2012 trying to access another Server 2012. > > I'm of course assuming you can't just use the system redirector for > some reason? > > > From reading more about this the WAF build system was implemented for > > a 4.* series of Samba. Since others I linked to have compiled > > different version of 3.* it stands to reason I can possible compile > > 3.6.25 on Windows? Should my question be targeted more twords a > > Cygwin newsgroup/forum then the Samba group or would someone have > > experience with building Samba on Windows have any ideas. Again I > > only need the client, I really don't need to build all of Samba. > > You are asking in the right place, or samba-technical, but this is > essentially uncharted territory. > > I don't know if it would help, but so as not to just leave you at a > dead end, perhaps you might get more luck with jcifs? (but you would > have to build the smbclient replacement) > > BTW, out of total curiosity, what happens when you do try and run our > build system on Windows, or on cygwin? > > (try running the buildtools/bin/waf directly if the make wrapper is in > the way). > > 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 > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Maybe Matching Threads
- Compile Samba for Windows Use - SMBClient.exe mainly
- Compile Samba for Windows Use - SMBClient.exe mainly
- Compile Samba for Windows Use - SMBClient.exe mainly
- Compile Samba for Windows Use - SMBClient.exe mainly
- Compile Samba for Windows Use - SMBClient.exe mainly