Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Error in gdb make
       [not found] <27150072.194981249490623195.JavaMail.root@zimbra>
@ 2009-08-05 16:50 ` Praveen S. Solanki
  2009-08-05 17:18   ` Grant Edwards
  2009-08-05 17:18   ` Tom Tromey
  0 siblings, 2 replies; 10+ messages in thread
From: Praveen S. Solanki @ 2009-08-05 16:50 UTC (permalink / raw)
  To: gdb

It seems that the newer libc don't consider it appropriate if the return values of libc function is not used. This causes make to fail. 

Thanks and regards
Praveen


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

* Re: Error in gdb make
  2009-08-05 16:50 ` Error in gdb make Praveen S. Solanki
  2009-08-05 17:18   ` Grant Edwards
@ 2009-08-05 17:18   ` Tom Tromey
  2009-08-05 17:35     ` Pedro Alves
  1 sibling, 1 reply; 10+ messages in thread
From: Tom Tromey @ 2009-08-05 17:18 UTC (permalink / raw)
  To: Praveen S. Solanki; +Cc: gdb

>>>>> "Praveen" == Praveen S Solanki <psolanki@ccs.neu.edu> writes:

Praveen> It seems that the newer libc don't consider it appropriate if
Praveen> the return values of libc function is not used. This causes
Praveen> make to fail.

Please be more specific.  What exact error?  What compiler?  What
operating system?

Tom


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

* Re: Error in gdb make
  2009-08-05 16:50 ` Error in gdb make Praveen S. Solanki
@ 2009-08-05 17:18   ` Grant Edwards
  2009-08-05 17:37     ` Tom Tromey
  2009-08-05 17:18   ` Tom Tromey
  1 sibling, 1 reply; 10+ messages in thread
From: Grant Edwards @ 2009-08-05 17:18 UTC (permalink / raw)
  To: gdb

On 2009-08-05, Praveen S. Solanki <psolanki@ccs.neu.edu> wrote:

> It seems that the newer libc don't consider it appropriate if
> the return values of libc function is not used. This causes
> make to fail.

How libc can enforce such a "consideration" on usage of return
values?

-- 
Grant Edwards                   grante             Yow! I wonder if I could
                                  at               ever get started in the
                               visi.com            credit world?


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

* Re: Error in gdb make
  2009-08-05 17:18   ` Tom Tromey
@ 2009-08-05 17:35     ` Pedro Alves
  2009-08-05 17:39       ` Praveen S. Solanki
  0 siblings, 1 reply; 10+ messages in thread
From: Pedro Alves @ 2009-08-05 17:35 UTC (permalink / raw)
  To: gdb, tromey; +Cc: Praveen S. Solanki

On Wednesday 05 August 2009 18:16:44, Tom Tromey wrote:
> >>>>> "Praveen" == Praveen S Solanki <psolanki@ccs.neu.edu> writes:
> 
> Praveen> It seems that the newer libc don't consider it appropriate if
> Praveen> the return values of libc function is not used. This causes
> Praveen> make to fail.
> 
> Please be more specific.  What exact error?  What compiler?  What
> operating system?

... and what GDB version.  It sounds like he's referring to warnings
from glibc's (ab)use of warn_unused_result, which Jim Blandy
fixed months ago:

 http://sourceware.org/ml/gdb-patches/2008-12/msg00243.html
 http://sourceware.org/ml/gdb-patches/2009-01/msg00050.html

-- 
Pedro Alves


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

* Re: Error in gdb make
  2009-08-05 17:18   ` Grant Edwards
@ 2009-08-05 17:37     ` Tom Tromey
  0 siblings, 0 replies; 10+ messages in thread
From: Tom Tromey @ 2009-08-05 17:37 UTC (permalink / raw)
  To: Grant Edwards; +Cc: gdb

>>>>> "Grant" == Grant Edwards <grant.b.edwards@gmail.com> writes:

Grant> On 2009-08-05, Praveen S. Solanki <psolanki@ccs.neu.edu> wrote:
>> It seems that the newer libc don't consider it appropriate if
>> the return values of libc function is not used. This causes
>> make to fail.

Grant> How libc can enforce such a "consideration" on usage of return
Grant> values?

GCC has a `warn_unused_result' attribute.

Tom


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

* Re: Error in gdb make
  2009-08-05 17:35     ` Pedro Alves
@ 2009-08-05 17:39       ` Praveen S. Solanki
  2009-08-05 17:43         ` David Daney
  2009-08-05 17:45         ` Pedro Alves
  0 siblings, 2 replies; 10+ messages in thread
From: Praveen S. Solanki @ 2009-08-05 17:39 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb

gdb version: 6.8
----- Original Message -----
From: "Pedro Alves" <pedro@codesourcery.com>
To: gdb@sourceware.org, tromey@redhat.com
Cc: "Praveen S. Solanki" <psolanki@ccs.neu.edu>
Sent: Wednesday, August 5, 2009 1:35:22 PM GMT -05:00 US/Canada Eastern
Subject: Re: Error in gdb make

On Wednesday 05 August 2009 18:16:44, Tom Tromey wrote:
> >>>>> "Praveen" == Praveen S Solanki <psolanki@ccs.neu.edu> writes:
> 
> Praveen> It seems that the newer libc don't consider it appropriate if
> Praveen> the return values of libc function is not used. This causes
> Praveen> make to fail.
> 
> Please be more specific.  What exact error?  What compiler?  What
> operating system?

... and what GDB version.  It sounds like he's referring to warnings
from glibc's (ab)use of warn_unused_result, which Jim Blandy
fixed months ago:

 http://sourceware.org/ml/gdb-patches/2008-12/msg00243.html
 http://sourceware.org/ml/gdb-patches/2009-01/msg00050.html

-- 
Pedro Alves


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

* Re: Error in gdb make
  2009-08-05 17:39       ` Praveen S. Solanki
@ 2009-08-05 17:43         ` David Daney
  2009-08-05 17:45         ` Pedro Alves
  1 sibling, 0 replies; 10+ messages in thread
From: David Daney @ 2009-08-05 17:43 UTC (permalink / raw)
  To: Praveen S. Solanki; +Cc: Pedro Alves, gdb

Praveen S. Solanki wrote:
> gdb version: 6.8

Does the --disable-werror configure option work in gdb?

David Daney

> ----- Original Message -----
> From: "Pedro Alves" <pedro@codesourcery.com>
> To: gdb@sourceware.org, tromey@redhat.com
> Cc: "Praveen S. Solanki" <psolanki@ccs.neu.edu>
> Sent: Wednesday, August 5, 2009 1:35:22 PM GMT -05:00 US/Canada Eastern
> Subject: Re: Error in gdb make
> 
> On Wednesday 05 August 2009 18:16:44, Tom Tromey wrote:
>>>>>>> "Praveen" == Praveen S Solanki <psolanki@ccs.neu.edu> writes:
>> Praveen> It seems that the newer libc don't consider it appropriate if
>> Praveen> the return values of libc function is not used. This causes
>> Praveen> make to fail.
>>
>> Please be more specific.  What exact error?  What compiler?  What
>> operating system?
> 
> ... and what GDB version.  It sounds like he's referring to warnings
> from glibc's (ab)use of warn_unused_result, which Jim Blandy
> fixed months ago:
> 
>  http://sourceware.org/ml/gdb-patches/2008-12/msg00243.html
>  http://sourceware.org/ml/gdb-patches/2009-01/msg00050.html
> 


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

* Re: Error in gdb make
  2009-08-05 17:39       ` Praveen S. Solanki
  2009-08-05 17:43         ` David Daney
@ 2009-08-05 17:45         ` Pedro Alves
  2009-08-05 19:20           ` Praveen S. Solanki
  1 sibling, 1 reply; 10+ messages in thread
From: Pedro Alves @ 2009-08-05 17:45 UTC (permalink / raw)
  To: gdb; +Cc: Praveen S. Solanki

On Wednesday 05 August 2009 18:39:02, Praveen S. Solanki wrote:
> gdb version: 6.8

GDB 6.8 was released in early 2008.  I think we missed
disable -Werror in that release.

> Pedro Alves wrote:
>
> ... and what GDB version.  It sounds like he's referring to warnings
> from glibc's (ab)use of warn_unused_result, which Jim Blandy
> fixed months ago:
> 
>  http://sourceware.org/ml/gdb-patches/2009-01/msg00050.html

                                        ^^^^^^^

2009-01 > 2008-xx.

Either try a recent GDB snapshot, or build 6.8 with "-Wno-unused-result"
added to CFLAGS, or configure with --disable-werror.

-- 
Pedro Alves


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

* Re: Error in gdb make
  2009-08-05 17:45         ` Pedro Alves
@ 2009-08-05 19:20           ` Praveen S. Solanki
  0 siblings, 0 replies; 10+ messages in thread
From: Praveen S. Solanki @ 2009-08-05 19:20 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb

Thanks
----- Original Message -----
From: "Pedro Alves" <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: "Praveen S. Solanki" <psolanki@ccs.neu.edu>
Sent: Wednesday, August 5, 2009 1:45:33 PM GMT -05:00 US/Canada Eastern
Subject: Re: Error in gdb make

On Wednesday 05 August 2009 18:39:02, Praveen S. Solanki wrote:
> gdb version: 6.8

GDB 6.8 was released in early 2008.  I think we missed
disable -Werror in that release.

> Pedro Alves wrote:
>
> ... and what GDB version.  It sounds like he's referring to warnings
> from glibc's (ab)use of warn_unused_result, which Jim Blandy
> fixed months ago:
> 
>  http://sourceware.org/ml/gdb-patches/2009-01/msg00050.html

                                        ^^^^^^^

2009-01 > 2008-xx.

Either try a recent GDB snapshot, or build 6.8 with "-Wno-unused-result"
added to CFLAGS, or configure with --disable-werror.

-- 
Pedro Alves


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

* Re: Error in gdb make
       [not found] <1828042.196111249493383936.JavaMail.root@zimbra>
@ 2009-08-05 17:33 ` Praveen S. Solanki
  0 siblings, 0 replies; 10+ messages in thread
From: Praveen S. Solanki @ 2009-08-05 17:33 UTC (permalink / raw)
  To: tromey; +Cc: gdb

Sure Tom.

Error message type:
inflow.c:548: error: ignoring return value of ‘dup’, declared with attribute warn_unused_result  

OS:
Linux galaga 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009 i686 GNU/Linux

libc version:
2.9

gcc version:
4.3.3

Thanks and regards
Praveen

----- Original Message -----
From: "Tom Tromey" <tromey@redhat.com>
To: "Praveen S. Solanki" <psolanki@ccs.neu.edu>
Cc: "gdb" <gdb@sourceware.org>
Sent: Wednesday, August 5, 2009 1:16:44 PM GMT -05:00 US/Canada Eastern
Subject: Re: Error in gdb make

>>>>> "Praveen" == Praveen S Solanki <psolanki@ccs.neu.edu> writes:

Praveen> It seems that the newer libc don't consider it appropriate if
Praveen> the return values of libc function is not used. This causes
Praveen> make to fail.

Please be more specific.  What exact error?  What compiler?  What
operating system?

Tom


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

end of thread, other threads:[~2009-08-05 19:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <27150072.194981249490623195.JavaMail.root@zimbra>
2009-08-05 16:50 ` Error in gdb make Praveen S. Solanki
2009-08-05 17:18   ` Grant Edwards
2009-08-05 17:37     ` Tom Tromey
2009-08-05 17:18   ` Tom Tromey
2009-08-05 17:35     ` Pedro Alves
2009-08-05 17:39       ` Praveen S. Solanki
2009-08-05 17:43         ` David Daney
2009-08-05 17:45         ` Pedro Alves
2009-08-05 19:20           ` Praveen S. Solanki
     [not found] <1828042.196111249493383936.JavaMail.root@zimbra>
2009-08-05 17:33 ` Praveen S. Solanki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox