SMB4K fails to load with undefined symbol

Running Leap 15.4 KDE SMB4k fails with


smb4k: symbol lookup error: /usr/lib64/libsmb4kcore.so: undefined symbol: _ZN9KFileItem16staticMetaObjectE

Should add this is a new install fully updated. SMB4K loaded from KDE:Extra repository for 15.4.

So far not found anything. Any ideas or suggestions please?

Stuart

Post:

zypper lr -d

#  | Alias                       | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                      
       | Service 
---+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------------------
-------+-------- 
 1 | KDE-Applications            | KDE-Applications                                                                            | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | https://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Lea
p_15.4 |  
 2 | KDE-Extra                   | KDE-Extra                                                                                   | Yes     | (r ) Yes  | Yes     |   98     | rpm-md | https://download.opensuse.org/repositories/KDE:/Extra/KDE_Applications_openSUSE_Leap_15.4
       |  
 3 | openSUSE-Leap-15.4-1        | openSUSE-Leap-15.4-1                                                                        | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-Innostor_Innostor_000000000000000042-0:0-part2           
       |  
 4 | packman                     | packman                                                                                     | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/                      
       |  
 5 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/update/leap/15.4/backports_debug/                           
       |  
 6 | repo-backports-update       | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/backports/                                 
       |  
 7 | repo-debug                  | Debug Repository                                                                            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.4/repo/oss/                      
       |  
 8 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                                                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.4/repo/non-oss/                  
       |  
 9 | repo-debug-update           | Update Repository (Debug)                                                                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/oss/                                 
       |  
10 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                                          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/non-oss/                             
       |  
11 | repo-non-oss                | Non-OSS Repository                                                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/                        
       |  
12 | repo-oss                    | Main Repository                                                                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/oss/                            
       |  
13 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/sle/                                 
       |  
14 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/sle/                                       
       |  
15 | repo-source                 | Source Repository                                                                           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.4/repo/oss/                     
       |  
16 | repo-update                 | Main Update Repository                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/oss/                                       
       |  
17 | repo-update-non-oss         | Update Repository (Non-Oss)                                                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/non-oss/                                   
       | 



As requested.

Stuart

Please show the results from

rpm -qf /usr/lib64/libsmb4kcore.so
sudo zypper se -s smb4k

In an effort to assist further I installed smb4k from (KDE-Extra), but have not been able to replicate the issue you report. What smb4k action triggers it specifically?

For reference I get…

~> nm -D /usr/lib64/libsmb4kcore.so |grep _ZN9KFileItem16staticMetaObjectE         
          U _**ZN9KFileItem16staticMetaObjectE**


…so it is undefined.

This happens when I start smb4k.


rpm -qf /usr/lib64/libsmb4kcore.so 
smb4k-3.1.2-lp154.1.60.x86_64

and


[FONT=monospace]zypper se -s smb4k 
Retrieving repository 'packman' metadata ...............................................................................................................................................................................................................................[done] 
Building repository 'packman' cache ....................................................................................................................................................................................................................................[done] 
Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata ..........................................................................................................................................................................[done] 
Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache ...............................................................................................................................................................................[done] 
Loading repository data... 
Reading installed packages... 

S  | Name              | Type       | Version          | Arch   | Repository 
---+-------------------+------------+------------------+--------+----------- 
i+ | smb4k             | package    | 3.1.2-lp154.1.60 | x86_64 | KDE-Extra 
   | smb4k             | srcpackage | 3.1.2-lp154.1.60 | noarch | KDE-Extra 
   | smb4k             | srcpackage | 3.1.2-lp154.1.59 | noarch | KDE-Extra 
   | smb4k-debuginfo   | package    | 3.1.2-lp154.1.60 | x86_64 | KDE-Extra 
   | smb4k-debugsource | package    | 3.1.2-lp154.1.60 | x86_64 | KDE-Extra 
i  | smb4k-doc         | package    | 3.1.2-lp154.1.60 | x86_64 | KDE-Extra 
i  | smb4k-lang        | package    | 3.1.2-lp154.1.60 | noarch | KDE-Extra 
v  | smb4k-lang        | package    | 3.1.2-lp154.1.59 | noarch | KDE-Extra

Stuart

[/FONT]

1 | KDE-Applications | KDE-Applications | Yes | (r ) Yes | Yes | 98 | rpm-md | https://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_15.4 |

This is a Repo for using newer Kf5 and Qt, which you have not inserted…

But they are factory Repos.

I think you meant the KDE-Frameworks repo. For reference I have…

 3 | KDE-Frameworks              | KDE-Frameworks                                                                              | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://
download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.4 

Adding only the Frameworks you mentioned there is no SMB4K! So the question is which repository should I be using for SMB4K in Leap 15.4?

Stuart

No, the smb4k version from KDE-Extra is what I have installed, but I was speculating if sauerland was referring to KDE-Frameworks being required as well for some reason. In any case, I’m not observing smb4k failing to load.

So do you have 3.1.2-lp154.1.60 installed? That is what I was installing and it crashes every time with that error!

Stuart

Yes, I installed the same version and demonstrated that the symbol in question is undefined, but it does not make the application crash (or unusable) during my tests using it. (I usually just rely on the Dolphin SMB KIO for accessing samba shares in any case.)

FWIW, I have the following KDE repos configured:

1 | KDE-Applications            | KDE-Applications                                                                            | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://
download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_15.4 |  
 2 | KDE-Extra                   | KDE-Extra                                                                                   | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://
download.opensuse.org/repositories/KDE:/Extra/KDE_Applications_openSUSE_Leap_15.4       |  
 3 | KDE-Frameworks              | KDE-Frameworks                                                                              | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://
download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.4 

I forgot to include that I have…

 4 | KDE-Qt5                     | KDE-Qt5                                                                                     | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://
download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.4

No, the Repo I mentioned is not for the OSS Repo, it needs the Framework 5 and QT5 Repo for newer KDE Versions as you have answered ( I name it kf5).

Edit:
Aah, see post 12 and 13…

So, we agree. :wink:

Just searched around and found https://www.reddit.com/r/kde/comments/uc9kr4/after_upgrading_to_plasmashell_to_5244_i_get_a/ which suggests incompatible versions of Plasma and Frameworks but no suggestion of how to fix it. How cold this happen on a new install of Leap 15.4. The only thing which did not change was my home directory, could this cause it? How can I tell if I do have incompatible versions? Plasma Frameworks is 5.90.0-bp154.1.42.

That thread suggested K3b will have the same issue and indeed when I installed it it does crash in exactly the same way with exactly the same error message and symbol!!!

Stuart

Leap 15.4 does not even have smb4k. Do not blame Leap for something you do yourself.

Plasma Frameworks is 5.90.0-bp154.1.42

I do not know what exactly you mean with Plasma Frameworks, but current version of plasma-framework package in [noparse]KDE:Frameworks5[/noparse] is 5.96.0.

Of course not. Nobody said there is smb4k in [noparse]KDE:Frameworks5[/noparse] repository (unfortunately it is again impossible to understand what exactly you mean under “Frameworks”).

So the question is which repository should I be using for SMB4K in Leap 15.4?

The answer is “it depends”. There are two Leap 15.4 repositories in [noparse]KDE:Extra[/noparse] project. One builds against vanilla Leap 15.4 and another builds against [noparse]KDE:Applications[/noparse] which itself builds against [noparse]KDE:Frameworks5[/noparse]. I installed the former and it starts just fine.

10:~ # zypper ar obs://KDE:Extra KDE:Extra
10:~ # zypper in --no-recommends smb4k
bor@10:~> smb4k
Icon theme "breeze" not found.
bor@10:~> 

The latter indeed has issues as of now, this is not unusual - some required packages failed to build, or something changed in structure/version/names/… of required packages so dependent packages fail to build until someone fixed them. So what you have there is outdated smb4k package which has been built against some earlier versions of KDE libraries that are no more available.

The answer is “it depends”. There are two Leap 15.4 repositories in KDE:Extra project. One builds against vanilla Leap 15.4 and another builds against KDE:Applications which itself builds against KDE:Frameworks5. I installed the former and it starts just fine.

I understand and the first one is what I want to use, I can understand if what I want from it has issues and maybe I have to fix that myself but so far I’ve not been able to easily find the Extra repository built against the vanilla 15.4, I thought I’d found it but obviously not and in my view it is not easy to find.

Stuart

@broadstairs:Add the additional KDE repos (refer posts #12 and #13) and upgrade as explained here…

https://en.opensuse.org/SDB:KDE_repositories