LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   libstdc++ and glibc 2.2.5 (https://www.linuxquestions.org/questions/linux-newbie-8/libstdc-and-glibc-2-2-5-a-21605/)

EagleFlyFree 05-23-2002 02:13 AM

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

Mik 05-24-2002 04:34 AM

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?

EagleFlyFree 05-24-2002 11:06 AM

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


All times are GMT -5. The time now is 10:21 PM.