This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB 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]

gdb/518: build failure, irix 5.3, `anon_hdl' undefined



>Number:         518
>Category:       gdb
>Synopsis:       build failure, irix 5.3, `anon_hdl' undefined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 30 11:08:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     ralfixx@gmx.de
>Release:        gdb 5.2
>Organization:
>Environment:
irix 5.3, gcc 2.7.2.1
>Description:
gmake
...
gcc -c -O    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  proc-api.c
In file included from /usr/include/sys/proc.h:138,
                 from proc-api.c:39:
/usr/include/sys/region.h:75: parse error before `anon_hdl'
/usr/include/sys/region.h:75: warning: no semicolon at end of struct or union
/usr/include/sys/region.h:77: parse error before `}'
/usr/include/sys/region.h:77: warning: data definition has no type or storage class
/usr/include/sys/region.h:342: parse error before `sysreg'
/usr/include/sys/region.h:342: warning: data definition has no type or storage class
/usr/include/sys/region.h:348: parse error before `*'
/usr/include/sys/region.h:348: warning: data definition has no type or storage class
/usr/include/sys/region.h:351: parse error before `*'
/usr/include/sys/region.h:354: parse error before `*'
/usr/include/sys/region.h:373: parse error before `*'
/usr/include/sys/region.h:373: warning: data definition has no type or storage class
/usr/include/sys/region.h:437: parse error before `reg_t'
gmake: *** [proc-api.o] Error 1

Compilation exited abnormally with code 2 at Tue Apr 30 18:23:33


Reason:

sys/region.h:

    typedef	struct	region	{
       ...
      anon_hdl	r_anon;		/* Handle to anon memory manager.     */
      ...
    } reg_t;


Which is wrapped in #if defined in sys/types.h
	#if defined(_KERNEL) || defined(_STANDALONE) || defined(_KMEMUSER)
    --<snip-snip>--
	/*
	 * Internal Kernel types only
	 */
	typedef struct anon *	anon_hdl;	/* anon manager handle */

>How-To-Repeat:

>Fix:
Workaround: CFLAGS+=-D_KMEMUSER
>Release-Note:
>Audit-Trail:
>Unformatted:


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