You are not logged in.

#1 2021-09-10 11:51:50

Yoppez
Member
Registered: 2021-09-10
Posts: 9

[SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

Hi,

I was trying to compile ffmpeg-full from the AUR, and during the build() procedure it shows up the following error:

  -> Running ffmpeg configure script...
ERROR: libsmbclient not found

So I tried to run smbclient to see if it works, and this is what it outputs:

$ smbclient
smbclient: error while loading shared libraries: libnsl.so.2: cannot open shared object file: No such file or directory

The libnsl package installs libnsl.so.3, but smbclient expects the version 2. I don't know how to resolve the problem without downgrade libsnl.

Last edited by Yoppez (2021-09-10 12:36:30)

Offline

#2 2021-09-10 12:02:55

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

smbclient was rebuilt against the new libnsl 18 days ago: https://github.com/archlinux/svntogit-p … 5eb9b7203a

Make sure your mirror is up-to-date, and don't run partial upgrades.

https://archlinux.org/mirrors/status/
https://wiki.archlinux.org/title/System … nsupported


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2021-09-10 12:07:51

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

@Wormzy smbclient 4.14.7-2 is built against the old libnsl.  At a guess the package was updated to a newer release but went straight to extra while the updated libnsl was still in testing.
My mistake 'Links to so-names' at https://archlinux.org/packages/extra/x86_64/smbclient/ shows libnsl.so.2 but the package itself has been updated.

Last edited by loqs (2021-09-10 12:14:04)

Offline

#4 2021-09-10 12:13:23

Yoppez
Member
Registered: 2021-09-10
Posts: 9

Re: [SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

Thanks for the reply.

Make sure your mirror is up-to-date

I'm using http://mirrors.prometeus.net/archlinux/ as mirror, which is up-to-date.
It seems that the mirror that I was using, even if it results as successfully syncing in the mirrorlist status, is not up-to-date.

I changed the mirror to https://archmirror.it/repos/$repo/os/$arch, upgraded and now everything works.

Thanks a lot!

Last edited by Yoppez (2021-09-10 12:35:30)

Offline

#5 2021-09-10 12:26:36

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

Is smbclient version 4.14.7-2?

Offline

#6 2021-09-10 12:39:07

Yoppez
Member
Registered: 2021-09-10
Posts: 9

Re: [SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

@loqs I edited the previous post with the solution of the problem. Thanks anyway.

Offline

#7 2021-09-10 12:39:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] smbclient: error while loading shared libraries: libnsl.so.2

Interesting, that mirror is shown as successfully syncing, but only has 4.14.7-1 in extra (as well as both libnsl 1.3.0-2 and 2.0.0-1 in core). Looks like loqs was on the right path about the testing/staging, and these rebuilt packages were moved to their respective repositories AFTER this server last successfully synced (you can see the updated smbclient in testing on that mirror), but someone made a mistake and pushed libsnl-2.0.0-1 to core before everything else.

I think the best option here is to try a different mirror.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB