This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.4.3 on Solaris9, boehm-gc probs.


On Wed, 6 Apr 2005, Eric Botcazou wrote:

/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:110: error: syntax
error before "_DYNAMIC"
/export/home/Scratch/hgs/gcc-3.4.3/boehm-gc/dyn_load.c:111: error:
`Elf32_Dyn' undeclared (first use in this function)

Elf32_Dyn is supposed to be defined in /usr/include/sys/link.h:

Grep -C 5 gives me: <quote> union { Elf32_Word d_val; Elf32_Addr d_ptr; Elf32_Off d_off; } d_un; } Elf32_Dyn;

#if (defined(_LP64) || ((__STDC__ - 0 == 0) && (!defined(_NO_LONGLONG))))
typedef struct {
	Elf64_Xword d_tag;		/* how to interpret value */
	union {
--
	unsigned long	l_addr;		/* address at which object is mapped */
	char		*l_name;		/* full name of loaded object */
#ifdef _LP64
	Elf64_Dyn	*l_ld;		/* dynamic structure of object */
#else
	Elf32_Dyn	*l_ld;		/* dynamic structure of object */
#endif
	Link_map *	l_next;		/* next link object */
	Link_map *	l_prev;		/* previous link object */
	char		*l_refname;	/* filters reference name */
};
</quote>

typedef struct { Elf32_Sword d_tag; /* how to interpret value */ union { Elf32_Word d_val; Elf32_Addr d_ptr; Elf32_Off d_off; } d_un; } Elf32_Dyn;

Here's what I get with -H:

Sorry? -H applied to what command?

[...]
--
Eric Botcazou


Thank you, Hugh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]