LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-19-2012, 05:40 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 519

Rep: Reputation: 32
Missing packages for GDB


Hi, not sure what is the problem but my GDB is complaining about some packages as not being available when they are in fact installed. Can someone please take a look at the following and provide some suggestions?

GDB complaining about certain packages not available
Code:
# gdb ./dist/Debug/GNU-Linux-x86/cppcode-test
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /appvol/NetBeansProjects/test/cppcode-test/dist/Debug/GNU-Linux-x86/cppcode-test...done.
(gdb) run
Starting program: /appvol/NetBeansProjects/test/cppcode-test/dist/Debug/GNU-Linux-x86/cppcode-test
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff74ae700 (LWP 3991)]
[Thread 0x7ffff74ae700 (LWP 3991) exited]

Program exited with code 01.
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
(gdb)
Trying to install as per GDB's instruction
Code:
# debuginfo-install glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12                     .9-11.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * extras: centos.01link.hk
 * updates: centos.01link.hk
base                                                                                                                                               | 3.7 kB     00:00
extras                                                                                                                                             | 3.5 kB     00:00
updates                                                                                                                                            | 3.5 kB     00:00
updates/primary_db                                                                                                                                 | 4.1 MB     00:11
Checking for new repos for mirrors
Could not find debuginfo for main pkg: glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.12.9-11.el6.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.12.9-11.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo for main pkg: libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo for main pkg: libstdc++-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.6-3.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package libstdc++-4.4.6-3.el6.x86_64
Could not find debuginfo for main pkg: nss-softokn-freebl-3.12.9-11.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package glibc-2.12-1.47.el6.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.12.9-11.el6.x86_64
No debuginfo packages available to install
Yum also indicated the packages are already installed
Code:
# yum info glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * extras: centos.01link.hk
 * updates: centos.01link.hk
Installed Packages
Name       : glibc
Arch       : x86_64
Version    : 2.12
Release    : 1.47.el6
Size       : 12 M
Repo       : installed
From repo  : base
Summary    : The GNU libc libraries
URL        : http://sources.redhat.com/glibc/
License    : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Description: The glibc package contains standard libraries which are used by
           : multiple programs on the system. In order to save disk space and
           : memory, as well as to make upgrading easier, common system code is
           : kept in one place and shared between programs. This particular package
           : contains the most important sets of shared libraries: the standard C
           : library and the standard math library. Without these two libraries, a
           : Linux system will not function.

Name       : libgcc
Arch       : x86_64
Version    : 4.4.6
Release    : 3.el6
Size       : 114 k
Repo       : installed
From repo  : base
Summary    : GCC version 4.4 shared support library
URL        : http://gcc.gnu.org
License    : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: This package contains GCC shared support library which is needed
           : e.g. for exception handling support.

Name       : libstdc++
Arch       : x86_64
Version    : 4.4.6
Release    : 3.el6
Size       : 964 k
Repo       : installed
From repo  : base
Summary    : GNU Standard C++ Library
URL        : http://gcc.gnu.org
License    : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: The libstdc++ package contains a rewritten standard compliant GCC Standard
           : C++ Library.

Name       : nss-softokn-freebl
Arch       : x86_64
Version    : 3.12.9
Release    : 11.el6
Size       : 375 k
Repo       : installed
From repo  : base
Summary    : Freebl library for the Network Security Services
URL        : http://www.mozilla.org/projects/security/pki/nss/
License    : MPLv1.1 or GPLv2+ or LGPLv2+
Description: NSS Softoken Cryptographic Module Freelb Library
           :
           : Install the nss-softokn-freebl package if you need the freebl
           : library.
 
Old 06-19-2012, 08:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,203

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Could not find debuginfo for main pkg: glibc-2.12-1.47.el6.x86_64
Redhat EL 6, Scientific Linux SL6 : glibc-debuginfo, glibc-debuginfo-common

There seems to be no "debuginfo packages" for CentOS. EDIT : See post #5.

SL6 debuginfo http://ftp.scientificlinux.org/linux...ive/debuginfo/

About libgcc , libstdc++ : There's a 100 MB allinone debug package for gcc.
( gcc-debuginfo-4.4.6-3.el6.x86_64.rpm ).

.

Last edited by knudfl; 06-20-2012 at 03:41 PM.
 
Old 06-19-2012, 08:53 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,456

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
(In the worst case you can still compile gdb from source)
 
Old 06-20-2012, 10:27 AM   #4
grob115
Member
 
Registered: Oct 2005
Posts: 519

Original Poster
Rep: Reputation: 32
knudfl, sorry but have absolutely no clue what you are trying to say. Can you please elaborate.
NevemTeve, is there a proper way to install gdb without having to compile from sources?
 
Old 06-20-2012, 01:41 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,203

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Could not find debuginfo for main pkg: glibc-2.12-1.47.el6.x86_64
Means : Could not find the package glibc-debuginfo.

CentOS has left out all "debuginfo packages" ?
EDIT : Moved to http://debuginfo.centos.org/

I found the info amongst the source packages at http://vault.centos.org/
> http://vault.centos.org/debuginfo/Readme.txt

May be it's a matter of enabling your "debuginfo.repo" ?

Example baseurl : http://debuginfo.centos.org/5/x86_64/


.

Last edited by knudfl; 06-20-2012 at 03:15 PM.
 
Old 06-24-2012, 07:31 AM   #6
grob115
Member
 
Registered: Oct 2005
Posts: 519

Original Poster
Rep: Reputation: 32
Hi, just checked on my box and it does have the debug repo listed. And as described in the original post, Yum believes all the required packages were installed also (shown also again below). Any other things I can check?

Code:
# cat CentOS-Debuginfo.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#

# All debug packages from all the various CentOS-5 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#

[debug]
name=CentOS-6 - Debuginfo
baseurl=http://debuginfo.centos.org/6/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
enabled=0
Code:
# yum info glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libstdc++-4.4.6-3.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: centos.01link.hk
 * extras: centos.01link.hk
 * updates: centos.01link.hk
Installed Packages
Name       : glibc
Arch       : x86_64
Version    : 2.12
Release    : 1.47.el6
Size       : 12 M
Repo       : installed
From repo  : base
Summary    : The GNU libc libraries
URL        : http://sources.redhat.com/glibc/
License    : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Description: The glibc package contains standard libraries which are used by
           : multiple programs on the system. In order to save disk space and
           : memory, as well as to make upgrading easier, common system code is
           : kept in one place and shared between programs. This particular package
           : contains the most important sets of shared libraries: the standard C
           : library and the standard math library. Without these two libraries, a
           : Linux system will not function.

Name       : libgcc
Arch       : x86_64
Version    : 4.4.6
Release    : 3.el6
Size       : 114 k
Repo       : installed
From repo  : base
Summary    : GCC version 4.4 shared support library
URL        : http://gcc.gnu.org
License    : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: This package contains GCC shared support library which is needed
           : e.g. for exception handling support.

Name       : libstdc++
Arch       : x86_64
Version    : 4.4.6
Release    : 3.el6
Size       : 964 k
Repo       : installed
From repo  : base
Summary    : GNU Standard C++ Library
URL        : http://gcc.gnu.org
License    : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
Description: The libstdc++ package contains a rewritten standard compliant GCC Standard
           : C++ Library.

Name       : nss-softokn-freebl
Arch       : x86_64
Version    : 3.12.9
Release    : 11.el6
Size       : 375 k
Repo       : installed
From repo  : base
Summary    : Freebl library for the Network Security Services
URL        : http://www.mozilla.org/projects/security/pki/nss/
License    : MPLv1.1 or GPLv2+ or LGPLv2+
Description: NSS Softoken Cryptographic Module Freelb Library
           :
           : Install the nss-softokn-freebl package if you need the freebl
           : library.
 
Old 09-15-2012, 02:37 AM   #7
the_linux_apprentice
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
i've your same problem... did you resolved it?
 
Old 11-07-2012, 08:23 AM   #8
seamonkey
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
last line in the debug.repro file:

enabled=0

should of course be

enabled=1
 
Old 11-25-2012, 09:17 PM   #9
MartyE
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Changing the line to "enabled=1" worked for me when I had the same problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GDB error: Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2 TheIndependentAquarius Programming 1 07-09-2010 04:31 PM
gdb: missing the seperate debug info file vikhr Linux - Software 1 05-16-2008 01:08 AM
missing Packages mikz Slackware 9 02-13-2006 05:02 AM
Missing Packages ? Snipersnest Linux - Newbie 6 01-28-2005 12:14 PM
Missing Packages jawaking00 Mandriva 1 06-25-2004 08:18 PM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration