Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

media-libs/mesa: getting broken so libraries

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
osti
n00b
n00b
Posts: 11
Joined: Wed Nov 22, 2017 5:47 pm
Contact:
Contact osti
Website

media-libs/mesa: getting broken so libraries

  • Quote

Post by osti » Wed Nov 22, 2017 5:56 pm

On a particular amd64-system, I am failing to emerge media-libs/mesa, both in currently stable 17.0.6 and in latest ~amd64 17.3.0_rc5. Certain so-files are corrupted and contain only ZEROs:

Code: Select all

>>> media-libs/mesa-17.3.0_rc5 merged.
>>> Regenerating /etc/ld.so.cache...
/sbin/ldconfig: /usr/lib64/libGL.so.1.2.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libGL.so.1 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libglapi.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libEGL.so.1 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libEGL.so is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libglapi.so.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libGL.so is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libEGL.so.1.0.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libglapi.so is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib32/libEGL.so.1.0.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib32/libEGL.so.1 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib32/libEGL.so is not an ELF file - it has the wrong magic bytes at the start.


m4600 ~ # file /usr/lib64/libGL.so.1.2.0
/usr/lib64/libGL.so.1.2.0: data
m4600 ~ # hexdump /usr/lib64/libGL.so.1.2.0
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0072230 0000 0000 0000 0000                    
0072238
The emerge itself (~30 minutes) seems fine. Due to these broken libs, other packages fail to emerge / start.

Any advise how I could continue to find the problem?
Top
albright
Advocate
Advocate
User avatar
Posts: 2588
Joined: Sun Nov 16, 2003 6:36 pm
Location: Near Toronto

  • Quote

Post by albright » Thu Nov 23, 2017 12:33 pm

FWIW, I have the same hexdump and my system is working fine

:oops: scratch the above ... not awake yet
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Thu Nov 23, 2017 12:36 pm

albright wrote:FWIW, I have the same hexdump and my system is working fine
Well, i think it add another mystery to his mystery :)
- Why you end up with zeroed file
- Why albright system is working with such a file

Code: Select all

file /usr/lib64/libGL.so.1.2.0 
/usr/lib64/libGL.so.1.2.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
Top
osti
n00b
n00b
Posts: 11
Joined: Wed Nov 22, 2017 5:47 pm
Contact:
Contact osti
Website

  • Quote

Post by osti » Fri Nov 24, 2017 6:22 am

Although I have no idea why, but after certain iterations of
- removing the bad files,
- emerging mesa in different version,
now I got the (currently stable) 17.0.6 to work.

It might be some hardware problem; also the file /etc/conf.d/nfs got zeroed. So far I did not see this for the other many packages I emerged on my big update day.

Edit: After emerging evince, it continues:

Code: Select all

>>> app-text/evince-3.22.1-r1 merged.
>>> Regenerating /etc/ld.so.cache...
/sbin/ldconfig: /usr/lib64/libevview3.so.3 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libevdocument3.so is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libevview3.so is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libevview3.so.3.0.0 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libevdocument3.so.4 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig: /usr/lib64/libevdocument3.so.4.0.0 is not an ELF file - it has the wrong magic bytes at the start.
I might take this to a vote:
[ ] reinstall everything
[ ] trying to re-build within the broken system

memcheck will be run for several hours now...
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Nov 24, 2017 12:44 pm

what fs are you using for /?
Top
osti
n00b
n00b
Posts: 11
Joined: Wed Nov 22, 2017 5:47 pm
Contact:
Contact osti
Website

  • Quote

Post by osti » Fri Nov 24, 2017 12:49 pm

In order to further complicate matters :)

zfs on luks

No related error messages in /var/log/messages / dmesg, and zfs scrub does not complain.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Nov 24, 2017 12:51 pm

osti wrote:In order to further complicate matters :)
Ok i could cast my vote:
- reinstall but with a rock solid fs :)
Top
osti
n00b
n00b
Posts: 11
Joined: Wed Nov 22, 2017 5:47 pm
Contact:
Contact osti
Website

  • Quote

Post by osti » Sun Nov 26, 2017 7:46 am

krinn wrote:- reinstall but with a rock solid fs :)
Well, I will first try with fresh install on pure zfs w/o luks.

I created (= am debugging) an installation script, so let's see what happens.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic