Re: GDB 5.0 on FreeBSD 3.4

Daniel Berlin
2000-05-25T10:35:00Z

FREEBSD_ELF needs to be defined.
Also, you are using the CVS version of GDB, where FreeBSD support was just
checked in, right?
And not 5.0 release?
If you are using 5.0 release, it won't work.

On Thu, 25 May 2000, Chad Walker wrote:

> Hey guys,
>
> I am having a problem building 5.0 on i386-unknown-freebsdelf3.4
> In the file gdb-5.0/gdb/solib.c. It looks to me like there's some #define or
> macro that is not right for elf based fbsd, and that's making it #include
> the wrong file. Since I am not very familar with the gdb code, I thought I'd
> ask here if anyone has come across it, or has a fbsd3.4 machine they could
> try it on. Thanks for any suggestions.
>
> -chad
>
> Here's the output from gmake:
> 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 -
> I./tui -DUSE_INCLUDED_REGEX solib.c
> solib.c: In function `solib_map_sections':
> solib.c:369: structure has no member named `som_addr'
> solib.c:369: structure has no member named `som_addr'
> solib.c:370: structure has no member named `som_addr'
> solib.c:370: structure has no member named `som_addr'
> solib.c: In function `solib_add_common_symbols':
> solib.c:431: storage size of `inferior_rtc_symb' isn't known
> solib.c: In function `first_link_map_member':
> solib.c:896: sizeof applied to an incomplete type
> solib.c:897: invalid use of undefined type `struct _dynamic'
> solib.c:901: invalid use of undefined type `struct _dynamic'
> solib.c:901: invalid use of undefined type `struct _dynamic'
> solib.c:902: sizeof applied to an incomplete type
> solib.c:903: invalid use of undefined type `struct section_dispatch_table'
> solib.c:903: invalid use of undefined type `struct section_dispatch_table'
> solib.c: In function `current_sos':
> solib.c:1099: structure has no member named `som_next'
> solib.c:1099: structure has no member named `som_next'
> solib.c:1114: structure has no member named `som_path'
> solib.c:1114: structure has no member named `som_path'
> solib.c: In function `symbol_add_stub':
> solib.c:1181: structure has no member named `som_addr'
> solib.c:1181: structure has no member named `som_addr'
> solib.c: In function `info_sharedlibrary_command':
> solib.c:1508: structure has no member named `som_addr'
> solib.c:1508: structure has no member named `som_addr'
> solib.c: In function `solib_address':
> solib.c:1555: structure has no member named `som_addr'
> solib.c:1555: structure has no member named `som_addr'
> solib.c: In function `disable_break':
> solib.c:1662: sizeof applied to an incomplete type
> solib.c:1668: invalid use of undefined type `struct so_debug'
> solib.c:1668: invalid use of undefined type `struct so_debug'
> solib.c:1669: invalid use of undefined type `struct so_debug'
> solib.c:1670: invalid use of undefined type `struct so_debug'
> solib.c: In function `enable_break':
> solib.c:1754: sizeof applied to an incomplete type
> solib.c:1763: invalid use of undefined type `struct _dynamic'
> solib.c:1763: invalid use of undefined type `struct _dynamic'
> solib.c:1767: invalid use of undefined type `struct so_debug'
> solib.c: In function `special_symbol_handling':
> solib.c:2053: sizeof applied to an incomplete type
> solib.c:2064: invalid use of undefined type `struct _dynamic'
> solib.c:2064: invalid use of undefined type `struct _dynamic'
> solib.c:2071: sizeof applied to an incomplete type
> solib.c:2077: invalid use of undefined type `struct so_debug'
> solib.c:2079: invalid use of undefined type `struct so_debug'
> solib.c:2079: invalid use of undefined type `struct so_debug'
> solib.c: At top level:
> solib.c:128: storage size of `dynamic_copy' isn't known
> solib.c:129: storage size of `ld_2_copy' isn't known
> solib.c:130: storage size of `debug_copy' isn't known
> gmake[1]: *** [solib.o] Error 1
> gmake[1]: Leaving directory `/home/cwalker/gdb-5.0/gdb'
> gmake: *** [all-gdb] Error 2
>