Find the answer to your Linux question:
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, ...
  1. #1
    Just 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.
    Code:
    #include <iostream>
    
    int main (int argc, const char *argv [])
    {
      std::cout << "Hello, world\n";
    }
    Build:
    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.
    Umm, that doesn't look too promising, but they are warnings, and an executable was created, so try running it:
    Code:
     ./hello
    ./hello: error while loading shared libraries: ./hello: unsupported version 30277 of Verneed record
    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?

    Oh, let's see:
    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.
    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.

    Thanks for any and all help.

    John

  2. #2
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...