I'm trying to compile gdb 5.2 with gcc 2.95.3, glibc 2.1.3, and I'm getting
the following error:
gcc -c -g -O2    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode
-I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl
-DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized  thread-db.c
In file included from /usr/include/asm/ptrace.h:12,
                 from /usr/include/linux/ptrace.h:24,
                 from /usr/include/asm/user.h:13,
                 from /usr/include/sys/user.h:22,
                 from /usr/include/sys/procfs.h:31,
                 from gdb_proc_service.h:31,
                 from thread-db.c:25:
/usr/include/asm/s390-regs-common.h:20: warning: `REGISTER_SIZE' redefined
gdbarch.h:676: warning: this is the location of the previous definition
/usr/include/asm/s390-regs-common.h:101: warning: `ADDR_BITS_REMOVE'
redefined
gdbarch.h:2126: warning: this is the location of the previous definition
In file included from /usr/include/string.h:346,
                 from ../include/obstack.h:147,
                 from symtab.h:28,
                 from value.h:277,
                 from breakpoint.h:26,
                 from gdbthread.h:29,
                 from thread-db.c:29:
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:419: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:427: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:432: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:437: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:439: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:444: warning: pointer of type `void *' used in
arithmetic
thread-db.c: In function `thread_db_fetch_registers':
thread-db.c:804: cannot convert to a pointer type
thread-db.c: In function `thread_db_store_registers':
thread-db.c:837: cannot convert to a pointer type
make[1]: *** [thread-db.o] Error 1
make[1]: Leaving directory `/tmp/build-gdb-5.2.1-s390-1/gdb-5.2.1/gdb'
make: *** [all-gdb] Error 2


I tried doing a search on gdb and "cannot convert to a pointer type," but
nothing useful came up.  Has anyone tried to do this?  Am I going to have to
use gcc 3.x for this?  :(

Mark Post

Reply via email to