LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2016, 11:16 AM   #1
Ellendhel
Member
 
Registered: Aug 2015
Location: Wilmington, NC
Distribution: Slackware
Posts: 64

Rep: Reputation: 51
Samba package for Slack 14.0 - libarchive support is missing


Hi,

As I'm using the 'tar' command with smbclient in a script I have noticed some errors since I have updated the samba package on a Slackware 14.0 installation. The 'tar' option are not available; it seems that smbclient has been compiled without including libarchive.

Code:
ellendhel@slack-14-0:~$ cat /etc/slackware-version
Slackware 14.0
ellendhel@slack-14-0:~$ /usr/bin/smbclient -p 445 //server/share
Enter ellendhel's password:
Domain=[DOMAIN] OS=[Windows Server 2008 R2 Datacenter 7601 Service Pack 1] Server=[Windows Server 2008 R2 Datacenter 6.1]
smb: \> tar
tar mode not compiled. build with --with-libarchive
smb: \> quit
ellendhel@slack-14-0:~$ ldd /usr/bin/smbclient | grep archive
ellendhel@slack-14-0:~$ echo $?
1
ellendhel@slack-14-0:~$
Things seems to be working properly on Slackware 14.1:

Code:
ellendhel@slack-14-1:~$ cat /etc/slackware-version
Slackware 14.1
ellendhel@slack-14-1:~$ /usr/bin/smbclient -p 445 //server/share
Enter ellendhel's password:
Domain=[DOMAIN] OS=[Windows Server 2008 R2 Datacenter 7601 Service Pack 1] Server=[Windows Server 2008 R2 Datacenter 6.1]
smb: \> tar
tar:345  tar <c|x>[IXFbganN] [options] <tar file> [path list]
smb: \> quit
ellendhel@slack-14-1:~$ ldd /usr/bin/smbclient | grep archive
19:     libarchive.so.13 => /usr/lib64/libarchive.so.13 (0x00007fe7c568c000)
ellendhel@slack-14-1:~$ echo $?
0
ellendhel@slack-14-1:~$
Would it be possible to have the Samba package for 14.0 (re)compiled with the same options as the one for 14.1 please?
I plan to upgrade that old server at some point, but it would be nice to have the same options as before.

Thanks in advance!
 
Old 04-26-2016, 12:12 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
As far as I can tell, there are no options covering any sort of tar support (or libarchive) that differ between the two SlackBuilds. Maybe the older version of samba just didn't have it (I only used samba to mount shares -- I never used smbclient), or maybe it wasn't a default ./configure option in the older version, but it is in the newer version. Either way, the SlackBuild doesn't seem to indicate that it is something that Pat intentionally changed between the two.

You could try grabbing the source for samba and add the --enable-libarchive option to the ./configure options and then compile that.
 
1 members found this post helpful.
Old 04-26-2016, 12:27 PM   #3
Ellendhel
Member
 
Registered: Aug 2015
Location: Wilmington, NC
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by bassmadrigal View Post
As far as I can tell, there are no options covering any sort of tar support (or libarchive) that differ between the two SlackBuilds.
Thank you for checking on this, I didn't went that far.

Quote:
Originally Posted by bassmadrigal View Post
Maybe the older version of samba just didn't have it (I only used samba to mount shares -- I never used smbclient) (...)
Well, it has been working out-of-the-box every day for more than a year with the default old package (samba-3.6.24-i486-1_slack14.0), so there is probably a subtle change somewhere.

Quote:
Originally Posted by bassmadrigal View Post
You could try grabbing the source for samba and add the --enable-libarchive option to the ./configure options and then compile that.
I'm not sure to have time right away, but I will try to give it a shot...
 
Old 04-26-2016, 01:43 PM   #4
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
smbclient from samba-4.2.11 needs libarchive >= 3.1.2 when Slackware 14.0 has libarchive-2.8.5.
So, it cannot detected by configure by default and ./configure --with-libarchive ... shows an error about version mismatch.
 
2 members found this post helpful.
Old 04-26-2016, 02:40 PM   #5
Ellendhel
Member
 
Registered: Aug 2015
Location: Wilmington, NC
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by bormant View Post
smbclient from samba-4.2.11 needs libarchive >= 3.1.2 when Slackware 14.0 has libarchive-2.8.5.
So, it cannot detected by configure by default and ./configure --with-libarchive ... shows an error about version mismatch.
Argh. That is not helpful.

Well, sorry, your post is helpful indeed

It only confirms that I will need to work a little bit more than expected on this...
 
  


Reply

Tags
samba4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] libarchive: dump memory archive to disk file atelszewski Programming 6 12-08-2015 09:33 AM
[SOLVED] pkg request libarchive-3.1.2.tar.gz gmgf Slackware 5 10-15-2013 02:11 AM
Suggestions for GDBM, XZ, libarchive and usb_modeswitch packages on Current Darth Vader Slackware 2 08-04-2012 09:58 PM
rsnapshot: Lchown, not found -- but perl-lchown slack package is installed on Slack atanasoff Slackware 1 12-13-2011 09:31 AM
[SOLVED] libarchive block size MTK358 Programming 1 07-13-2011 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration