From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7750 invoked by alias); 30 Apr 2009 05:44:47 -0000 Received: (qmail 7736 invoked by uid 22791); 30 Apr 2009 05:44:46 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Apr 2009 05:44:42 +0000 Received: by ti-out-0910.google.com with SMTP id a1so169412tib.12 for ; Wed, 29 Apr 2009 22:44:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.110.90.9 with SMTP id n9mr90140tib.40.1241070279032; Wed, 29 Apr 2009 22:44:39 -0700 (PDT) In-Reply-To: <49F4C98B.2000609@apogeect.com> References: <49F4C98B.2000609@apogeect.com> Date: Thu, 30 Apr 2009 08:02:00 -0000 Message-ID: Subject: Re: Experiences building and using gdb 6.8 on Solaris From: Hui Zhu To: Frank Middleton Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00227.txt.bz2 Hi Frank, Could you try your issue with gdb-cvs-head version? You can get it in ftp://sourceware.org/pub/gdb/snapshots/current/ . Thanks, Hui On Mon, Apr 27, 2009 at 04:52, Frank Middleton wrote: > Not sure if this is the correct list, but maybe someone here is interested > in some Solaris issues > > This is on snv103 (SunOS 5.11) for SPARC, with make aliased to gmake. > > Biggest problem is that make distclean doesn't remove any of the cache > files, so the make fails miserably if, for example, you change LDFLAGS. > > In order to get it to build, it was necessary to get the latest ncurses, > and to build that --with-shared, and, as usual, remember not to use > Solaris /bin/sh. > > The motivation to build the latest gdb is the following error with > GNU gdb 6.3.50_2004-11-23-cvs > ... > elfread.c:366: internal-error: sect_index_data not initialized > ... > > but, alas, it still fails with GNU gdb 6.8 > ... > elfread.c:424: internal-error: sect_index_data not initialized > A problem internal to GDB has been detected, > further debugging may prove unreliable. > > Aside from the optimism of the last line (further debugging appears > to be impossible), is this a known problem? It is proving to be rather > difficult to make a simple test case, and extensive Googling found > little other than that something similar had been fixed a while ago. > > Gdb runs simple executables just fine. The problem comes when linking > and running an executable containing a mix of libraries compiled using > Sun cc (i.e. the system libraries), some 3rd party libraries, probably > compiled using a relatively old gcc (3.4.2), and a relatively new > gcc (4.3.2) locally. Truss shows that the last library to be opened > was /usr/lib/libXau.so.6. Both versions of gdb emit this warning: > warning: Lowest section in /usr/lib/libdl.so.1 is .SUNW_syminfo at 00000094 > AFAIK Sun ld was used for linking throughout. The application actually > run properly if you run it without gdb. > > Any insights much appreciated... > > >