This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


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

Re: Build failure on Linux/i686


   From: Andreas Jaeger <aj@suse.de>
   Date: 10 Feb 2000 19:31:56 +0100


   On Linux I get the following error messages with the current CVS
   version [1]:

   /opt/gcc-2.95/bin/gcc -c -g -O2 -W -Wall    -I. -I/cvs/binutils-gdb-ln/gdb -I/cvs/binutils-gdb-ln/gdb/config -DHAVE_CONFIG_H -I/cvs/binutils-gdb-ln/gdb/../include/opcode -I/cvs/binutils-gdb-ln/gdb/../readline/.. -I../bfd -I/cvs/binutils-gdb-ln/gdb/../bfd  -I/cvs/binutils-gdb-ln/gdb/../include -I../intl -I/cvs/binutils-gdb-ln/gdb/../intl -I/cvs/binutils-gdb-ln/gdb/tui    /cvs/binutils-gdb-ln/gdb/lin-thread.c
   In file included from /cvs/binutils-gdb-ln/gdb/lin-thread.c:116:
   /cvs/binutils-gdb-ln/gdb/gdb_proc_service.h:15: conflicting types for `lwpid_t'
   /usr/include/sys/procfs.h:109: previous declaration of `lwpid_t'
   /cvs/binutils-gdb-ln/gdb/gdb_proc_service.h:17: conflicting types for `psaddr_t'
   /usr/include/sys/procfs.h:101: previous declaration of `psaddr_t'
   /cvs/binutils-gdb-ln/gdb/gdb_proc_service.h:20: warning: redefinition of `prgregset_t'
   /usr/include/sys/procfs.h:104: warning: `prgregset_t' previously declared here
   /cvs/binutils-gdb-ln/gdb/gdb_proc_service.h:21: warning: redefinition of `prfpregset_t'
   /usr/include/sys/procfs.h:105: warning: `prfpregset_t' previously declared here
   [lots of warnings omitted]

   I'm running glibc 2.1.3pre3 on Linux 2.3.42 on an i686.

This is the solution I proposed:

   http://sourceware.cygnus.com/ml/gdb-patches/2000-q1/msg00103.html

Note that you'll need to patch <sys/procfs.h> too, otherwise GDB will
segfault when you try to debug a multithreaded app!

Mark

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