From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15639 invoked by alias); 4 Nov 2011 03:54:39 -0000 Received: (qmail 15630 invoked by uid 22791); 4 Nov 2011 03:54:38 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gx0-f169.google.com (HELO mail-gx0-f169.google.com) (209.85.161.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Nov 2011 03:54:02 +0000 Received: by ggnh4 with SMTP id h4so2358501ggn.0 for ; Thu, 03 Nov 2011 20:54:01 -0700 (PDT) Received: by 10.50.41.196 with SMTP id h4mr8752191igl.42.1320378841186; Thu, 03 Nov 2011 20:54:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.33.12 with HTTP; Thu, 3 Nov 2011 20:53:40 -0700 (PDT) In-Reply-To: References: <4EB341A1.2070201@redhat.com> From: sandip gangakhedkar Date: Fri, 04 Nov 2011 03:54:00 -0000 Message-ID: Subject: Re: make fails on ubuntu 11.04 VM, To: Keith Seitz Cc: insight@sourceware.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00004.txt.bz2 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 { %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 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 wrote: >> On 11/03/2011 06:11 PM, sandip gangakhedkar wrote: >> >>> cc1: warnings being treated as errors >>> linux-nat.c: In function =91linux_nat_info_proc_cmd=92: >>> linux-nat.c:2879:10: error: ignoring return value of =91fgets=92, decla= red >>> 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> =A0makelog >>> cc1: warnings being treated as errors >>> linux-nat.c: In function =91linux_nat_info_proc_cmd=92: >>> linux-nat.c:2879:10: error: ignoring return value of =91fgets=92, decla= red >>> 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 a= nd >> 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@ mail= ing >> list. >> >> Keith >> > > > > -- > -Sandip- > --=20 -Sandip-