Re: make fails on ubuntu 11.04 VM,

sandip gangakhedkar <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <CAEPsib3_m+CcBQHDNSuRWG4yxkagx0s_PxL-BOeYhEoY_qwYLg@mail.gmail.com>
Hi (again),

I got it to work after disabling warning-errors. Now when I try to
invoke Insight with gdb -w, I get the foll. error:

Tk_Init failed: Can't find a usable tk.tcl in the following directories:
    /usr/share/tcltk/tk8.4/ /usr/local/share/tk8.4
/usr/local/lib/tk8.4 /usr/lib/tk8.4 /usr/local/library /usr/library
/usr/tk8.4.1/library /tk8.4.1/library

/usr/share/tcltk/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
"bind Listbox <MouseWheel> {
        %W yview scroll [expr {- (%D / 120) * 4}] units
    }"

In my distro (ubuntu), Tk is located at /usr/share/tcltk/tk8.4 so I
added this path to the env variable TK_LIBRARY, but the error
persists. Can someone point out what I am doing wrong here?

Thanks,
Sandip

On Fri, Nov 4, 2011 at 3:47 AM, sandip gangakhedkar
<[email protected]> wrote:
> 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-
>



-- 
-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.