You are not logged in.

#1 2012-02-15 19:08:50

4on6
Member
Registered: 2011-10-05
Posts: 172

[SOLVED] Invalid ELF header

Hi list,
since two or three system updates I frequently receive 'invalid ELF header ' warnings when using pacman, but they don't really caused errors. Now, trying to install mplayer, I get an error:

error while loading shared library
/usr/lib/libsmbclient.so.0: invalid ELF header

There are some reports in Ubuntu forums about this, but searching the arch forum no yielded results. Whats that all about the ELF headers and how to remedy the problem?

Cheers

Last edited by 4on6 (2012-02-15 23:01:15)

Offline

#2 2012-02-15 19:17:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

Have you tried reinstalling smbclient? Maybe it got corrupted.
Is your system up to date?

Offline

#3 2012-02-15 19:38:38

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

karol wrote:

Have you tried reinstalling smbclient? Maybe it got corrupted.
Is your system up to date?

I just updated a few minutes ago. Reinstalling did not work, pacman complains there are about 30 conflicts (files exist in filesystem)

Offline

#4 2012-02-15 19:46:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

Have you tried resolving the 'file exist in filesystem' issue: https://bbs.archlinux.org/viewtopic.php?id=130138 ?

Offline

#5 2012-02-15 20:32:10

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

karol wrote:

Have you tried resolving the 'file exist in filesystem' issue: https://bbs.archlinux.org/viewtopic.php?id=130138 ?

Not yet, its quite a lot of work. I'm half through the list, and they are all false alarms it seems.


(1/1) Prüfe auf Dateikonflikte                                                      [################################################] 100%
Fehler: Konnte den Vorgang nicht durchführen (In Konflikt stehende Dateien)
smbclient: /usr/bin/net existiert im Dateisystem
smbclient: /usr/bin/nmblookup existiert im Dateisystem
smbclient: /usr/bin/rpcclient existiert im Dateisystem
smbclient: /usr/bin/smbcacls existiert im Dateisystem
smbclient: /usr/bin/smbclient existiert im Dateisystem
smbclient: /usr/bin/smbcquotas existiert im Dateisystem
smbclient: /usr/bin/smbget existiert im Dateisystem
smbclient: /usr/bin/smbspool existiert im Dateisystem
smbclient: /usr/bin/smbtar existiert im Dateisystem
smbclient: /usr/bin/smbtree existiert im Dateisystem
smbclient: /usr/include/libsmbclient.h existiert im Dateisystem
smbclient: /usr/include/netapi.h existiert im Dateisystem
smbclient: /usr/lib/cups/backend/smb existiert im Dateisystem
smbclient: /usr/lib/libnetapi.so existiert im Dateisystem
smbclient: /usr/lib/libnetapi.so.0 existiert im Dateisystem
smbclient: /usr/lib/libsmbclient.so existiert im Dateisystem
smbclient: /usr/lib/libsmbclient.so.0 existiert im Dateisystem
smbclient: /usr/lib/libwbclient.so existiert im Dateisystem
smbclient: /usr/lib/libwbclient.so.0 existiert im Dateisystem
smbclient: /usr/share/man/man1/nmblookup.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/rpcclient.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/smbcacls.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/smbclient.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/smbcquotas.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/smbget.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/smbtar.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man1/smbtree.1.gz existiert im Dateisystem
smbclient: /usr/share/man/man7/libsmbclient.7.gz existiert im Dateisystem
Fehler sind aufgetreten, keine Pakete wurden aktualisiert.

[tj@arch ~]$ sudo pacman -Qo /usr/bin/net
Fehler: Kein Paket besitzt /usr/bin/net
[tj@arch ~]$ sudo pacman -Qo /usr/bin/nmblookup 
Fehler: Kein Paket besitzt /usr/bin/nmblookup
[tj@arch ~]$ sudo pacman -Qo /usr/bin/rpcclient 
Fehler: Kein Paket besitzt /usr/bin/rpcclient
[tj@arch ~]$ sudo pacman -Qo /usr/bin/smbcacls 
Fehler: Kein Paket besitzt /usr/bin/smbcacls
[tj@arch ~]$ sudo pacman -Qo /usr/bin/smbcquotas 
Fehler: Kein Paket besitzt /usr/bin/smbcquotas
[tj@arch ~]$ sudo pacman -Qo /usr/bin/smbget 
Fehler: Kein Paket besitzt /usr/bin/smbget
[tj@arch ~]$ sudo pacman -Qo /usr/bin/smbspool 
Fehler: Kein Paket besitzt /usr/bin/smbspool
[tj@arch ~]$ sudo pacman -Qo /usr/bin/smbtar 
Fehler: Kein Paket besitzt /usr/bin/smbtar
[tj@arch ~]$ sudo pacman -Qo /usr/include/libsmbclient.h 
Fehler: Kein Paket besitzt /usr/include/libsmbclient.h
[tj@arch ~]$ sudo pacman -Qo /usr/include/netapi.h 
Fehler: Kein Paket besitzt /usr/include/netapi.h
[tj@arch ~]$ sudo pacman -Qo /usr/include/netapi.h 

Offline

#6 2012-02-15 20:40:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

These files are provided by smbclient. Have you installed smbclient from the repos or some other way?

[karol@black ~]$ nosr /usr/bin/smbcacls
extra/smbclient
[karol@black ~]$ nosr /usr/include/netapi.h
extra/smbclient

Last edited by karol (2012-02-15 20:41:57)

Offline

#7 2012-02-15 20:46:37

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

karol wrote:

These files are provided by smbclient. Have you installed smbclient from the repos or some other way?

[karol@black ~]$ nosr /usr/bin/smbcacls
extra/smbclient
[karol@black ~]$ nosr /usr/include/netapi.h
extra/smbclient

I did not actively install smbclient, must habe been some kind of dependency.
Can't install 'nosr'.

[tj@arch ~]$ sudo pacman -Qo 'which smbclient'
Fehler: Konnte 'which smbclient' in PATH nicht finden: Datei oder Verzeichnis nicht gefunden
[tj@arch ~]$ sudo pacman -Qo 'which libsmbclient'
Fehler: Konnte 'which libsmbclient' in PATH nicht finden: Datei oder Verzeichnis nicht gefunden
[tj@arch ~]$ nosr /usr/bin/smbcacls
bash: nosr: Kommando nicht gefunden.
[tj@arch ~]$ sudo pacman -Ss nosr
[tj@arch ~]$ sudo pacman -Qo 'which smbcacls'
Fehler: Konnte 'which smbcacls' in PATH nicht finden: Datei oder Verzeichnis nicht gefunden

Offline

#8 2012-02-15 20:55:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

nosr-git is in the AUR. https://aur.archlinux.org/packages.php?ID=51938
You can use pkgfile - it does the same thing: https://wiki.archlinux.org/index.php/FA … is_X_in.3F


Do you have /var/lib/pacman/local/smbclient-3.6.3-1/files file?



Edit: You can drop 'which' and do just

[karol@black ~]$ pacman -Qo smbclient
/usr/bin/smbclient is owned by smbclient 3.6.3-1
[karol@black ~]$ pacman -Qo smbcacls
/usr/bin/smbcacls is owned by smbclient 3.6.3-1

since pacman 3.4: http://projects.archlinux.org/pacman.gi … ?id=v3.4.0

If you want to use 'which', do it properly i.e. use backticks, not quotes:

[karol@black ~]$ sudo pacman -Qo `which smbclient`
/usr/bin/smbclient is owned by smbclient 3.6.3-1
[karol@black ~]$ sudo pacman -Qo 'which smbclient'
error: failed to find 'which smbclient' in PATH: No such file or directory

Last edited by karol (2012-02-15 21:01:27)

Offline

#9 2012-02-15 21:04:25

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

Nice tip - now I can reproduce the results,  but my results are different than yours:

[tj@arch ~]$ LC_ALL=C  sudo pacman -Qo smbclient
error: No package owns /usr/bin/smbclient
[tj@arch ~]$ LC_ALL=C  sudo pacman -Qo smbcacls
error: No package owns /usr/bin/smbcacls

its a bit strange - is the package installed or not?

[tj@arch ~]$ LC_ALL=C  sudo pacman -Qi smbclient
Name           : smbclient
Version        : 3.6.3-1
URL            : None
Licenses       : None
Groups         : None
Provides       : None
Depends On     : None
Optional Deps  : None
Required By    : mplayer
Conflicts With : None
Replaces       : None
Installed Size :   0.00 KiB
Packager       : None
Architecture   : None
Build Date     : None
Install Date   : None
Install Reason : Explicitly installed
Install Script : No
Description    : None

Anyway - many thanks for your help and patience so far. 

PS
ups didn't note the 'false' backticks

Last edited by 4on6 (2012-02-15 21:25:40)

Offline

#10 2012-02-15 21:25:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

Do you have /var/lib/pacman/local/smbclient-3.6.3-1/files file?

Offline

#11 2012-02-15 21:30:13

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

karol wrote:

Do you have /var/lib/pacman/local/smbclient-3.6.3-1/files file?

yes:

[tj@arch smbclient-3.6.3-1]$ ls -al
insgesamt 36
drwxr-xr-x   2 root root  4096 11. Feb 11:34 .
drwxr-xr-x 554 root root 28672 15. Feb 19:56 ..
-rw-r--r--   1 root root     0 11. Feb 11:34 desc
-rw-r--r--   1 root root     0 11. Feb 11:34 files

Offline

#12 2012-02-15 21:33:46

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Invalid ELF header

Odd. what about pacman -Ql smbclient?

edit: nevermind.

Last edited by hokasch (2012-02-15 21:35:39)

Offline

#13 2012-02-15 21:33:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

4on6 wrote:
karol wrote:

Do you have /var/lib/pacman/local/smbclient-3.6.3-1/files file?

yes:

[tj@arch smbclient-3.6.3-1]$ ls -al
insgesamt 36
drwxr-xr-x   2 root root  4096 11. Feb 11:34 .
drwxr-xr-x 554 root root 28672 15. Feb 19:56 ..
-rw-r--r--   1 root root     0 11. Feb 11:34 desc
-rw-r--r--   1 root root     0 11. Feb 11:34 files

But it's empty - and that's the problem.
desc file seems empty too.

You can either install smbclient with 'pacman -Sf smbclient' or grab that file from someone and put it in there.


See https://bbs.archlinux.org/viewtopic.php … 19#p978819 for a discussion about merits of using '-f' / '--force' switch ;P

Last edited by karol (2012-02-15 21:36:52)

Offline

#14 2012-02-15 21:41:22

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

I did that (twice - second one with the Englich locale):

[tj@arch smbclient-3.6.3-1]$ LC_ALL=C sudo pacman -Sf smbclient
warning: smbclient-3.6.3-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): smbclient-3.6.3-1

Total Installed Size:   62.56 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                    [################################################] 100%
(1/1) loading package files                                                         [################################################] 100%
(1/1) upgrading smbclient                                                           [################################################] 100%
ldconfig: /usr/lib/libxvidcore.so.4 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libxvidcore.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libxvidcore.so.4.3 is not an ELF file - it has the wrong magic bytes at the start.

still some ELF complain - but maybe not serious?
I try to install mplayer again .... lets see

It did not help - now its another library with the same problem:

[tj@arch smbclient-3.6.3-1]$ LC_ALL=C sudo pacman -S mplayer
warning: mplayer-34426-3 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): mplayer-34426-3

Total Installed Size:   1.47 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                                    [################################################] 100%
(1/1) loading package files                                                         [################################################] 100%
(1/1) checking for file conflicts                                                   [################################################] 100%
(1/1) upgrading mplayer                                                             [################################################] 100%
ldconfig: /usr/lib/libxvidcore.so.4 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libxvidcore.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libxvidcore.so.4.3 is not an ELF file - it has the wrong magic bytes at the start.

[tj@arch smbclient-3.6.3-1]$ mplayer
mplayer: error while loading shared libraries: /usr/lib/libxvidcore.so.4: invalid ELF header

Last edited by 4on6 (2012-02-15 21:43:53)

Offline

#15 2012-02-15 21:47:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

[karol@black ~]$ nosr /usr/lib/libxvidcore.so.4
extra/xvidcore

What exactly happened to your computer? Power loss?

Offline

#16 2012-02-15 21:50:39

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

karol wrote:
[karol@black ~]$ nosr /usr/lib/libxvidcore.so.4
extra/xvidcore

What exactly happened to your computer? Power loss?

Hmm .... the only thing I remember is a problem with tmux where my screen turned black, and everything was stuck, so I had to do a cold start. Might that be the culprit? What does that mean - is it serious? What to do?

Offline

#17 2012-02-15 21:54:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Invalid ELF header

I have no idea how to fix it all.

What's the output of

pacman -Qo smbcacls

now?

Offline

#18 2012-02-15 21:58:35

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

karol wrote:

I have no idea how to fix it all.

What's the output of

pacman -Qo smbcacls

now?

its:

[tj@arch smbclient-3.6.3-1]$ LC_ALL=C sudo pacman -Qo smbcacls
/usr/bin/smbcacls is owned by smbclient 3.6.3-1

Offline

#19 2012-02-15 22:13:35

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Invalid ELF header

I reinstalled the xvidcore library too - and now mplayer works!

Thank you very much for your effort and patience - I would have been lost without your help.
Cheers
Thorsten

Last edited by 4on6 (2012-02-15 23:00:15)

Offline

Board footer

Powered by FluxBB