From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18738 invoked by alias); 27 Sep 2007 12:35:58 -0000 Received: (qmail 18602 invoked by uid 22791); 27 Sep 2007 12:35:56 -0000 X-Spam-Check-By: sourceware.org Received: from sohm.kpitcummins.com (HELO sohm.kpit.com) (203.197.93.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 12:35:33 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: error message : I'm sorry, Dave, I can't do that.Symbolformat'elf32-xc16x' unknown. Date: Thu, 27 Sep 2007 12:44:00 -0000 Message-ID: <7B5265FF85A78C4BB9DAD0EE699C476002C01BC7@sohm.kpit.com> In-Reply-To: <20070926212743.GB17502@caradoc.them.org> From: "Bhushan Attarde" To: "Daniel Jacobowitz" Cc: 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: 2007-09/txt/msg00230.txt.bz2 Hi Daniel, I had a problem mentioned in subject line while using=20 gdb-6.7.50_20070918. I checked gdb/config.log file as suggested by you. In that file I found that =09 1.There were some undefined references to `_libintl_dgettext' /* this is the part of gdb/config.log file */ configure:21854: checking for ELF support in BFD configure:21878: i686-pc-cygwin-gcc -o conftest.exe -Os -I/cygdrive/c/cyggdb/src/gdb-6.7.50_20070918/gdb/../include -I../bfd -I/cygdrive/c/cyggdb/src/gdb-6.7.50_20070918/gdb/../bfd -L../bfd -L../libiberty conftest.c -lncurses -lm -lbfd -liberty >&5 ../bfd/libbfd.a(elf.o):elf.c:(.text+0x4d9): undefined reference to `_libintl_dgettext' ../bfd/libbfd.a(elf.o):elf.c:(.text+0x65e): undefined reference to `_libintl_dgettext' ../bfd/libbfd.a(elf.o):elf.c:(.text+0x7de): undefined reference to `_libintl_dgettext' ../bfd/libbfd.a(elf.o):elf.c:(.text+0x819): undefined reference to `_libintl_dgettext' ../bfd/libbfd.a(elf.o):elf.c:(.text+0x8f0): undefined reference to `_libintl_dgettext' ../bfd/libbfd.a(elf.o):elf.c:(.text+0x146f): more undefined references to `_libintl_dgettext' follow collect2: ld returned 1 exit status configure:21884: $? =3D 1 configure: failed program was: | /* confdefs.h. */ =20 And=20 2. The value of cache variable "gdb_cv_var_elf" was set to "no". I think due to which "elfread.o" was not linked in there in "libgdb.a". also HAVE_ELF have not got set to 1.(see gdb/configure.ac). So after some google search I found that for 1st problem i.e for undefined reference to `_libintl_dgettext' to use "--disable-nls" switch in gdb build script. After building,I again checked gdb/config.log file and I found that there are no more undefined references to `_libintl_dgettext'. However the value of cache variable "gdb_cv_var_elf" is now set to "yes". Also HAVE_ELF is set to 1 and "elfread.o" have got linked in "libgdb.a". And now gdb is working fine without giving me the error. So my questions here are=20 a. what exactly have happened internally that the error got disappered ? i.e any relation between elf support and "--disable-nls" b. Is it a good practice to go with "--disable-nls" switch or there is any=20 alternative way to solve this problem?=20=20=20 Thanking you in advance. --Bhushan Attarde -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Thursday, September 27, 2007 2:58 AM To: Bhushan Attarde Cc: gdb@sourceware.org Subject: Re: error message : I'm sorry, Dave, I can't do that.Symbolformat'elf32-xc16x' unknown. On Wed, Sep 26, 2007 at 12:02:42PM +0530, Bhushan Attarde wrote: >=20 > Oops !!! I forgot to attach the config.log file in previous mail. > So sending the mail again........ I don't even know what you're building any more. I suspect you have a mixed up source tree with different versions of code in it. You may want to take a CVS snapshot and try that instead. --=20 Daniel Jacobowitz CodeSourcery