This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Failed to compile GDB-4.17 on Linux


Hello,

I tried to compiled the gdb-4.17 on my Linux-2.0.35 with
glibc-2.0.7pre7 and egcs-1.1, but I failed with following errors:

infptrace.c: In function `attach':
infptrace.c:206: `PTRACE_ATTACH' undeclared (first use in this function)
infptrace.c:206: (Each undeclared identifier is reported only once
infptrace.c:206: for each function it appears in.)
infptrace.c: In function `detach':
infptrace.c:222: `PTRACE_DETACH' undeclared (first use in this function)
make[1]: *** [infptrace.o] Error 1
make[1]: Leaving directory `/usr/src/Gnu/gdb-4.17/gdb'

It seems the related include file has not been recognized as
expected. If someone here has a idea to fix, please enlighten me as
well.

I appreciate.

Best,

--- yan

                      __________ Yan Huang ________________
    .--.  __  .------   Software Engineer, Codonics, Inc.
   / /  \(  )/  ----    17991 Englewood Dr.
  ////  ' \/ ` ---      Middleburg Hts, Ohio 44130, USA
 /  / / :    :--        Email: yan@codonics.com
//      //..\\          WWW: http://www.codonics.com
       ^^^  ^^^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~