LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-08-2004, 01:52 PM   #1
Goo
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Rep: Reputation: 0
"invalid Elf header" after kernel upgrade


Hi everyone ... I (obviously) have a problem after upgrading to a new kernel.
I'm running Slack 9.1 amd upgraded from the standart 2.4.22 to 2.6.8.1

there were no problems at all configuring and compiling the new kernel ... but now some of my libraries dont seem to work anymore ... for example my nvidia kernel module (yes I recompiled it for the new kernel) ... the other one not working is libGL

ldconfig gives me the follwing hints:

/usr/lib/libGL.so.1 is not an ELF file - it has the wrong magic bytes at the start.

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

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

ldconfig: /usr/lib/libGLcore.so.1 is not an ELF file (it's always the same error)

ldconfig: /usr/lib/libGLcore.so.1.0.5336 is not an ELF file

ldconfig: /usr/X11R6/lib/libXvMCNVIDIA.so.1.0.5336 is not an ELF file

ldconfig: /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 is not an ELF file

ldconfig: /usr/X11R6/lib/libXvMCNVIDIA.so.1 is not an ELF file

ldconfig: /usr/X11R6/lib/libXvMCNVIDIA.so is not an ELF file

can someone tell me what's wrong and why some things aren't working ? and most of all .. what to do about it

Last edited by Goo; 10-08-2004 at 01:53 PM.
 
Old 10-08-2004, 01:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this might be completely wrong, but do you have a.out support in your new kernel image as well as ELF?
 
Old 10-08-2004, 02:02 PM   #3
Goo
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Original Poster
Rep: Reputation: 0
yes I do ... that's the point I dont get ... it should work :S
 
Old 10-09-2004, 07:13 AM   #4
Goo
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Original Poster
Rep: Reputation: 0
ok ... I found out some more information ...
1. it's not just a problem in 2.6.8.1 anymore ... I also get the same error when I boot my backup kernel (2.4.22)

2. at compile and at boot time I get the following messages:

agpgart: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'
crc32: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'
8390: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'
ne2k_pci: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'
isdn: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'
hisax: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'
ide_scsi: version magic '2.6.8.1 K7 4KSTACKS gcc-3.2' should be '2.6.8.1 SMP preempt K7 4KSTACKS gcc-3.2'

what does that mean ? I deactivated 4k stacks by now and I still get that error.... by the way .. this is just a short list of invalid modules ... there are far more.

I really hope anyone can help!
 
Old 10-09-2004, 07:21 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right so you compiled this kernel from scratch right? by default SMP (multiple cpu support) is normally on, for some odd reason, which i'm assuming is what the kernel configuration was for the older kernel. turning it back on will not have a negative effect, it'll just be ignored. you'd also want to enable preemptive scheduling too.. which i believe is on the same config page.

as a disclaimer i've not seen errors like that before, it just looks implicit that making those changes should make the magic numbers the same.

Oh, maybe i'm reading it a little wrong, and the new kernel's magic is on the left, not the right.... so you might want to disable it instead of enabling it!
 
Old 10-09-2004, 07:27 AM   #6
Goo
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Original Poster
Rep: Reputation: 0
ok .. thanks .. I'll just check what I did before and do the opposite
 
Old 10-09-2004, 08:27 AM   #7
Goo
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Original Poster
Rep: Reputation: 0
ok ... I've just enabled SMP and recompiled the kernel ... and most things work fine now ... I still get some of those errors concerning libGL ... but I haven't noticed any programm that's not working right.
so thanks for the help .... I think I can figure out the rest myself
 
Old 10-09-2004, 08:32 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
cool, suprised i got that to be honest...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpcre invalid ELF header error. geoffd4 Linux - Software 2 01-18-2022 05:12 PM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 02:48 AM
Invalid ELF header when using Automake/Autoconf Zotty Programming 1 09-17-2004 01:23 PM
Linux Emulation problem "ELF file OS ABI invalid Error" man26 *BSD 0 08-03-2004 11:57 PM
How do I get "Kernel Header" files so I can install nVidia drivers Stevetgn Linux - Newbie 4 01-14-2004 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration