pending/2100: Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pending/2100: Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but

John David Anglin-4

>Number:         2100
>Category:       pending
>Synopsis:       Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Wed Mar 08 16:38:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:    
>Release:        
>Organization:
>Environment:
>Description:
 > The error was with gcc-3.4.5.  The attached change appears to fix
 > the problem.  However, then I hit:
 >
 > gcc -c -g -O2 -DPA_SOM_ONLY=1   -I. -I../../src/gdb -I../../src/gdb/config -DLOC
 > ALEDIR="\"/opt/gnu/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/op
 > code -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/
 > gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit
 > -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wfor
 > mat-nonliteral -Wunused-label -Wunused-function -Wuninitialized -Werror ../../sr
 > c/gdb/ser-tcp.c
 > ../../src/gdb/ser-tcp.c: In function `net_open':
 > ../../src/gdb/ser-tcp.c:209: warning: passing arg 5 of `getsockopt' from incompa
 > tible pointer type
 > make[2]: *** [ser-tcp.o] Error 1
 
 The problem is the `socklen_t' type is only correct for `getsockopt'
 when _XOPEN_SOURCE_EXTENDED is defined.  GCC defines this automatically
 on HP-UX 10.10 and later in 4.0.0 and later, but it's needed in earlier
 versions of GCC.
 
 Dave
 --
 J. David Anglin                                  [hidden email]
 National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
Reply | Threaded
Open this post in threaded view
|

pending/2101: Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but

Randolph Chung

>Number:         2101
>Category:       pending
>Synopsis:       Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Wed Mar 08 23:48:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:    
>Release:        
>Organization:
>Environment:
>Description:
 > The problem is the `socklen_t' type is only correct for `getsockopt'
 > when _XOPEN_SOURCE_EXTENDED is defined.  GCC defines this automatically
 > on HP-UX 10.10 and later in 4.0.0 and later, but it's needed in earlier
 > versions of GCC.
 
 Ah, thanks. I mentioned this problem on the gdb list a few days ago.
 I'll look into fixing this (and your original reported problem)
 
 randolph
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: