FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 01-04-2008, 05:27 PM
James Antill
 
Default Why does gdb now give lots of warnings?

On Fri, 2008-01-04 at 17:15 +0000, Andrew Haley wrote:
> Jan Kratochvil writes:
> > On Fri, 04 Jan 2008 17:53:09 +0100, Andrew Haley wrote:
> > > Jan Kratochvil writes:
> > ...
> > > > OK, you are right Fedora GDB could; the build-id support messages should be
> > > > cross-OS ones, this loading feature is still not imported into upstream GDB and
> > > > it is heading there.
> > >
> > > Sure, but we could have a simple local message like
> > >
> > > Try "yum install /usr/lib/debug/.build-id/72/67a2ecd318b0f87a0747a6986d0d6dc01c6d8d.debug"
> > >
> > > I learnt only today that would work...
> >
> > Such as this one - just for the first such message printed? I guess changing
> > the `Missing ...' message itself would be already too OS-specific.
>
> Perfection would be:
>
> Missing debuginfo for /lib64/libnss_files-2.7.so
> Try "yum install /usr/lib/debug/.build-id/72/67a2ecd318b0f87a0747a6986d0d6dc01c6d8d.debug"
>
> If we can't do that upstream, then the closer we get, the better. Or
> we have a local patch.

Well what we really want here is:

Try "debuginfo-install glibc" (or "debuginfo-install python" if they
are running gdb on that), but that requires some kind of integration
with rpm or yum.

--
James Antill <james.antill@redhat.com>
Red Hat
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-04-2008, 06:40 PM
James Antill
 
Default Why does gdb now give lots of warnings?

On Fri, 2008-01-04 at 10:45 -0800, Tom London wrote:

> Interesting.....
>
> I tried 'debuginfo-install rhythmbox' and got a list of 43 packages..... cool.
>
> However, it looks like it wants to install 3 'real' packages:

Well yum is just following the deps, for instance for me check,
check-devel and gstreamer-devel are the top three installs ... which is
because gstreamer-debuginfo requires gstreamer-devel, which is obviously
required by rhythmbox.
I'd say it's likely that we have some unneeded deps. on some of the
-devel packages (maybe should be BuildRequires?) ... on the other hand
it's not something that'll affect normal[1] users.

[1] If you want to use gdb, you aren't normal .

--
James Antill <james.antill@redhat.com>
Red Hat
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-04-2008, 07:07 PM
Jan Kratochvil
 
Default Why does gdb now give lots of warnings?

On Fri, 04 Jan 2008 20:40:18 +0100, James Antill wrote:
...
> which is because gstreamer-debuginfo requires gstreamer-devel, which is
> obviously required by rhythmbox.

What is the reason why any *-debuginfo package requires any binary package?

Sure it installs .debug files which are only partially usable (officially not
usable) without their binary counterparts. But still even this dependency is
currently not complete there, I am not aware which rule generates the current
dependencies but it seems as useless there; going to submit the patch.


Regards,
Jan
--- /usr/lib/rpm/redhat/macros-orig 2007-07-05 20:34:42.000000000 +0200
+++ /usr/lib/rpm/redhat/macros 2008-01-04 21:03:11.000000000 +0100
@@ -106,6 +106,7 @@
%package debuginfo
Summary: Debug information for package %{name}
Group: Development/Debug
+AutoReq: no
%description debuginfo
This package provides debug information for package %{name}.
Debug information is useful when developing applications that use this
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-04-2008, 07:12 PM
David Nielsen
 
Default Why does gdb now give lots of warnings?

fre, 04 01 2008 kl. 14:52 +0000, skrev Andrew Haley:
> Neal Becker writes:
> > Here is an example:
> >
> > Starting program: /usr/bin/python
> >
> > warning: Missing the separate debug info file: /usr/lib/debug/.build-id/fa/841219472d35412ad631ad0f0fabb78e5c1957.debug
>
> You haven't installed the -debug packages for the shared libs you've
> loaded. Telling you this isn't a bug.
>
> What *is* a bug, IMO, is that you can't tell which shared libs it's
> complaining about.

Sounds like a job for PackageKit, look up the path to figure out which
packages we are missing and offer the user to install the missing debug
symbols.

- David

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-04-2008, 07:53 PM
Roland McGrath
 
Default Why does gdb now give lots of warnings?

> --- /usr/lib/rpm/redhat/macros-orig 2007-07-05 20:34:42.000000000 +0200
> +++ /usr/lib/rpm/redhat/macros 2008-01-04 21:03:11.000000000 +0100

/usr/lib/rpm/macros has a better definition that uses "AutoReqProv: 0".
redhat-rpm-config should change to match (or better, change not to
duplicate the details). (The only intended difference is "debug" vs
"debuginfo", and maybe rpm can change that too.)

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 05:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org