LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2002, 03:13 AM   #1
EagleFlyFree
LQ Newbie
 
Registered: May 2002
Posts: 2

Rep: Reputation: 0
libstdc++ and glibc 2.2.5


i use debian 2.2r6. i installed the base system off the hard drive and then everything in the first cd.
i compiled the 2.4.18 kernel and installed glibc 2.2.5 and gcc 3.1.

so now i wanna install qt 3.0.4 for kde 3 and after almost two hours of doing make, it crashes saying it can't find "libstdc++-libc6.2-2.so.3"

i searched all of /usr and seems i have this: "libstdc++-3-libc6.1-2-2.10.0"
i know nearly nothing about shared libraries and all that stuff, but that file (elf stripped according to 'file') seems to be linked in some way to the old glibc instalation i had (1.2.10, came with debian) instead of the new one. oh and compiling licq make crashed too saying it couldn't find libstdc++.

this makes me think there's something else left unlinked to the new glibc... isn't there a command that does this?
maybe something about ldconfig or ln...

help anyone?

thanks
 
Old 05-24-2002, 05:34 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I have glibc 2.2.4 on my system and when I look for those files it gives me the following output:

$ ls -l /usr/lib/libstd*so*
-r-xr-xr-x 1 root root 379842 Feb 18 16:54 /usr/lib/libstdc++-3-lib
c6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 31 Feb 18 04:23 /usr/lib/libstdc++-libc6
.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so

Running ldconfig will create the links to the most recent library. But according to what you wrote you've only got the 1-2 version. The 2.2 version should be present in the version of glibc that you installed. Maybe you should try installing it again. Or did you install glibc to a different location?
 
Old 05-24-2002, 12:06 PM   #3
EagleFlyFree
LQ Newbie
 
Registered: May 2002
Posts: 2

Original Poster
Rep: Reputation: 0
i compiled gcc 3.1 again... looks like it was glibc that i need to recompile...

anyway i kind of gave up on debian and started installing LFS; it's been all smooth so far but now i can't compile ncurses-5.2 (i got the package out of the lfs ftp)
i'm using gcc 3.1, not 2.9.5 as in lfs, i hope it doesn't have anything to do with it...

can you make anything out of this?
thanks
------------------------------------

make[1]: Entering directory `/src/n/ncurses-5.2/c++'
cd ../obj_s; c++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -DNDEBUG -I. -I../include -O2 -fPIC -c ../c++/cursesw.cc
In file included from /usr/include/g++-v3/backward/strstream:51,
from /usr/include/g++-v3/backward/strstream.h:33,
from ../c++/cursesw.h:17,
from ../c++/cursesw.cc:25:

/usr/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
../c++/cursesw.cc: In member function `int NCursesWindow::scanw(const char*,
...)':
../c++/cursesw.cc:55: no matching function for call to `std::strstreambuf::
vscan(const char*&, char*&)'
../c++/cursesw.cc: In member function `int NCursesWindow::scanw(int, int, const
char*, ...)':
../c++/cursesw.cc:77: no matching function for call to `std::strstreambuf::
vscan(const char*&, char*&)'
make[1]: *** [../obj_s/cursesw.o] Error 1
make[1]: Leaving directory `/src/n/ncurses-5.2/c++'
make: *** [all] Error 2
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 doesn't have libstdc++.so.5 but libstdc++.so.6 baosheng Fedora 14 04-06-2008 11:08 AM
glibc and libstdc++.so.5 LinxNew Mandriva 2 05-22-2005 05:47 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 08:26 AM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 10:30 AM
upgradin glibc - libstdc++.5.so celejar Debian 0 11-10-2004 11:59 PM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration