LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2006, 10:49 AM   #1
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
Post Mesa 6.4 - Elf header, .rel.dyn: _gl_context_modes_crea and .dynsym, linker pro


The major differences between the two systems I have are gcc 3.4.5 and gcc-4.1.0

The problematic system is running gcc-4.1.0.

To test the problem I ran the following:
Code:
echo 'int main(){}' >> test.c && gcc -lGL test.c
The problem is that the dynamic linker cannot resolve _gl_context_modes_create and a number to '_gl_context_modes_create' and a few others.
ldd on libGL.so returned no problems.
Looking into the ELF headers I noticed the following:
inside of the .rel.dyn header _gl_context_modes_crea is used.
inside of the .rel.plt header _gl_context_modes_crea is used.
inside of the .dynsym header _gl_context_modes_create is used.
The values shown in the .dynsym are:
Code:
 00000000   0 NOTYPE GLOBAL DEFAULT  UND _gl_context_modes_create
Unsure of why this is happening, I looked at my working system with gcc-3.4.5.
The structure of libGL.so there is different, despite being same versions and almost identical systems.
.rel.dyn header does not contain any reference to _gl_context_modes_crea or _gl_context_modes_create
.rel.plt header also dos not contain those. In fact it contains only two "JUMP_SLOT"'s, whereas the problematic machine has numerous "JUMP_SLOT"'s
.dynsym header contains _gl_context_modes_create and looks like:
Code:
 00027158  261 FUNC GLOBAL_DEFAULT  8 _gl_context_modes_create
I am trying to link thinks like glxgears and other common libGL wanting applications.
Any ideas on how to resolve this, or perhaps to get the problematic system to store the full _gl_context_modes_create (if relevant) or to get the function to be defined as a function in the .dynsym??

Would BIND_NOW resolve this issue?

Last edited by Yerp; 05-10-2006 at 11:04 AM.
 
  


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
"invalid Elf header" after kernel upgrade Goo Slackware 7 10-09-2004 08:32 AM
Invalid ELF header when using Automake/Autoconf Zotty Programming 1 09-17-2004 01:23 PM
snes9x lib and ELF header issues jasondcater Linux - Games 2 05-13-2004 05:28 PM
ELF header trouble great! :( Baran Linux - Newbie 14 09-17-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 AM.

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