[SOLVED] Samba package for Slack 14.0 - libarchive support is missing
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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
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...
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.