Results 1 to 2 of 2
I recently installed Fedora 15 on a new laptop (after, of course, deleting the pre-installed virus that came with the laptop). I installed the normal suite of tools using yum, ...
- 07-08-2011 #1Just Joined!
- Join Date
- May 2005
- Posts
- 4
unsupported version 30277 of Verneed record
I recently installed Fedora 15 on a new laptop (after, of course, deleting the pre-installed virus that came with the laptop). I installed the normal suite of tools using yum, including gcc. However, I cannot even build and run Hello World, so now I really feel like I don't know what's going on.
Build:Code:#include <iostream> int main (int argc, const char *argv []) { std::cout << "Hello, world\n"; }
Umm, that doesn't look too promising, but they are warnings, and an executable was created, so try running it:Code:g++ -o main.o main.cc -g -Wall -pedantic g++ -o hello main.o -g -Wall -pedantic -nostartfiles /usr/bin/ld: warning: Cannot create .note.gnu.build-id section, --build-id ignored. /usr/bin/ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr ignored. /usr/bin/ld: error in main.o(.eh_frame); no .eh_frame_hdr table will be created.
Ouch! I have not had any success understanding what is wrong from googling, so I am now trying it here. Can anyone tell me what I am doing wrong, and how I might fix it?Code:./hello ./hello: error while loading shared libraries: ./hello: unsupported version 30277 of Verneed record
Oh, let's see:
I ran 'yum -y update' just before producing all this. Let me know if there is more info that I need to give in order to debug this.Code:> uname -a Linux readingj 2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux > g++ --version g++ (GCC) 4.6.0 20110530 (Red Hat 4.6.0-9) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks for any and all help.
John
- 07-10-2011 #2Just Joined!
- Join Date
- May 2005
- Posts
- 4
Solved
Some days I wonder why I bother chewing through the straps.
My error was pretty fundamental - If you look at the line that produces "hello.o" you will see that I left off the -c option, thus leading to all of my bizarre results.
I never did learn what verneed is.


Reply With Quote