error: `som_bfd_is_group_section' undeclared
Michael Elizabeth Chastain
mec.gnu@mindspring.com
Sat May 1 23:56:00 GMT 2004
Hi Alan,
I'm getting a compile error when I build gdb HEAD on native
hppa2.0w-hp-hpux11.11. It's an undeclared symbol,
som_bfd_is_group_section .
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/house/chastain/gdb/s1/bfd -I. -D_GNU_SOURCE -DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE -DHPUX_CORE -I. -I/house/chastain/gdb/s1/bfd -I/house/chastain/gdb/s1/bfd/../include -I/house/chastain/gdb/s1/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /house/chastain/gdb/s1/bfd/som.c
gcc -DHAVE_CONFIG_H -I. -I/house/chastain/gdb/s1/bfd -I. -D_GNU_SOURCE -DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE -DHPUX_CORE -I. -I/house/chastain/gdb/s1/bfd -I/house/chastain/gdb/s1/bfd/../include -I/house/chastain/gdb/s1/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /house/chastain/gdb/s1/bfd/som.c -o som.o
/house/chastain/gdb/s1/bfd/som.c:6463: error: `som_bfd_is_group_section' undeclared here (not in a function)
/house/chastain/gdb/s1/bfd/som.c:6463: error: initializer element is not constant
/house/chastain/gdb/s1/bfd/som.c:6463: error: (near initialization for `som_vec._bfd_is_group_section')
/house/chastain/gdb/s1/bfd/som.c:6469: warning: missing initializer
/house/chastain/gdb/s1/bfd/som.c:6469: warning: (near initialization for `som_vec._bfd_is_group_section')
*** Error exit code 1
It looks like a simple lacuna in this patch:
2004-04-30 Alan Modra <amodra@bigpond.net.au>
* section.c (bfd_make_section_anyway): Add all sections to hash tab.
* elf-bfd.h (bfd_elf_is_group_section): Declare.
* elf.c (bfd_elf_is_group_section): New function.
...
There's a lot of new foo_is_group_section functions,
but none for hpux som.
Michael C
More information about the Gdb
mailing list