Subject: gdb fails to build on pmax (elf)
To: None <current-users@netbsd.org>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: current-users
Date: 12/20/1998 19:31:48
When building gdb on a current NetBSD/pmax, I get the following:


cc -O  -Werror   -I/usr/src/gnu/usr.bin/gdb/obj.pmax -I/usr/src/gnu/usr.bin/gdb -I/usr/src/gnu/usr.bin/gdb/../../dist/gdb -I/usr/src/gnu/usr.bin/gdb/../../dist/gdb/config -I/usr/src/gnu/usr.bin/gdb/../../dist/readline -I/usr/src/gnu/lib/bfd/obj.pmax -I/usr/src/gnu/usr.bin/gdb/../../dist/bfd -I/usr/src/gnu/usr.bin/gdb/../../dist/include -DNO_MMALLOC -c /usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c:139: field `lm' has incomplete type
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c: In function `first_link_map_member':
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c:819: sizeof applied to an incomplete type
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c:823: invalid use of undefined type `struct r_debug'
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c: In function `find_solib':
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c:887: sizeof applied to an incomplete type
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c:918: sizeof applied to an incomplete type
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c: At top level:
/usr/src/gnu/usr.bin/gdb/../../dist/gdb/solib.c:132: storage size of `debug_copy' isn't known
*** Error code 1

This has happened during the last few weeks, and I wonder whether gdb is
supposed to build on a pmax for the time being -- or if I have done
something wrong, e.g by missing a header.

- Erik Bertelsen