public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: error: `som_bfd_is_group_section' undeclared
@ 2004-05-02 21:14 Michael Elizabeth Chastain
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-02 21:14 UTC (permalink / raw)
  To: amodra; +Cc: gdb

It works for me.  gdb builds again.  Thanks!

Michael C

===

	* som.c (som_bfd_is_group_section): Define.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: `som_bfd_is_group_section' undeclared
  2004-05-01 23:56 Michael Elizabeth Chastain
@ 2004-05-02  6:20 ` Alan Modra
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Modra @ 2004-05-02  6:20 UTC (permalink / raw)
  To: Michael Elizabeth Chastain; +Cc: gdb

On Sat, May 01, 2004 at 07:56:37PM -0400, Michael Elizabeth Chastain wrote:
> 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 .

Oops.  The SOM bfd target isn't built with --enable-targets=all, because
it uses host headers (and I found all the places that needed a define by
compiling then fixing errors).

	* som.c (som_bfd_is_group_section): Define.

Index: bfd/som.c
===================================================================
RCS file: /cvs/src/src/bfd/som.c,v
retrieving revision 1.40
diff -u -p -r1.40 som.c
--- bfd/som.c	28 Apr 2004 18:02:48 -0000	1.40
+++ bfd/som.c	2 May 2004 06:04:22 -0000
@@ -1,6 +1,6 @@
 /* bfd back-end for HP PA-RISC SOM objects.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003
+   2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
 
    Contributed by the Center for Software Science at the
@@ -6410,6 +6410,7 @@ som_bfd_link_split_section (abfd, sec)
 
 #define som_bfd_gc_sections		bfd_generic_gc_sections
 #define som_bfd_merge_sections		bfd_generic_merge_sections
+#define som_bfd_is_group_section	bfd_generic_is_group_section
 #define som_bfd_discard_group		bfd_generic_discard_group
 
 const bfd_target som_vec = {

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 3+ messages in thread

* error: `som_bfd_is_group_section' undeclared
@ 2004-05-01 23:56 Michael Elizabeth Chastain
  2004-05-02  6:20 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Elizabeth Chastain @ 2004-05-01 23:56 UTC (permalink / raw)
  To: amodra; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-02 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-02 21:14 error: `som_bfd_is_group_section' undeclared Michael Elizabeth Chastain
  -- strict thread matches above, loose matches on Subject: below --
2004-05-01 23:56 Michael Elizabeth Chastain
2004-05-02  6:20 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).