public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Bhushan Attarde" <Bhushan.Attarde@kpitcummins.com>
To: "Daniel Jacobowitz" <drow@false.org>
Cc: <gdb@sourceware.org>
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	[thread overview]
Message-ID: <7B5265FF85A78C4BB9DAD0EE699C476002C01BC7@sohm.kpit.com> (raw)
In-Reply-To: <20070926212743.GB17502@caradoc.them.org>


Hi Daniel,

	   I had a problem mentioned in subject line while using 
gdb-6.7.50_20070918.
	   I checked gdb/config.log file as suggested by you. In that
file
I found that
	
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: $? = 1
configure: failed program was:
| /* confdefs.h.  */
 
 And 

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 

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 
   alternative way to solve this problem?   


Thanking you in advance.

--Bhushan Attarde


-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org] 
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:
> 
> 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.

-- 
Daniel Jacobowitz
CodeSourcery

  reply	other threads:[~2007-09-27 12:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7B5265FF85A78C4BB9DAD0EE699C476002B73136@sohm.kpit.com>
2007-09-26 21:28 ` error message : I'm sorry, Dave, I can't do that.Symbolformat 'elf32-xc16x' unknown Daniel Jacobowitz
2007-09-27 12:44   ` Bhushan Attarde [this message]
2007-09-27 13:46     ` error message : I'm sorry, Dave, I can't do that.Symbolformat'elf32-xc16x' unknown Daniel Jacobowitz
2007-09-27 13:49       ` error message : I'm sorry, Dave, I can't dothat.Symbolformat'elf32-xc16x' unknown Bhushan Attarde
2007-09-27 15:34         ` Daniel Jacobowitz
2007-09-26  7:36 error message : I'm sorry, Dave, I can't do that.Symbolformat 'elf32-xc16x' unknown Bhushan Attarde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7B5265FF85A78C4BB9DAD0EE699C476002C01BC7@sohm.kpit.com \
    --to=bhushan.attarde@kpitcummins.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).