Re: make fails on ubuntu 11.04 VM,

sandip gangakhedkar <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <CAEPsib1Ydw1+x2W0hbYnkOi+gSYtR3HedfSfgrTfWyNJ3XthWA@mail.gmail.com>
Hi Keith,

Thanks for your quick reply. I am using the last stable version of
Insight - 6.8-1 and gdb v7.2 (fairly recent).

Maybe, I'll check if the folks at gdb have an answer..

Thanks again for your suggestions.

-Sandip


On Fri, Nov 4, 2011 at 2:36 AM, Keith Seitz <[email protected]> wrote:
> On 11/03/2011 06:11 PM, sandip gangakhedkar wrote:
>
>> cc1: warnings being treated as errors
>> linux-nat.c: In function ‘linux_nat_info_proc_cmd’:
>> linux-nat.c:2879:10: error: ignoring return value of ‘fgets’, declared
>> with attribute warn_unused_result
>> make[2]: *** [linux-nat.o] Error 1
>> make[2]: Leaving directory `/home/sandipg/insight-6.8-1/gdb'
>> make[1]: *** [all-gdb] Error 2
>> make[1]: Leaving directory `/home/sandipg/insight-6.8-1'
>> make: *** [all] Error 2
>> sandipg@sandipg-VirtualBox:~/insight-6.8-1$ make>  makelog
>> cc1: warnings being treated as errors
>> linux-nat.c: In function ‘linux_nat_info_proc_cmd’:
>> linux-nat.c:2879:10: error: ignoring return value of ‘fgets’, declared
>> with attribute warn_unused_result
>> make[2]: *** [linux-nat.o] Error 1
>> make[1]: *** [all-gdb] Error 2
>> make: *** [all] Error 2
>
> That's a gdb error. Normally, I would advise you to try the gdb mailing list
> for better advice, but I suspect you may be attempting to build something
> quite old...
>
> For Insight, definitely grab CVS HEAD or git. If you *really* want a
> release, try grabbing the latest gdb release and copying the gdb/gdbtk and
> libgui folders inside it. But I suspect it will be much easier for you to
> just grab the latest sources. FWIW, I use this daily for my own work.
>
> Or you could pass "--disable-werror" to configure to suppress erroring on
> warnings.
>
> If you need to get your specific error fixed, try emailing the gdb@ mailing
> list.
>
> Keith
>



-- 
-Sandip-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.