public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
@ 2007-10-23 12:37 drow
  0 siblings, 0 replies; 5+ messages in thread
From: drow @ 2007-10-23 12:37 UTC (permalink / raw)
  To: drow, gdb-prs, lmcghaw, nobody, pedro_alves

Synopsis: gdb 6.7 release unable to load elf symbol tables on solaris

Responsible-Changed-From-To: unassigned->drow
Responsible-Changed-By: drow
Responsible-Changed-When: Tue Oct 23 12:37:42 2007
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: drow
State-Changed-When: Tue Oct 23 12:37:42 2007
State-Changed-Why:
    Fix checked in.  Thanks for the feedback!

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2336


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
@ 2007-10-23 12:18 Pedro Alves
  0 siblings, 0 replies; 5+ messages in thread
From: Pedro Alves @ 2007-10-23 12:18 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR gdb/2336; it has been noted by GNATS.

From: "Pedro Alves" <pedro_alves@portugalmail.pt>
To: gdb-gnats@sources.redhat.com, nobody@sources.redhat.com, lmcghaw@connx.com, 
	gdb-prs@sources.redhat.com
Cc:  
Subject: Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
Date: Tue, 23 Oct 2007 13:12:10 +0100

 Hi,
 
 I'm building HEAD on solaris 9, and I see the same problem.
 
 After fixing a typo in your patch, gdb works again:
 
 CFLAGS=-g -O2 -I../../src/gdb/../include -I../bfd -I../../src/gdb/../bfd
 LDFLAGS= -L../bfd -L../libiberty
 + sed s,${top_builddir}/,
 + echo ${top_builddir}/../intl/libintl.a /usr/local/lib/libiconv.so
 -L/usr/local/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
 -R/usr/local/lib
 sed: -e expression #1, char 19: unterminated `s' command
 intl=
 LIBS=-ldl -lncurses -lsocket -lnsl -lm  -lbfd -liberty
 
 Missed a comma.  I've also added a `g' to be on the safe side:
 
 -+intl=`echo $LIBINTL | sed 's,${top_builddir}/,'`
 ++intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
 
 Cheers,
 Pedro Alves


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
@ 2007-10-23 12:18 Alves, Pedro Miguel
  0 siblings, 0 replies; 5+ messages in thread
From: Alves, Pedro Miguel @ 2007-10-23 12:18 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR gdb/2336; it has been noted by GNATS.

From: "Alves, Pedro Miguel" <pedro.alves.ext@nsn.com>
To: <gdb-gnats@sources.redhat.com>, <nobody@sources.redhat.com>,
        <lmcghaw@connx.com>, <gdb-prs@sources.redhat.com>
Cc:  
Subject: Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
Date: Tue, 23 Oct 2007 13:11:43 +0100

 http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&databa=
 s
 e=3Dgdb&pr=3D2336
 
 Hi,
 
 I'm building HEAD on solaris 9, and I see the same problem.
 
 After fixing a typo in your patch, gdb works again:
 
 CFLAGS=3D-g -O2 -I../../src/gdb/../include -I../bfd =
 -I../../src/gdb/../bfd
 LDFLAGS=3D -L../bfd -L../libiberty
 + sed s,${top_builddir}/,=20
 + echo ${top_builddir}/../intl/libintl.a /usr/local/lib/libiconv.so
 -L/usr/local/lib -L/usr/openwin/lib -L/usr/local/ssl/lib
 -R/usr/local/lib=20
 sed: -e expression #1, char 19: unterminated `s' command
 intl=3D
 LIBS=3D-ldl -lncurses -lsocket -lnsl -lm  -lbfd -liberty=20
 
 Missed a comma.  I've also added a `g' to be on the safe side:
 
 -+intl=3D`echo $LIBINTL | sed 's,${top_builddir}/,'`
 ++intl=3D`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
 
 Cheers,
 Pedro Alves


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
@ 2007-10-11 21:48 Daniel Jacobowitz
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-10-11 21:48 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR gdb/2336; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: lmcghaw@connx.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/2336: gdb 6.7 release unable to load elf symbol tables on
	solaris
Date: Thu, 11 Oct 2007 17:43:07 -0400

 On Thu, Oct 11, 2007 at 09:35:04PM -0000, lmcghaw@connx.com wrote:
 > The configure script and or make file needs to be fixed for solaris .. it is missing
 > the Makefile in the gdb directory for linux looks like this .. the elfread.obj is here and gets pulled in when init.c is built.
 
 Please check why the configure script decided ELF support was
 missing.  There should be an error in gdb/config.log.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
@ 2007-10-11 21:38 lmcghaw
  0 siblings, 0 replies; 5+ messages in thread
From: lmcghaw @ 2007-10-11 21:38 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2336
>Category:       gdb
>Synopsis:       gdb 6.7 release unable to load elf symbol tables on solaris
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 11 21:38:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Larry McGhaw
>Release:        unknown-1.0
>Organization:
>Environment:
solaris 8
>Description:
a freshly configured gdb 6.7 is unable to read elf32-sparc symbol tables on solaris 8.

error is :
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.

I have tried with a variety of images, all with the same result.

gdb 6.4 works fine

=================================================
>How-To-Repeat:
/export/home/cnxuser/gdb-6.7/gdb> gdb /usr/local/bin/isql
GNU gdb 6.7
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Setting up the environment for debugging gdb.
No symbol table is loaded.  Use the "file" command.
No symbol table is loaded.  Use the "file" command.
/export/home/cnxuser/gdb-6.7/gdb/.gdbinit:8: Error in sourced command file:
No breakpoint number 0.
(gdb) run
Starting program: /usr/local/bin/isql 
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
[New LWP 1]
[New LWP 2]
[New LWP 3]
 
>Fix:
The configure script and or make file needs to be fixed for solaris .. it is missing
the Makefile in the gdb directory for linux looks like this .. the elfread.obj is here and gets pulled in when init.c is built.
CONFIG_OBS=  $(SUBDIR_CLI_OBS) $(SUBDIR_MI_OBS) elfread.o posix-hdep.o $(SUBDIR_TUI_OBS)

on solaris the CONFIG_OBS line looks like this:
CONFIG_OBS=  $(SUBDIR_CLI_OBS) $(SUBDIR_MI_OBS) sol-thread.o posix-hdep.o $(SUBDIR_TUI_OBS)

elfread.o is not present, and never gets pulled into init.c
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-23 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-23 12:37 gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris drow
  -- strict thread matches above, loose matches on Subject: below --
2007-10-23 12:18 Pedro Alves
2007-10-23 12:18 Alves, Pedro Miguel
2007-10-11 21:48 Daniel Jacobowitz
2007-10-11 21:38 lmcghaw

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