Thread: gdb error

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    12

    gdb error

    I could debug things gdb before this just fine

    I'm using
    c++ -fno-for-scope -fno-const-strings -ggdb3 -o borq ../Source/Utils/loadpng.o BorQueror.o MainContinue.o (Other libs and object files)

    Now.. when I try to debug it,

    gdb borq

    (It segfaults :P)
    I type list, and I get an error:

    (gdb) list
    1 ../sysdeps/i386/elf/start.S: No such file or directory.
    in ../sysdeps/i386/elf/start.S

    This happens on every program actually, all that I've tried anyway, even some that where not compiled on my computer.
    Anyone have any clue as to what's going on?

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    88
    looks like gdb doesnt have the files needed for the elf header structure.

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    12
    Yup, part of glibc..
    I have the newest version of said library
    Worked fine 3 weeks ago..
    No clue what to do short of recompiling and installing it.. but glibc, is sometimes hard to install and can really mess things up.

    Anyone have a clue how I can fix this without reinstalling?

  4. #4
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    rather than recompile use a (dare I say) precompiled binary like an RPM

    I only use RPMs for glibc nothing else.

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    12
    I don't really like RPM.. way too buggy and unstable
    But what I will do.. is open it, and extract the files I'm missing and put them in place.
    I have the newest version of glibc anyway

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM